Data Structures | |
struct | wiced_bt_gatt_attribute_request_t |
struct | wiced_bt_gatt_char_declaration_t |
struct | wiced_bt_gatt_char_descr_info_t |
struct | wiced_bt_gatt_congestion_event_t |
struct | wiced_bt_gatt_connection_status_t |
struct | wiced_bt_gatt_data_t |
struct | wiced_bt_gatt_discovery_complete_t |
union | wiced_bt_gatt_discovery_data_t |
struct | wiced_bt_gatt_discovery_param_t |
struct | wiced_bt_gatt_discovery_result_t |
union | wiced_bt_gatt_event_data_t |
union | wiced_bt_gatt_gap_ble_attr_value_t |
struct | wiced_bt_gatt_gap_ble_pref_param_t |
struct | wiced_bt_gatt_group_value_t |
struct | wiced_bt_gatt_included_service_t |
union | wiced_bt_gatt_operation_complete_rsp_t |
struct | wiced_bt_gatt_operation_complete_t |
struct | wiced_bt_gatt_read_by_handle_t |
struct | wiced_bt_gatt_read_by_type_t |
struct | wiced_bt_gatt_read_multi_t |
union | wiced_bt_gatt_read_param_t |
struct | wiced_bt_gatt_read_partial_t |
struct | wiced_bt_gatt_read_t |
union | wiced_bt_gatt_request_data_t |
struct | wiced_bt_gatt_value_t |
struct | wiced_bt_gatt_write_t |
Typedefs | |
typedef uint16_t | wiced_bt_gatt_appearance_t |
typedef uint8_t | wiced_bt_gatt_auth_req_t |
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) |
typedef uint8_t | wiced_bt_gatt_char_properties_t |
typedef uint16_t | wiced_bt_gatt_client_char_config_t |
typedef uint16_t | wiced_bt_gatt_disconn_reason_t |
typedef uint8_t | wiced_bt_gatt_discovery_type_t |
typedef uint8_t | wiced_bt_gatt_exec_flag_t |
typedef uint8_t | wiced_bt_gatt_optype_t |
typedef uint8_t | wiced_bt_gatt_read_type_t |
typedef uint8_t | wiced_bt_gatt_request_type_t |
typedef uint16_t | wiced_bt_gatt_server_char_config_t |
typedef uint8_t | wiced_bt_gatt_status_t |
typedef uint8_t | wiced_bt_gatt_write_type_t |
struct { | |
uint16_t handle | |
uint8_t len | |
uint8_t perm | |
} | wiced_gattdb_entry_t |
WICED Generic Attribute (GATT) Application Programming Interface
#define GATT_CMD_WRITE 0x52 |
Write Command
#define GATT_HANDLE_VALUE_CONF 0x1E |
Handle Value Confirmation
#define GATT_HANDLE_VALUE_IND 0x1D |
Handle Value Indication
#define GATT_HANDLE_VALUE_NOTIF 0x1B |
Handle Value Notification
#define GATT_MAX_READ_MULTI_HANDLES 10 |
Max attributes allowed in one GATT_READ_MULTIPLE request
#define GATT_OP_CODE_MAX (GATT_HANDLE_VALUE_CONF + 1) |
Maximum opcode value
#define GATT_REQ_EXEC_WRITE 0x18 |
Execute Write Request
#define GATT_REQ_FIND_INFO 0x04 |
Find Information Request
#define GATT_REQ_FIND_TYPE_VALUE 0x06 |
Find By Type Value Request
#define GATT_REQ_MTU 0x02 |
Exchange MTU Request
#define GATT_REQ_PREPARE_WRITE 0x16 |
Prepare Write Request
#define GATT_REQ_READ 0x0A |
Read Request
#define GATT_REQ_READ_BLOB 0x0C |
Read Blob Request
#define GATT_REQ_READ_BY_GRP_TYPE 0x10 |
Read By Group Type Request
#define GATT_REQ_READ_BY_TYPE 0x08 |
Read By Type Request
#define GATT_REQ_READ_MULTI 0x0E |
Read Multiple Request
#define GATT_REQ_WRITE 0x12 |
Write Request
#define GATT_RSP_ERROR 0x01 |
GATT Operation Codes Error Response
#define GATT_RSP_EXEC_WRITE 0x19 |
Execute Write Response
#define GATT_RSP_FIND_INFO 0x05 |
Find Information Response
#define GATT_RSP_FIND_TYPE_VALUE 0x07 |
Find By Type Value Response
#define GATT_RSP_MTU 0x03 |
Exchange MTU Response
#define GATT_RSP_PREPARE_WRITE 0x17 |
Prepare Write Response
#define GATT_RSP_READ 0x0B |
Read Response
#define GATT_RSP_READ_BLOB 0x0D |
Read Blob Response
#define GATT_RSP_READ_BY_GRP_TYPE 0x11 |
Read By Group Type Response
#define GATT_RSP_READ_BY_TYPE 0x09 |
Read By Type Response
#define GATT_RSP_READ_MULTI 0x0F |
Read Multiple Response
#define GATT_RSP_WRITE 0x13 |
Write Request
#define GATT_SERVER_CONFIG_BROADCAST 0x0001 |
Broadcast
#define GATT_SERVER_CONFIG_NONE 0x0000 |
characteristic descriptor: server configuration value No broadcast
#define GATT_SIGN_CMD_WRITE 0xD2 |
changed in V4.0 1101-0010 (signed write) see write cmd above
typedef uint16_t wiced_bt_gatt_appearance_t |
GATT appearance (see #gatt_appearance_e)
typedef uint8_t wiced_bt_gatt_auth_req_t |
GATT authentication requirement (see wiced_bt_gatt_auth_req_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
Callback for GATT event notifications Registered using wiced_bt_gatt_register()
event | : Event ID |
p_event_data | : Event data |
typedef uint8_t wiced_bt_gatt_char_properties_t |
GATT characteristic properties mask (see wiced_bt_gatt_char_properties_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_disconn_reason_t |
GATT disconnection reason (see wiced_bt_gatt_disconn_reason_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_exec_flag_t |
GATT execute flag (see wiced_bt_gatt_exec_flag_e)
typedef uint8_t wiced_bt_gatt_optype_t |
GATT operation type (see wiced_bt_gatt_optype_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_request_type_t |
GATT Attribute Request Type (see wiced_bt_gatt_request_type_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_status_t |
GATT status (see wiced_bt_gatt_status_e)
typedef uint8_t wiced_bt_gatt_write_type_t |
GATT write type (see wiced_bt_gatt_write_type_e)
typedef { ... } wiced_gattdb_entry_t |
Structure used by wiced_bt_gattdb APIS, to parse GATTDB
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 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) |
uint16_t handle |
atribute Handle
uint8_t len |
attribute length . It excludes the header.
uint8_t perm |
attribute permission.