#include "cmn_defs.h"
Data Structures | |
struct | gapc_con_max_PA_gain_get_ind |
struct | gapc_con_rssi_ind |
struct | gapc_con_tx_pow_get_ind |
struct | gapc_con_tx_pow_set_ind |
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 *pu8LocalKey, uint32_t u32LocalSignCntr, uint8_t *pu8RemoteKey, uint32_t u32RemoteSignCntr, uint8_t u8Auth, uint8_t u8Authorize, uint16_t u16ConHdl) |
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) |
enum gap_auth |
enum gap_auth_mask |
enum gap_io_cap |
enum gap_kdist |
enum gap_oob |
enum gap_sec_req |
Security Defines.
enum gap_tk_type |
enum gapc_bond |
Bond event type.
enum gapc_msg_id |
enum gapc_operation |
request operation type - application interface
at_ble_status_t gapc_bond_cfm_handler_key_exch | ( | uint8_t | u8Req, |
uint8_t | u8Accept, | ||
uint8_t * | key, | ||
uint16_t | u16ConHdl | ||
) |
References GAPC_BOND_CFM, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_BLOCK, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, KEY_LEN, status, and TASK_GAPC.
Referenced by at_ble_pair_key_reply().
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 | ||
) |
References GAPC_BOND_CFM, GAPC_PAIRING_RSP, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_authenticate().
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 | ||
) |
References GAPC_BOND, GAPC_BOND_CMD, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_authenticate().
at_ble_events_t gapc_bond_ind | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_pair_done_t * | param | ||
) |
References at_ble_addr_t::addr, at_ble_IRK_t::addr, AT_BLE_ADDR_LEN, AT_BLE_FAILURE, AT_BLE_PAIR_DONE, AT_BLE_SUCCESS, AT_BLE_UNDEFINED_EVENT, at_ble_pair_done_t::auth, at_key_info_t::csrk, at_ble_LTK_t::ediv, GAPC_CSRK_EXCH, GAPC_IRK_EXCH, GAPC_LTK_EXCH, GAPC_PAIRING_FAILED, GAPC_PAIRING_SUCCEED, at_ble_pair_done_t::handle, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_SKIP, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, at_key_info_t::irk, KE_IDX_GET, at_ble_LTK_t::key, at_ble_CSRK_t::key, at_ble_IRK_t::key, KEY_LEN, at_ble_LTK_t::key_size, at_key_info_t::ltk, at_ble_LTK_t::nb, NULL, at_ble_pair_done_t::peer_csrk, at_ble_pair_done_t::peer_irk, at_ble_pair_done_t::peer_ltk, at_ble_pair_done_t::status, and at_ble_addr_t::type.
Referenced by handle_ble_event().
void gapc_bond_req | ( | uint16_t | src, |
at_ble_pair_request_t * | param | ||
) |
References at_ble_pair_request_t::handle, and KE_IDX_GET.
Referenced by gapc_bond_req_ind().
at_ble_events_t gapc_bond_req_ind | ( | uint16_t | src, |
uint8_t * | data, | ||
void * | param | ||
) |
References AT_BLE_PAIR_KEY_REQUEST, AT_BLE_PAIR_OOB, AT_BLE_PAIR_PASSKEY, AT_BLE_PAIR_PASSKEY_DISPLAY, AT_BLE_PAIR_PASSKEY_ENTRY, AT_BLE_PAIR_REQUEST, AT_BLE_UNDEFINED_EVENT, GAP_TK_DISPLAY, GAP_TK_KEY_ENTRY, GAP_TK_OOB, gapc_bond_req(), GAPC_CSRK_EXCH, gapc_key_exch(), GAPC_LTK_EXCH, GAPC_PAIRING_REQ, GAPC_TK_EXCH, at_ble_pair_key_request_t::handle, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, KE_IDX_GET, at_ble_pair_key_request_t::passkey_type, and at_ble_pair_key_request_t::type.
Referenced by handle_ble_event().
at_ble_events_t gapc_cmp_evt | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_encryption_status_changed_t * | params | ||
) |
References AT_BLE_CONN_PARAM_UPDATE_DONE, AT_BLE_DISCONNECTED, AT_BLE_ENCRYPTION_STATUS_CHANGED, AT_BLE_FAILURE, AT_BLE_PAIR_DONE, AT_BLE_SUCCESS, AT_BLE_UNDEFINED_EVENT, at_ble_conn_param_update_done_t::con_intv, at_ble_conn_param_update_done_t::con_latency, GAPC_BOND, GAPC_DISCONNECT, GAPC_ENCRYPT, GAPC_UPDATE_PARAMS, at_ble_disconnected_t::handle, at_ble_conn_param_update_done_t::handle, at_ble_encryption_status_changed_t::handle, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, KE_IDX_GET, at_ble_disconnected_t::reason, status, at_ble_conn_param_update_done_t::status, at_ble_encryption_status_changed_t::status, and at_ble_conn_param_update_done_t::superv_to.
Referenced by handle_ble_event().
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 | ||
) |
References AT_BLE_SUCCESS, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, and gapc_con_max_PA_gain_get_ind::max_PA_gain.
Referenced by handle_ble_event().
at_ble_status_t gapc_con_req_ind | ( | uint8_t * | data | ) |
References at_ble_addr_t::addr, AT_BLE_ADDR_LEN, device_info::conn_handle, device, GAP_AUTH_REQ_NO_MITM_NO_BOND, GAP_AUTHZ_NOT_SET, gapc_connection_cfm_handler(), INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_SKIP, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, KEY_LEN, device_info::peer_addr, and at_ble_addr_t::type.
Referenced by special_events_handler().
at_ble_status_t gapc_con_rssi_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
gapc_con_rssi_ind * | params | ||
) |
References AT_BLE_SUCCESS, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, and gapc_con_rssi_ind::rssi.
Referenced by handle_ble_event().
at_ble_status_t gapc_con_tx_pow_get_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
gapc_con_tx_pow_get_ind * | params | ||
) |
References AT_BLE_SUCCESS, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, and gapc_con_tx_pow_get_ind::tx_pow_lvl.
Referenced by handle_ble_event().
at_ble_status_t gapc_con_tx_pow_set_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
gapc_con_tx_pow_set_ind * | params | ||
) |
References AT_BLE_SUCCESS, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, and gapc_con_tx_pow_set_ind::status.
Referenced by handle_ble_event().
at_ble_status_t gapc_connection_cfm_handler | ( | uint8_t * | pu8LocalKey, |
uint32_t | u32LocalSignCntr, | ||
uint8_t * | pu8RemoteKey, | ||
uint32_t | u32RemoteSignCntr, | ||
uint8_t | u8Auth, | ||
uint8_t | u8Authorize, | ||
uint16_t | u16ConHdl | ||
) |
References GAPC_CONNECTION_CFM, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_BLOCK, INTERFACE_PACK_ARG_UINT32, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, KEY_LEN, status, and TASK_GAPC.
Referenced by at_ble_sec_info_set(), gapc_con_req_ind(), gapc_encrypt_cfm_handler(), and gapc_encrypt_cmd_handler().
at_ble_status_t gapc_disconnect_cmd_handler | ( | uint8_t | reason, |
uint16_t | handle | ||
) |
References GAPC_DISCONNECT, GAPC_DISCONNECT_CMD, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_disconnect().
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 | ||
) |
References AT_BLE_SUCCESS, GAP_AUTHZ_NOT_SET, gapc_connection_cfm_handler(), GAPC_ENCRYPT_CFM, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_BLOCK, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, KEY_LEN, status, and TASK_GAPC.
Referenced by at_ble_encryption_request_reply().
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 | ||
) |
References AT_BLE_SUCCESS, GAP_AUTHZ_NOT_SET, gapc_connection_cfm_handler(), GAPC_ENCRYPT, GAPC_ENCRYPT_CMD, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_BLOCK, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, KEY_LEN, status, and TASK_GAPC.
Referenced by at_ble_encryption_start().
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 | ||
) |
References GAPC_GET_INFO_CMD, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_rx_power_get().
at_ble_status_t gapc_get_tx_pwr_req_handler | ( | uint16_t | u16ConHdl, |
uint8_t | get_type | ||
) |
References GAPC_GET_TX_PWR_REQ, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_max_PA_gain_get(), and at_ble_tx_power_get().
void gapc_key_exch | ( | uint8_t | u8Req, |
uint16_t | ConHdl | ||
) |
References AT_BLE_MAX_KEY_LEN, device_info::csrk, device, at_ble_LTK_t::ediv, GAPC_BOND_CFM, GAPC_CSRK_EXCH, GAPC_LTK_EXCH, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_BLOCK, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, at_ble_LTK_t::key, at_ble_CSRK_t::key, KEY_LEN, at_ble_LTK_t::key_size, device_info::ltk, at_ble_LTK_t::nb, and TASK_GAPC.
Referenced by gapc_bond_req_ind().
at_ble_status_t gapc_param_update_cfm_handler | ( | uint16_t | conn_handle, |
uint16_t | ce_len_min, | ||
uint16_t | ce_len_max | ||
) |
References GAPC_PARAM_UPDATE_CFM, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_conn_update_reply().
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 | ||
) |
References AT_BLE_SUCCESS, at_ble_connection_params_t::con_intv_max, at_ble_connection_params_t::con_intv_min, at_ble_connection_params_t::con_latency, at_ble_conn_param_update_request_t::handle, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, KE_IDX_GET, at_ble_conn_param_update_request_t::params, and at_ble_connection_params_t::superv_to.
Referenced by handle_ble_event().
at_ble_status_t gapc_param_updated_ind | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_conn_param_update_done_t * | param | ||
) |
References AT_BLE_SUCCESS, at_ble_conn_param_update_done_t::con_intv, at_ble_conn_param_update_done_t::con_latency, at_ble_conn_param_update_done_t::handle, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, KE_IDX_GET, at_ble_conn_param_update_done_t::status, and at_ble_conn_param_update_done_t::superv_to.
Referenced by handle_ble_event().
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 | ||
) |
References GAPC_SECURITY_CMD, GAPC_SECURITY_REQ, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_send_slave_sec_request().
at_ble_status_t gapc_set_tx_pwr_req_handler | ( | uint16_t | u16ConHdl, |
uint8_t | u8txpow | ||
) |
References GAPC_SET_TX_PWR_REQ, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GAPC.
Referenced by at_ble_tx_power_set().