#include "cmn_defs.h"
Functions | |
at_ble_events_t | gattc_complete_evt_handler (uint16_t src, uint8_t *data, void *params) |
at_ble_status_t | gattc_disc_char_desc_ind_parser (uint16_t src, uint8_t *data, at_ble_descriptor_found_t *params) |
at_ble_status_t | gattc_disc_char_ind_parser (uint16_t src, uint8_t *data, at_ble_characteristic_found_t *params) |
at_ble_status_t | gattc_disc_cmd_handler (uint8_t u8ReqType, uint8_t u8UUIDLen, uint16_t u16StartHdl, uint16_t u16EndHdl, uint8_t *pu8UUID, uint16_t u16ConHdl) |
at_ble_status_t | gattc_disc_svc_incl_ind_parser (uint16_t src, uint8_t *data, at_ble_included_service_found_t *params) |
at_ble_status_t | gattc_disc_svc_ind_parser (uint16_t src, uint8_t *data, at_ble_primary_service_found_t *params) |
at_ble_events_t | gattc_event_ind_parser (uint16_t src, uint8_t *data, void *params) |
at_ble_status_t | gattc_execute_write_cmd_handler (uint8_t u8Execute, uint16_t u16ConHdl) |
at_ble_status_t | gattc_mtu_cmd_handler (uint16_t u16ConHdl) |
at_ble_status_t | gattc_read_cmd_handler_by_uuid (uint16_t u16StartHdl, uint16_t u16EndHdl, uint8_t u8UUIDLen, uint8_t *pu8UUID, uint16_t u16ConHdl) |
at_ble_status_t | gattc_read_cmd_handler_multible (uint16_t *u16Handle_list, uint8_t u8Count, uint16_t *u16Length_list, uint16_t u16ConHdl) |
at_ble_status_t | gattc_read_cmd_handler_simple_read (uint16_t u16Handle, uint16_t u16Offset, uint16_t u16Len, uint16_t u16ConHdl) |
at_ble_status_t | gattc_read_ind_parser (uint16_t src, uint8_t *data, at_ble_characteristic_read_response_t *params) |
at_ble_status_t | gattc_reg_to_peer_handler (uint8_t u8ReqType, uint16_t u16StartHdl, uint16_t u16EndHdl, uint16_t u16ConHdl) |
at_ble_status_t | gattc_send_evt_cmd_handler (uint8_t u8ReqType, uint16_t u16AttHdl, uint16_t u16ConHdl) |
at_ble_status_t | gattc_svc_changed_notification_cmd_handler (uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle) |
at_ble_status_t | gattc_write_cmd_handler (uint8_t u8ReqType, uint8_t u8AutoExec, uint16_t u16AttHdl, uint16_t u16Offset, uint16_t u16Length, uint8_t *pu8Val, uint16_t u16ConHdl) |
at_ble_status_t | gattc_write_cmd_ind (uint16_t src, uint8_t *data, at_ble_characteristic_changed_t *params) |
at_ble_status_t | gattc_write_cmd_ind_handler (uint8_t *msg, uint16_t len) |
enum ATT_ERR |
Attribute Error Code from BT 4.0 specs.
enum gattc_msg_id |
GATT Task messages.
enum gattc_operation |
request operation type - application interface
at_ble_events_t gattc_complete_evt_handler | ( | uint16_t | src, |
uint8_t * | data, | ||
void * | params | ||
) |
References AT_BLE_CHARACTERISTIC_WRITE_CMD_CMP, AT_BLE_DISCOVERY_COMPLETE, AT_BLE_DISCOVERY_FAILURE, AT_BLE_DISCOVERY_SUCCESS, AT_BLE_INDICATION_CONFIRMED, AT_BLE_MTU_CHANGED_CMD_COMPLETE, AT_BLE_NOTIFICATION_CONFIRMED, AT_BLE_SUCCESS, AT_BLE_UNDEFINED_EVENT, ATT_ERR_ATTRIBUTE_NOT_FOUND, GATTC_DISC_ALL_CHAR, GATTC_DISC_ALL_SVC, GATTC_DISC_BY_UUID_CHAR, GATTC_DISC_BY_UUID_SVC, GATTC_DISC_DESC_CHAR, GATTC_DISC_INCLUDED_SVC, GATTC_EXEC_WRITE, GATTC_INDICATE, GATTC_MTU_EXCH, GATTC_NOTIFY, GATTC_WRITE, GATTC_WRITE_NO_RESPONSE, GATTC_WRITE_SIGNED, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT8, and status.
Referenced by handle_ble_event().
at_ble_status_t gattc_disc_char_desc_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_descriptor_found_t * | params | ||
) |
References AT_BLE_SUCCESS, at_ble_uuid_len2type(), at_ble_descriptor_found_t::conn_handle, at_ble_descriptor_found_t::desc_handle, at_ble_descriptor_found_t::desc_uuid, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, KE_IDX_GET, at_ble_uuid_t::type, and at_ble_uuid_t::uuid.
Referenced by handle_ble_event().
at_ble_status_t gattc_disc_char_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_characteristic_found_t * | params | ||
) |
References AT_BLE_SUCCESS, at_ble_uuid_len2type(), at_ble_characteristic_found_t::char_handle, at_ble_characteristic_found_t::char_uuid, at_ble_characteristic_found_t::conn_handle, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, KE_IDX_GET, at_ble_characteristic_found_t::properties, at_ble_uuid_t::type, at_ble_uuid_t::uuid, and at_ble_characteristic_found_t::value_handle.
Referenced by handle_ble_event().
at_ble_status_t gattc_disc_cmd_handler | ( | uint8_t | u8ReqType, |
uint8_t | u8UUIDLen, | ||
uint16_t | u16StartHdl, | ||
uint16_t | u16EndHdl, | ||
uint8_t * | pu8UUID, | ||
uint16_t | u16ConHdl | ||
) |
References GATTC_DISC_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, NULL, status, and TASK_GATTC.
Referenced by at_ble_characteristic_discover_all(), at_ble_characteristic_discover_by_uuid(), at_ble_descriptor_discover_all(), at_ble_included_service_discover_all(), at_ble_primary_service_discover_all(), and at_ble_primary_service_discover_by_uuid().
at_ble_status_t gattc_disc_svc_incl_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_included_service_found_t * | params | ||
) |
References AT_BLE_SUCCESS, at_ble_uuid_len2type(), at_ble_included_service_found_t::attr_handle, at_ble_included_service_found_t::conn_handle, at_ble_included_service_found_t::end_handle, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, KE_IDX_GET, at_ble_included_service_found_t::service_uuid, at_ble_included_service_found_t::start_handle, at_ble_uuid_t::type, and at_ble_uuid_t::uuid.
Referenced by handle_ble_event().
at_ble_status_t gattc_disc_svc_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_primary_service_found_t * | params | ||
) |
References AT_BLE_SUCCESS, at_ble_uuid_len2type(), at_ble_primary_service_found_t::conn_handle, at_ble_primary_service_found_t::end_handle, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, KE_IDX_GET, at_ble_primary_service_found_t::service_uuid, at_ble_primary_service_found_t::start_handle, at_ble_uuid_t::type, and at_ble_uuid_t::uuid.
Referenced by handle_ble_event().
at_ble_events_t gattc_event_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
void * | params | ||
) |
References AT_BLE_INDICATION_RECEIVED, AT_BLE_NOTIFICATION_RECEIVED, AT_BLE_UNDEFINED_EVENT, at_ble_notification_received_t::char_handle, at_ble_indication_received_t::char_handle, at_ble_notification_received_t::char_len, at_ble_indication_received_t::char_len, at_ble_notification_received_t::char_value, at_ble_indication_received_t::char_value, at_ble_notification_received_t::conn_handle, at_ble_indication_received_t::conn_handle, GATTC_INDICATE, GATTC_NOTIFY, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_SKIP, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, and KE_IDX_GET.
Referenced by handle_ble_event().
at_ble_status_t gattc_execute_write_cmd_handler | ( | uint8_t | u8Execute, |
uint16_t | u16ConHdl | ||
) |
at_ble_status_t gattc_mtu_cmd_handler | ( | uint16_t | u16ConHdl | ) |
References GATTC_EXC_MTU_CMD, GATTC_MTU_EXCH, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GATTC.
Referenced by at_ble_exchange_mtu().
at_ble_status_t gattc_read_cmd_handler_by_uuid | ( | uint16_t | u16StartHdl, |
uint16_t | u16EndHdl, | ||
uint8_t | u8UUIDLen, | ||
uint8_t * | pu8UUID, | ||
uint16_t | u16ConHdl | ||
) |
at_ble_status_t gattc_read_cmd_handler_multible | ( | uint16_t * | u16Handle_list, |
uint8_t | u8Count, | ||
uint16_t * | u16Length_list, | ||
uint16_t | u16ConHdl | ||
) |
at_ble_status_t gattc_read_cmd_handler_simple_read | ( | uint16_t | u16Handle, |
uint16_t | u16Offset, | ||
uint16_t | u16Len, | ||
uint16_t | u16ConHdl | ||
) |
References GATTC_READ, GATTC_READ_CMD, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GATTC.
Referenced by at_ble_characteristic_read().
at_ble_status_t gattc_read_ind_parser | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_characteristic_read_response_t * | params | ||
) |
References AT_BLE_SUCCESS, at_ble_characteristic_read_response_t::char_handle, at_ble_characteristic_read_response_t::char_len, at_ble_characteristic_read_response_t::char_offset, at_ble_characteristic_read_response_t::char_value, at_ble_characteristic_read_response_t::conn_handle, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, and KE_IDX_GET.
Referenced by handle_ble_event().
at_ble_status_t gattc_reg_to_peer_handler | ( | uint8_t | u8ReqType, |
uint16_t | u16StartHdl, | ||
uint16_t | u16EndHdl, | ||
uint16_t | u16ConHdl | ||
) |
at_ble_status_t gattc_send_evt_cmd_handler | ( | uint8_t | u8ReqType, |
uint16_t | u16AttHdl, | ||
uint16_t | u16ConHdl | ||
) |
References GATTC_SEND_EVT_CMD, INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, KE_BUILD_ID, status, and TASK_GATTC.
Referenced by at_ble_indication_send(), and at_ble_notification_send().
at_ble_status_t gattc_svc_changed_notification_cmd_handler | ( | uint16_t | conn_handle, |
uint16_t | start_handle, | ||
uint16_t | end_handle | ||
) |
at_ble_status_t gattc_write_cmd_handler | ( | uint8_t | u8ReqType, |
uint8_t | u8AutoExec, | ||
uint16_t | u16AttHdl, | ||
uint16_t | u16Offset, | ||
uint16_t | u16Length, | ||
uint8_t * | pu8Val, | ||
uint16_t | u16ConHdl | ||
) |
References GATTC_WRITE_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, status, and TASK_GATTC.
Referenced by at_ble_characteristic_reliable_write_prepare(), and at_ble_characteristic_write().
at_ble_status_t gattc_write_cmd_ind | ( | uint16_t | src, |
uint8_t * | data, | ||
at_ble_characteristic_changed_t * | params | ||
) |
References at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_len, at_ble_characteristic_changed_t::char_new_value, at_ble_characteristic_changed_t::char_offset, at_ble_characteristic_changed_t::conn_handle, GATTC_WRITE_CMD_CFM, gattm_att_set_value_req_handler(), INTERFACE_MSG_DONE, INTERFACE_MSG_INIT, INTERFACE_PACK_ARG_UINT16, INTERFACE_PACK_ARG_UINT8, INTERFACE_SEND_NO_WAIT, INTERFACE_UNPACK_BLOCK, INTERFACE_UNPACK_DONE, INTERFACE_UNPACK_INIT, INTERFACE_UNPACK_UINT16, INTERFACE_UNPACK_UINT8, KE_IDX_GET, and status.
Referenced by handle_ble_event().
at_ble_status_t gattc_write_cmd_ind_handler | ( | uint8_t * | msg, |
uint16_t | len | ||
) |