Microchip® Advanced Software Framework

gapc_task.c File Reference
#include "at_ble_api.h"
#include "platform.h"
#include "interface.h"
#include "gapc_task.h"
#include "dbg_task.h"
#include "device.h"

Data Structures

struct  at_key_info_t
 

Functions

at_ble_status_t gapc_bond_cfm_handler_key_exch (uint8_t u8Req, uint8_t u8Accept, uint8_t *key, uint16_t u16ConHdl)
 
at_ble_status_t gapc_bond_cfm_handler_pair_resp (uint8_t u8Accept, uint8_t u8IoCap, uint8_t u8OOB, uint8_t u8Auth, uint8_t u8KeySize, uint8_t u8IkeyDist, uint8_t u8RkeyDist, uint8_t u8SecReq, uint16_t u16ConHdl)
 
at_ble_status_t gapc_bond_cmd_handler (uint16_t conn_handle, uint8_t io_capabilities, uint8_t oob_available, uint8_t auth_req, uint8_t max_key_size, uint8_t initiator_keys, uint8_t responder_keys, uint8_t desired_auth)
 
at_ble_events_t gapc_bond_ind (uint16_t src, uint8_t *data, at_ble_pair_done_t *param)
 
void gapc_bond_req (uint16_t src, at_ble_pair_request_t *param)
 
at_ble_events_t gapc_bond_req_ind (uint16_t src, uint8_t *data, void *param)
 
at_ble_events_t gapc_cmp_evt (uint16_t src, uint8_t *data, at_ble_encryption_status_changed_t *params)
 
at_ble_status_t gapc_con_max_PA_gain_get_ind_parser (uint16_t src, uint8_t *data, gapc_con_max_PA_gain_get_ind *params)
 
at_ble_status_t gapc_con_req_ind (uint8_t *data)
 
at_ble_status_t gapc_con_rssi_ind_parser (uint16_t src, uint8_t *data, gapc_con_rssi_ind *params)
 
at_ble_status_t gapc_con_tx_pow_get_ind_parser (uint16_t src, uint8_t *data, gapc_con_tx_pow_get_ind *params)
 
at_ble_status_t gapc_con_tx_pow_set_ind_parser (uint16_t src, uint8_t *data, gapc_con_tx_pow_set_ind *params)
 
at_ble_status_t gapc_connection_cfm_handler (uint8_t *lcsrk, uint32_t local_signcntr, uint8_t *rcsrk, uint32_t remote_signcntr, uint8_t auth, uint8_t authorize, uint16_t handle)
 
at_ble_status_t gapc_disconnect_cmd_handler (uint8_t reason, uint16_t handle)
 
at_ble_status_t gapc_disconnect_ind (uint8_t *data, at_ble_disconnected_t *param)
 
at_ble_status_t gapc_encrypt_cfm_handler (uint16_t conn_handle, uint8_t auth, uint8_t key_found, uint8_t *key, uint8_t key_size)
 
at_ble_status_t gapc_encrypt_cmd_handler (uint16_t conn_handle, uint8_t *key, uint16_t ediv, uint8_t *rand, uint8_t key_size, uint8_t auth)
 
at_ble_status_t gapc_encrypt_ind (uint16_t src, uint8_t *data, at_ble_encryption_status_changed_t *params)
 
at_ble_status_t gapc_encrypt_req_ind (uint16_t src, uint8_t *data, at_ble_encryption_request_t *params)
 
at_ble_status_t gapc_get_info_cmd_handler (uint16_t conn_handle, uint8_t operation)
 
at_ble_status_t gapc_get_tx_pwr_req_handler (uint16_t u16ConHdl, uint8_t get_type)
 
void gapc_key_exch (uint8_t u8Req, uint16_t ConHdl)
 
at_ble_status_t gapc_param_update_cfm_handler (uint16_t conn_handle, uint16_t ce_len_min, uint16_t ce_len_max)
 
at_ble_status_t gapc_param_update_cmd_handler (uint16_t handle, uint16_t con_intv_min, uint16_t con_intv_max, uint16_t con_latency, uint16_t superv_to, uint16_t ce_len_min, uint16_t ce_len_max)
 
at_ble_status_t gapc_param_update_req_ind (uint16_t src, uint8_t *data, at_ble_conn_param_update_request_t *param)
 
at_ble_status_t gapc_param_updated_ind (uint16_t src, uint8_t *data, at_ble_conn_param_update_done_t *param)
 
at_ble_status_t gapc_sec_req_ind (uint16_t src, uint8_t *data, at_ble_slave_sec_request_t *params)
 
at_ble_status_t gapc_security_cmd_handler (uint16_t conn_handle, uint8_t auth_req)
 
at_ble_status_t gapc_set_tx_pwr_req_handler (uint16_t u16ConHdl, uint8_t u8txpow)
 

Variables

static at_key_info_t peer_key_info
 

at_ble_status_t gapc_bond_cfm_handler_key_exch ( uint8_t  u8Req,
uint8_t  u8Accept,
uint8_t *  key,
uint16_t  u16ConHdl 
)
at_ble_status_t gapc_bond_cfm_handler_pair_resp ( uint8_t  u8Accept,
uint8_t  u8IoCap,
uint8_t  u8OOB,
uint8_t  u8Auth,
uint8_t  u8KeySize,
uint8_t  u8IkeyDist,
uint8_t  u8RkeyDist,
uint8_t  u8SecReq,
uint16_t  u16ConHdl 
)
at_ble_status_t gapc_bond_cmd_handler ( uint16_t  conn_handle,
uint8_t  io_capabilities,
uint8_t  oob_available,
uint8_t  auth_req,
uint8_t  max_key_size,
uint8_t  initiator_keys,
uint8_t  responder_keys,
uint8_t  desired_auth 
)
void gapc_bond_req ( uint16_t  src,
at_ble_pair_request_t param 
)
at_ble_status_t gapc_con_max_PA_gain_get_ind_parser ( uint16_t  src,
uint8_t *  data,
gapc_con_max_PA_gain_get_ind params 
)
at_ble_status_t gapc_con_rssi_ind_parser ( uint16_t  src,
uint8_t *  data,
gapc_con_rssi_ind params 
)
at_ble_status_t gapc_con_tx_pow_get_ind_parser ( uint16_t  src,
uint8_t *  data,
gapc_con_tx_pow_get_ind params 
)
at_ble_status_t gapc_con_tx_pow_set_ind_parser ( uint16_t  src,
uint8_t *  data,
gapc_con_tx_pow_set_ind params 
)
at_ble_status_t gapc_connection_cfm_handler ( uint8_t *  lcsrk,
uint32_t  local_signcntr,
uint8_t *  rcsrk,
uint32_t  remote_signcntr,
uint8_t  auth,
uint8_t  authorize,
uint16_t  handle 
)
at_ble_status_t gapc_disconnect_cmd_handler ( uint8_t  reason,
uint16_t  handle 
)
at_ble_status_t gapc_encrypt_cfm_handler ( uint16_t  conn_handle,
uint8_t  auth,
uint8_t  key_found,
uint8_t *  key,
uint8_t  key_size 
)
at_ble_status_t gapc_encrypt_cmd_handler ( uint16_t  conn_handle,
uint8_t *  key,
uint16_t  ediv,
uint8_t *  rand,
uint8_t  key_size,
uint8_t  auth 
)
at_ble_status_t gapc_get_info_cmd_handler ( uint16_t  conn_handle,
uint8_t  operation 
)
at_ble_status_t gapc_param_update_cfm_handler ( uint16_t  conn_handle,
uint16_t  ce_len_min,
uint16_t  ce_len_max 
)
at_ble_status_t gapc_param_update_cmd_handler ( uint16_t  handle,
uint16_t  con_intv_min,
uint16_t  con_intv_max,
uint16_t  con_latency,
uint16_t  superv_to,
uint16_t  ce_len_min,
uint16_t  ce_len_max 
)
at_ble_status_t gapc_security_cmd_handler ( uint16_t  conn_handle,
uint8_t  auth_req 
)
at_ble_status_t gapc_set_tx_pwr_req_handler ( uint16_t  u16ConHdl,
uint8_t  u8txpow 
)

at_key_info_t peer_key_info
static