AIROC™ BTSDK v4.9 - Documentation | ||||
AIROC Generic Attribute (GATT) Application Programming Interface. More...
Data Structures | |
struct | wiced_bt_gatt_value_t |
Attribute value, used for GATT write operations, and read response callbacks. More... | |
struct | wiced_bt_gatt_read_t |
Attribute read request. More... | |
struct | wiced_bt_gatt_write_t |
Attribute write request. More... | |
union | wiced_bt_gatt_request_data_t |
Attribute information for GATT attribute requests. More... | |
struct | wiced_bt_gatt_discovery_param_t |
Parameters used in a GATT Discovery. More... | |
struct | wiced_bt_gatt_read_by_type_t |
Parameters for GATT_READ_BY_TYPE and GATT_READ_CHAR_VALUE. More... | |
struct | wiced_bt_gatt_read_multi_t |
Parameters for GATT_READ_MULTIPLE. More... | |
struct | wiced_bt_gatt_read_by_handle_t |
Parameters for GATT_READ_BY_HANDLE. More... | |
struct | wiced_bt_gatt_read_partial_t |
Parameters for GATT_READ_PARTIAL. More... | |
union | wiced_bt_gatt_read_param_t |
Read request parameters - used when calling wiced_bt_gatt_send_read. More... | |
struct | wiced_bt_gatt_data_t |
Response data for read operations. More... | |
union | wiced_bt_gatt_operation_complete_rsp_t |
Client Operation Complete response data (dependent on operation completed) More... | |
struct | wiced_bt_gatt_char_declaration_t |
characteristic declaration More... | |
struct | wiced_bt_gatt_group_value_t |
GATT group value. More... | |
struct | wiced_bt_gatt_included_service_t |
included service attribute value More... | |
struct | wiced_bt_gatt_char_descr_info_t |
characteristic descriptor information More... | |
union | wiced_bt_gatt_discovery_data_t |
Discovery result data Use GATT_DISCOVERY_RESULT_SERVICE_* or GATT_DISCOVERY_RESULT_CHARACTERISTIC_* macros to parse discovery data) More... | |
struct | wiced_bt_gatt_discovery_result_t |
Discovery result (used by GATT_DISCOVERY_RESULT_EVT notification) More... | |
struct | wiced_bt_gatt_discovery_complete_t |
Discovery Complete (used by GATT_DISCOVERY_CPLT_EVT notification) More... | |
struct | wiced_bt_gatt_operation_complete_t |
Response to read/write/disc/config operations (used by GATT_OPERATION_CPLT_EVT notification) More... | |
struct | wiced_bt_gatt_connection_status_t |
GATT connection status (used by GATT_CONNECTION_STATUS_EVT notification) More... | |
struct | wiced_bt_gatt_attribute_request_t |
GATT attribute request (used by GATT_ATTRIBUTE_REQUEST_EVT notification) More... | |
struct | wiced_bt_gatt_congestion_event_t |
GATT channel congestion/uncongestion (used by GATT_CONGESTION_EVT notification) More... | |
union | wiced_bt_gatt_event_data_t |
Stuctures for GATT event notifications. More... | |
struct | wiced_bt_gatt_gap_ble_pref_param_t |
GATT attribute structure for preferred connection parameters. More... | |
union | wiced_bt_gatt_gap_ble_attr_value_t |
GATT attribute value included in central role DB. More... | |
Macros | |
#define | GATT_RSP_ERROR 0x01 |
GATT Operation Codes. More... | |
#define | GATT_REQ_MTU 0x02 |
Exchange MTU Request. | |
#define | GATT_RSP_MTU 0x03 |
Exchange MTU Response. | |
#define | GATT_REQ_FIND_INFO 0x04 |
Find Information Request. | |
#define | GATT_RSP_FIND_INFO 0x05 |
Find Information Response. | |
#define | GATT_REQ_FIND_TYPE_VALUE 0x06 |
Find By Type Value Request. | |
#define | GATT_RSP_FIND_TYPE_VALUE 0x07 |
Find By Type Value Response. | |
#define | GATT_REQ_READ_BY_TYPE 0x08 |
Read By Type Request. | |
#define | GATT_RSP_READ_BY_TYPE 0x09 |
Read By Type Response. | |
#define | GATT_REQ_READ 0x0A |
Read Request. | |
#define | GATT_RSP_READ 0x0B |
Read Response. | |
#define | GATT_REQ_READ_BLOB 0x0C |
Read Blob Request. | |
#define | GATT_RSP_READ_BLOB 0x0D |
Read Blob Response. | |
#define | GATT_REQ_READ_MULTI 0x0E |
Read Multiple Request. | |
#define | GATT_RSP_READ_MULTI 0x0F |
Read Multiple Response. | |
#define | GATT_REQ_READ_BY_GRP_TYPE 0x10 |
Read By Group Type Request. | |
#define | GATT_RSP_READ_BY_GRP_TYPE 0x11 |
Read By Group Type Response. | |
#define | GATT_REQ_WRITE 0x12 |
Write Request. | |
#define | GATT_RSP_WRITE 0x13 |
Write Request. | |
#define | GATT_CMD_WRITE 0x52 |
Write Command. | |
#define | GATT_REQ_PREPARE_WRITE 0x16 |
Prepare Write Request. | |
#define | GATT_RSP_PREPARE_WRITE 0x17 |
Prepare Write Response. | |
#define | GATT_REQ_EXEC_WRITE 0x18 |
Execute Write Request. | |
#define | GATT_RSP_EXEC_WRITE 0x19 |
Execute Write Response. | |
#define | GATT_HANDLE_VALUE_NOTIF 0x1B |
Handle Value Notification. | |
#define | GATT_HANDLE_VALUE_IND 0x1D |
Handle Value Indication. | |
#define | GATT_HANDLE_VALUE_CONF 0x1E |
Handle Value Confirmation. | |
#define | GATT_OP_CODE_MAX (GATT_HANDLE_VALUE_CONF + 1) |
Maximum opcode value. | |
#define | GATT_SIGN_CMD_WRITE 0xD2 |
changed in V4.0 1101-0010 (signed write) see write cmd above | |
#define | GATT_DEF_BLE_MTU_SIZE 23 |
#define | GATT_INVALID_CONN_ID 0xFFFF |
#define | GATT_SERVER_CONFIG_NONE 0x0000 |
characteristic descriptor: server configuration value More... | |
#define | GATT_SERVER_CONFIG_BROADCAST 0x0001 |
Broadcast. | |
#define | GATT_DISCOVERY_RESULT_SERVICE_START_HANDLE(p_event_data) (p_event_data->discovery_result.discovery_data.group_value.s_handle) |
#define | GATT_DISCOVERY_RESULT_SERVICE_END_HANDLE(p_event_data) (p_event_data->discovery_result.discovery_data.group_value.e_handle) |
#define | GATT_DISCOVERY_RESULT_SERVICE_UUID_LEN(p_event_data) (p_event_data->discovery_result.discovery_data.group_value.service_type.len) |
#define | GATT_DISCOVERY_RESULT_SERVICE_UUID16(p_event_data) (p_event_data->discovery_result.discovery_data.group_value.service_type.uu.uuid16) |
#define | GATT_DISCOVERY_RESULT_SERVICE_UUID32(p_event_data) (p_event_data->discovery_result.discovery_data.group_value.service_type.uu.uuid32) |
#define | GATT_DISCOVERY_RESULT_SERVICE_UUID128(p_event_data) (p_event_data->discovery_result.discovery_data.group_value.service_type.uu.uuid128) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_DESCRIPTOR_UUID_LEN(p_event_data) (p_event_data->discovery_result.discovery_data.char_descr_info.type.len) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_DESCRIPTOR_UUID16(p_event_data) (p_event_data->discovery_result.discovery_data.char_descr_info.type.uu.uuid16) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_DESCRIPTOR_UUID32(p_event_data) (p_event_data->discovery_result.discovery_data.char_descr_info.type.uu.uuid32) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_DESCRIPTOR_UUID128(p_event_data) (p_event_data->discovery_result.discovery_data.char_descr_info.type.uu.uuid128) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_DESCRIPTOR_VALUE_HANDLE(p_event_data) (p_event_data->discovery_result.discovery_data.char_descr_info.handle) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_VALUE_HANDLE(p_event_data) (p_event_data->discovery_result.discovery_data.characteristic_declaration.val_handle) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_UUID_LEN(p_event_data) (p_event_data->discovery_result.discovery_data.characteristic_declaration.char_uuid.len) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_UUID16(p_event_data) (p_event_data->discovery_result.discovery_data.characteristic_declaration.char_uuid.uu.uuid16) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_UUID32(p_event_data) (p_event_data->discovery_result.discovery_data.characteristic_declaration.char_uuid.uu.uuid32) |
#define | GATT_DISCOVERY_RESULT_CHARACTERISTIC_UUID128(p_event_data) (p_event_data->discovery_result.discovery_data.characteristic_declaration.char_uuid.uu.uuid128) |
#define | GATT_RESPONSE_SIZE(attr_val_len) ( sizeof( wiced_bt_gatt_value_t ) - 1 + attr_val_len ) |
#define | GATT_MAX_READ_MULTI_HANDLES 10 |
Max attributes allowed in one GATT_READ_MULTIPLE request. | |
#define | GATT_LINK_IDLE_TIMEOUT_WHEN_NO_APP 0 /* start a idle timer for this duration when no application need to use the link */ |
#define | GATT_LINK_NO_IDLE_TIMEOUT 0xFFFF |
#define | GATT_INVALID_ACL_HANDLE 0xFFFF |
#define | GATT_HANDLE_IS_VALID(x) ((x) != 0) |
#define | GATTDB_PERM_NONE (0x00) |
#define | GATTDB_PERM_VARIABLE_LENGTH (0x1 << 0) |
#define | GATTDB_PERM_READABLE (0x1 << 1) |
#define | GATTDB_PERM_WRITE_CMD (0x1 << 2) |
#define | GATTDB_PERM_WRITE_REQ (0x1 << 3) |
#define | GATTDB_PERM_AUTH_READABLE (0x1 << 4) |
#define | GATTDB_PERM_RELIABLE_WRITE (0x1 << 5) |
#define | GATTDB_PERM_AUTH_WRITABLE (0x1 << 6) |
#define | GATTDB_PERM_WRITABLE (GATTDB_PERM_WRITE_CMD | GATTDB_PERM_WRITE_REQ| GATTDB_PERM_AUTH_WRITABLE) |
#define | GATTDB_PERM_MASK (0x7f) /* All the permission bits. */ |
#define | GATTDB_PERM_SERVICE_UUID_128 (0x1 << 7) |
#define | GATTDB_CHAR_PROP_BROADCAST (0x1 << 0) |
#define | GATTDB_CHAR_PROP_READ (0x1 << 1) |
#define | GATTDB_CHAR_PROP_WRITE_NO_RESPONSE (0x1 << 2) |
#define | GATTDB_CHAR_PROP_WRITE (0x1 << 3) |
#define | GATTDB_CHAR_PROP_NOTIFY (0x1 << 4) |
#define | GATTDB_CHAR_PROP_INDICATE (0x1 << 5) |
#define | GATTDB_CHAR_PROP_AUTHD_WRITES (0x1 << 6) |
#define | GATTDB_CHAR_PROP_EXTENDED (0x1 << 7) |
#define | BIT16_TO_8(val) |
#define | GATTDB_UUID16_SIZE 2 |
#define | GATTDB_UUID128_SIZE 16 |
#define | LEGATTDB_PERM_NONE GATTDB_PERM_NONE |
#define | LEGATTDB_PERM_VARIABLE_LENGTH GATTDB_PERM_VARIABLE_LENGTH |
#define | LEGATTDB_PERM_READABLE GATTDB_PERM_READABLE |
#define | LEGATTDB_PERM_WRITE_CMD GATTDB_PERM_WRITE_CMD |
#define | LEGATTDB_PERM_WRITE_REQ GATTDB_PERM_WRITE_REQ |
#define | LEGATTDB_PERM_AUTH_READABLE GATTDB_PERM_AUTH_READABLE |
#define | LEGATTDB_PERM_RELIABLE_WRITE GATTDB_PERM_RELIABLE_WRITE |
#define | LEGATTDB_PERM_AUTH_WRITABLE GATTDB_PERM_AUTH_WRITABLE |
#define | LEGATTDB_PERM_WRITABLE GATTDB_PERM_WRITABLE |
#define | LEGATTDB_PERM_MASK GATTDB_PERM_MASK |
#define | LEGATTDB_PERM_SERVICE_UUID_128 GATTDB_PERM_SERVICE_UUID_128 |
#define | LEGATTDB_CHAR_PROP_BROADCAST GATTDB_CHAR_PROP_BROADCAST |
#define | LEGATTDB_CHAR_PROP_READ GATTDB_CHAR_PROP_READ |
#define | LEGATTDB_CHAR_PROP_WRITE_NO_RESPONSE GATTDB_CHAR_PROP_WRITE_NO_RESPONSE |
#define | LEGATTDB_CHAR_PROP_WRITE GATTDB_CHAR_PROP_WRITE |
#define | LEGATTDB_CHAR_PROP_NOTIFY GATTDB_CHAR_PROP_NOTIFY |
#define | LEGATTDB_CHAR_PROP_INDICATE GATTDB_CHAR_PROP_INDICATE |
#define | LEGATTDB_CHAR_PROP_AUTHD_WRITES GATTDB_CHAR_PROP_AUTHD_WRITES |
#define | LEGATTDB_CHAR_PROP_EXTENDED GATTDB_CHAR_PROP_EXTENDED |
#define | LEGATTDB_UUID16_SIZE GATTDB_UUID16_SIZE |
#define | LEGATTDB_UUID128_SIZE GATTDB_UUID128_SIZE |
#define | ATTRIBUTE16(handle, permission, datalen, uuid) |
#define | PRIMARY_SERVICE_UUID16(handle, service) |
#define | PRIMARY_SERVICE_UUID128(handle, service) |
#define | SECONDARY_SERVICE_UUID16(handle, service) |
#define | SECONDARY_SERVICE_UUID128(handle, service) |
#define | INCLUDE_SERVICE_UUID16(handle, service_handle, end_group_handle, service) |
#define | INCLUDE_SERVICE_UUID128(handle, service_handle, end_group_handle) |
#define | CHARACTERISTIC_UUID16(handle, handle_value, uuid, properties, permission) |
#define | CHARACTERISTIC_UUID128(handle, handle_value, uuid, properties, permission) |
#define | CHARACTERISTIC_UUID16_WRITABLE(handle, handle_value, uuid, properties, permission) |
#define | CHARACTERISTIC_UUID128_WRITABLE(handle, handle_value, uuid, properties, permission) |
#define | CHAR_DESCRIPTOR_UUID16_WRITABLE(handle, uuid, permission) |
#define | CHAR_DESCRIPTOR_UUID16(handle, uuid, permission) |
#define | CHAR_DESCRIPTOR_UUID128_WRITABLE(handle, uuid, permission) |
#define | CHAR_DESCRIPTOR_UUID128(handle, uuid, permission) |
Typedefs | |
typedef uint8_t | wiced_bt_gatt_status_t |
GATT status (see wiced_bt_gatt_status_e) | |
typedef uint16_t | wiced_bt_gatt_disconn_reason_t |
GATT disconnection reason (see wiced_bt_gatt_disconn_reason_e) | |
typedef uint16_t | wiced_bt_gatt_client_char_config_t |
GATT client config (see wiced_bt_gatt_client_char_config_e) | |
typedef uint16_t | wiced_bt_gatt_server_char_config_t |
GATT server config (see #wiced_bt_gatt_server_char_config_e) | |
typedef uint8_t | wiced_bt_gatt_char_properties_t |
GATT characteristic properties mask (see wiced_bt_gatt_char_properties_e) | |
typedef uint8_t | wiced_bt_gatt_auth_req_t |
GATT authentication requirement (see wiced_bt_gatt_auth_req_e) | |
typedef uint8_t | wiced_bt_gatt_exec_flag_t |
GATT execute flag (see wiced_bt_gatt_exec_flag_e) | |
typedef uint8_t | wiced_bt_gatt_request_type_t |
GATT Attribute Request Type (see wiced_bt_gatt_request_type_e) | |
typedef uint8_t | wiced_bt_gatt_discovery_type_t |
GATT Discovery type (see wiced_bt_gatt_discovery_type_e) | |
typedef uint8_t | wiced_bt_gatt_read_type_t |
GATT read type (see wiced_bt_gatt_read_type_e) | |
typedef uint8_t | wiced_bt_gatt_write_type_t |
GATT write type (see wiced_bt_gatt_write_type_e) | |
typedef uint8_t | wiced_bt_gatt_optype_t |
GATT operation type (see wiced_bt_gatt_optype_e) | |
typedef uint16_t | wiced_bt_gatt_appearance_t |
GATT appearance (see #gatt_appearance_e) | |
typedef wiced_bt_gatt_status_t | wiced_bt_gatt_cback_t (wiced_bt_gatt_evt_t event, wiced_bt_gatt_event_data_t *p_event_data) |
GATT event notification callback. More... | |
struct { | |
uint16_t handle | |
atribute Handle | |
uint8_t perm | |
attribute permission. More... | |
uint8_t len | |
attribute length . More... | |
} | wiced_gattdb_entry_t |
Structure used by wiced_bt_gattdb APIS, to parse GATTDB. | |
Functions | |
wiced_bt_gatt_status_t | wiced_bt_gatt_db_init (const uint8_t *p_gatt_db, uint16_t gatt_db_size) |
Function wiced_bt_gatt_db_init. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_indication (uint16_t conn_id, uint16_t attr_handle, uint16_t val_len, uint8_t *p_val) |
Function wiced_bt_gatt_send_indication. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_notification (uint16_t conn_id, uint16_t attr_handle, uint16_t val_len, uint8_t *p_val) |
Function wiced_bt_gatt_send_notification. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_response (wiced_bt_gatt_status_t status, uint16_t conn_id, uint16_t attr_handle, uint16_t attr_len, uint16_t offset, uint8_t *p_attr) |
Function wiced_bt_gatt_send_response. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_configure_mtu (uint16_t conn_id, uint16_t mtu) |
Function wiced_bt_gatt_configure_mtu. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_discover (uint16_t conn_id, wiced_bt_gatt_discovery_type_t discovery_type, wiced_bt_gatt_discovery_param_t *p_discovery_param) |
Function wiced_bt_gatt_send_discover. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_read (uint16_t conn_id, wiced_bt_gatt_read_type_t type, wiced_bt_gatt_read_param_t *p_read) |
Function wiced_bt_gatt_send_read. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_write (uint16_t conn_id, wiced_bt_gatt_write_type_t type, wiced_bt_gatt_value_t *p_write) |
Function wiced_bt_gatt_send_write. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_execute_write (uint16_t conn_id, wiced_bool_t is_execute) |
Function wiced_bt_gatt_send_execute_write. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_send_indication_confirm (uint16_t conn_id, uint16_t handle) |
Function wiced_bt_gatt_send_indication_confirm. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_register (wiced_bt_gatt_cback_t *p_gatt_cback) |
Function wiced_bt_gatt_register. More... | |
wiced_bool_t | wiced_bt_gatt_le_connect (wiced_bt_device_address_t bd_addr, wiced_bt_ble_address_type_t bd_addr_type, wiced_bt_ble_conn_mode_t conn_mode, wiced_bool_t is_direct) |
Function wiced_bt_gatt_le_connect. More... | |
wiced_bool_t | wiced_bt_gatt_bredr_connect (wiced_bt_device_address_t bd_addr) |
Function wiced_bt_gatt_bredr_connect. More... | |
wiced_bool_t | wiced_bt_gatt_cancel_connect (wiced_bt_device_address_t bd_addr, wiced_bool_t is_direct) |
Function wiced_bt_gatt_cancel_connect. More... | |
wiced_bt_gatt_status_t | wiced_bt_gatt_disconnect (uint16_t conn_id) |
Function wiced_bt_gatt_disconnect. More... | |
wiced_bool_t | wiced_bt_gatt_listen (wiced_bool_t start, wiced_bt_device_address_t bd_addr) |
Function wiced_bt_gatt_listen. More... | |
wiced_gattdb_entry_t * | wiced_bt_gattdb_next_entry (wiced_gattdb_entry_t *p_db_entry) |
Function wiced_bt_gattdb_next_entry. More... | |
uint16_t | wiced_bt_gattdb_get_handle (wiced_gattdb_entry_t *p_db_entry) |
Function wiced_bt_gattdb_get_handle. More... | |
int | wiced_bt_gattdb_get_attribute_uuid (wiced_gattdb_entry_t *p_db_entry, uint8_t *p_uuid) |
Function wiced_bt_gattdb_get_attribute_uuid. More... | |
uint16_t | wiced_bt_gattdb_get_attribute_value_uuid16 (wiced_gattdb_entry_t *p_db_entry) |
Function wiced_bt_gattdb_get_attribute_value_uuid16. More... | |
uint16_t | wiced_bt_gattdb_get_charcteristic_descriptor_handle (uint16_t char_handle, uint16_t descriptor_uuid) |
Function wiced_bt_gattdb_get_charcteristic_descriptor_handle. More... | |
AIROC Generic Attribute (GATT) Application Programming Interface.
#define ATTRIBUTE16 | ( | handle, | |
permission, | |||
datalen, | |||
uuid | |||
) |
#define BIT16_TO_8 | ( | val | ) |
#define CHAR_DESCRIPTOR_UUID128 | ( | handle, | |
uuid, | |||
permission | |||
) |
#define CHAR_DESCRIPTOR_UUID128_WRITABLE | ( | handle, | |
uuid, | |||
permission | |||
) |
#define CHAR_DESCRIPTOR_UUID16 | ( | handle, | |
uuid, | |||
permission | |||
) |
#define CHAR_DESCRIPTOR_UUID16_WRITABLE | ( | handle, | |
uuid, | |||
permission | |||
) |
#define CHARACTERISTIC_UUID128 | ( | handle, | |
handle_value, | |||
uuid, | |||
properties, | |||
permission | |||
) |
#define CHARACTERISTIC_UUID128_WRITABLE | ( | handle, | |
handle_value, | |||
uuid, | |||
properties, | |||
permission | |||
) |
#define CHARACTERISTIC_UUID16 | ( | handle, | |
handle_value, | |||
uuid, | |||
properties, | |||
permission | |||
) |
#define CHARACTERISTIC_UUID16_WRITABLE | ( | handle, | |
handle_value, | |||
uuid, | |||
properties, | |||
permission | |||
) |
#define GATT_RSP_ERROR 0x01 |
GATT Operation Codes.
Error Response
#define GATT_SERVER_CONFIG_NONE 0x0000 |
characteristic descriptor: server configuration value
No broadcast
#define INCLUDE_SERVICE_UUID128 | ( | handle, | |
service_handle, | |||
end_group_handle | |||
) |
#define INCLUDE_SERVICE_UUID16 | ( | handle, | |
service_handle, | |||
end_group_handle, | |||
service | |||
) |
#define PRIMARY_SERVICE_UUID128 | ( | handle, | |
service | |||
) |
#define PRIMARY_SERVICE_UUID16 | ( | handle, | |
service | |||
) |
#define SECONDARY_SERVICE_UUID128 | ( | handle, | |
service | |||
) |
#define SECONDARY_SERVICE_UUID16 | ( | handle, | |
service | |||
) |
typedef wiced_bt_gatt_status_t wiced_bt_gatt_cback_t(wiced_bt_gatt_evt_t event, wiced_bt_gatt_event_data_t *p_event_data) |
GATT event notification callback.
Callback for GATT event notifications Registered using wiced_bt_gatt_register()
event | : Event ID |
p_event_data | : Event data |
GATT Characteristic Properties Mask.
GATT Disconnection reason.
Discovery types.
enum wiced_bt_gatt_evt_t |
GATT events.
Enumerator | |
---|---|
GATT_CONNECTION_STATUS_EVT |
GATT connection status change. Event data: wiced_bt_gatt_connection_status_t |
GATT_OPERATION_CPLT_EVT |
GATT operation complete. Event data: wiced_bt_gatt_event_data_t |
GATT_DISCOVERY_RESULT_EVT |
GATT attribute discovery result. Event data: wiced_bt_gatt_discovery_result_t |
GATT_DISCOVERY_CPLT_EVT |
GATT attribute discovery complete. Event data: wiced_bt_gatt_event_data_t |
GATT_ATTRIBUTE_REQUEST_EVT |
GATT attribute request (from remote client). Event data: wiced_bt_gatt_attribute_request_t |
GATT_CONGESTION_EVT |
GATT congestion (running low in tx buffers). Event data: wiced_bt_gatt_congestion_event_t |
GATT client operation type, used in client callback function.
GATT Attribute Request Type.
GATT Status Codes.
Write request types - used when calling wiced_bt_gatt_send_write.
Enumerator | |
---|---|
GATT_WRITE_NO_RSP |
Write without response. |
GATT_WRITE |
Write with response. |
GATT_WRITE_PREPARE |
Prepare to write (call wiced_bt_gatt_send_execute_write to execute the write) |
uint8_t len |
attribute length .
It excludes the header.
uint8_t perm |
attribute permission.