Macros | |
#define | AT_BLE_ADDR_LEN 6 |
BLE address length. More... | |
#define | AT_BLE_ADV_INTERVAL_MAX 0x4000 |
Maximum Advertising interval in 625 us units, i.e. More... | |
#define | AT_BLE_ADV_INTERVAL_MIN 0x0020 |
Minimum Advertising interval in 625 us units, i.e. More... | |
#define | AT_BLE_ADV_MAX_SIZE 31 |
Maximum size of advertising data in octets. More... | |
#define | AT_BLE_ADV_NONCON_INTERVAL_MIN 0x00A0 |
Minimum Advertising interval in 625 us units for non connectable mode, i.e. More... | |
#define | AT_BLE_GAP_WHITELIST_ADDR_MAX_COUNT (8) |
Maximum amount of addresses in a white-list. More... | |
#define | AT_BLE_GAP_WHITELIST_IRK_MAX_COUNT (8) |
Maximum amount of IRKs in a white-list. More... | |
#define | AT_BLE_MAX_ATT_LEN 512 |
ATT Maximum Attribute Length. More... | |
#define | AT_BLE_MAX_KEY_LEN (16) |
BLE security key maximum length. More... | |
#define | AT_BLE_PASSKEY_LEN (6) |
GAP Security Key Length. More... | |
#define | AT_BLE_SCAN_INTERVAL_MAX 0x4000 |
Maximum scanning interval in 625 us units , i.e. More... | |
#define | AT_BLE_SCAN_INTERVAL_MIN 0x0004 |
Minimum scanning interval in 625 us units , i.e. More... | |
#define | AT_BLE_SCAN_WINDOW_MAX 0x4000 |
Maximum scanning window in 625 us units , i.e. More... | |
#define | AT_BLE_SCAN_WINDOW_MIN 0x0004 |
Minimum scanning window in 625 us units , i.e. More... | |
#define | AT_BLE_UUID_128_LEN (16) |
UUID 128 size in bytes. More... | |
#define | AT_BLE_UUID_16_LEN (2) |
UUID 16 size in bytes. More... | |
#define | AT_BLE_UUID_32_LEN (4) |
UUID 32 size in bytes. More... | |
#define | AT_CNX_INTERVAL_MAX 3200 |
Maximum Connection interval in 1.250ms units, i.e. More... | |
#define | AT_CNX_INTERVAL_MIN 6 |
Minimum Connection interval in 1.250ms units, i.e. More... | |
#define | AT_CNX_LATENCY_MAX 499 |
Maximum Connection latency (number of connection events that may be missed). More... | |
#define | AT_CNX_LATENCY_MIN 0 |
Minimum Connection latency (number of connection events that may be missed). More... | |
#define | AT_CNX_SUP_TO_MAX 3200 |
Maximum Supervision timeout in 10ms units, i.e. More... | |
#define | AT_CNX_SUP_TO_MIN 10 |
Minimum Supervision timeout in 10ms units, i.e. More... | |
#define | AT_DEFAULT_MTU 0x0017 |
Maximum Transmission Unit. More... | |
Typedefs | |
typedef uint16_t | at_ble_handle_t |
BLE connection handle. More... | |
#define AT_BLE_ADDR_LEN 6 |
BLE address length.
Referenced by at_ble_addr_set(), dbg_le_get_bd_addr_req_handler(), dbg_le_set_bd_addr_req_handler(), gapc_bond_ind(), gapc_con_req_ind(), gapm_adv_report_evt_handler(), gapm_cmp_evt(), gapm_dev_bdaddr_ind_handler(), gapm_get_address_type(), gapm_resolv_addr_cmd_handler(), gapm_start_adv_cmd_handler(), and gapm_white_list_mgm_cmd().
#define AT_BLE_ADV_INTERVAL_MAX 0x4000 |
#define AT_BLE_ADV_INTERVAL_MIN 0x0020 |
#define AT_BLE_ADV_MAX_SIZE 31 |
Maximum size of advertising data in octets.
Referenced by at_ble_adv_data_set(), and gapm_adv_report_evt_handler().
#define AT_BLE_ADV_NONCON_INTERVAL_MIN 0x00A0 |
Minimum Advertising interval in 625 us units for non connectable mode, i.e.
100 ms.
Referenced by at_ble_adv_start().
#define AT_BLE_GAP_WHITELIST_ADDR_MAX_COUNT (8) |
Maximum amount of addresses in a white-list.
#define AT_BLE_GAP_WHITELIST_IRK_MAX_COUNT (8) |
Maximum amount of IRKs in a white-list.
#define AT_BLE_MAX_ATT_LEN 512 |
ATT Maximum Attribute Length.
#define AT_BLE_MAX_KEY_LEN (16) |
BLE security key maximum length.
Referenced by at_ble_init(), at_ble_set_privacy_key(), gapc_key_exch(), and gapm_addr_solved_ind_handler().
#define AT_BLE_PASSKEY_LEN (6) |
GAP Security Key Length.
Referenced by at_ble_pair_key_reply(), and ble_pair_key_request_handler().
#define AT_BLE_SCAN_INTERVAL_MAX 0x4000 |
#define AT_BLE_SCAN_INTERVAL_MIN 0x0004 |
#define AT_BLE_SCAN_WINDOW_MAX 0x4000 |
#define AT_BLE_SCAN_WINDOW_MIN 0x0004 |
#define AT_BLE_UUID_128_LEN (16) |
UUID 128 size in bytes.
Referenced by at_ble_service_define(), at_ble_uuid_type2len(), and scan_info_parse().
#define AT_BLE_UUID_16_LEN (2) |
UUID 16 size in bytes.
Referenced by at_ble_uuid_len2type(), at_ble_uuid_type2len(), and scan_info_parse().
#define AT_BLE_UUID_32_LEN (4) |
UUID 32 size in bytes.
Referenced by at_ble_uuid_len2type(), at_ble_uuid_type2len(), and scan_info_parse().
#define AT_CNX_INTERVAL_MAX 3200 |
Maximum Connection interval in 1.250ms units, i.e.
4s.
Referenced by at_ble_connect(), and at_ble_connection_param_update().
#define AT_CNX_INTERVAL_MIN 6 |
Minimum Connection interval in 1.250ms units, i.e.
7.5ms.
Referenced by at_ble_connect(), and at_ble_connection_param_update().
#define AT_CNX_LATENCY_MAX 499 |
Maximum Connection latency (number of connection events that may be missed).
Referenced by at_ble_connect(), and at_ble_connection_param_update().
#define AT_CNX_LATENCY_MIN 0 |
Minimum Connection latency (number of connection events that may be missed).
#define AT_CNX_SUP_TO_MAX 3200 |
Maximum Supervision timeout in 10ms units, i.e.
32s.
Referenced by at_ble_connect(), and at_ble_connection_param_update().
#define AT_CNX_SUP_TO_MIN 10 |
Minimum Supervision timeout in 10ms units, i.e.
100ms.
Referenced by at_ble_connect(), and at_ble_connection_param_update().
#define AT_DEFAULT_MTU 0x0017 |
Maximum Transmission Unit.
typedef uint16_t at_ble_handle_t |
BLE connection handle.
enum at_ble_addr_type_t |
BLE can accept either public or random addresses.
enum at_ble_adv_mode_t |
Advertising Mode.
enum at_ble_adv_type_t |
GAP Advertising types.
Enumerator | |
---|---|
AT_BLE_ADV_TYPE_UNDIRECTED |
Connectable undirected. |
AT_BLE_ADV_TYPE_DIRECTED |
Connectable directed. |
AT_BLE_ADV_TYPE_SCANNABLE_UNDIRECTED |
Scannable undirected. |
AT_BLE_ADV_TYPE_NONCONN_UNDIRECTED |
Non connectable undirected. |
AT_BLE_ADV_TYPE_SCAN_RESPONSE |
(Only used in AT_BLE_SCAN_INFO event.) Signifies a scan response. |
Attribute Permissions.
enum at_ble_auth_levels_t |
Security authentication level.
enum at_ble_auth_t |
enum at_ble_author_t |
Presentation Formats.
Characteristic properties (Each enum value is a single bit; multiple properties can be indicated simultaneously.)
enum at_ble_events_t |
Events delivered from BLE stack to the application layer.
Enumerator | |
---|---|
AT_BLE_UNDEFINED_EVENT |
Undefined event received. |
AT_BLE_SCAN_INFO |
Scan info needs to be delivered either adv data or scan response data.
|
AT_BLE_SCAN_REPORT |
Scan report received at the end of scan period if AT_BLE_SCAN_GEN_DISCOVERY or AT_BLE_SCAN_LIM_DISCOVERY are used.
|
AT_BLE_RAND_ADDR_CHANGED |
Used random address.
|
AT_BLE_CONNECTED |
Connected to a peer device.
|
AT_BLE_DISCONNECTED |
Peer device connection terminated.
|
AT_BLE_CONN_PARAM_UPDATE_DONE |
Connection parameters updated. It is required to call at_ble_conn_update_reply function to send response back if needed. |
AT_BLE_CONN_PARAM_UPDATE_REQUEST |
Peer device asks for connection parameters update.
|
AT_BLE_RX_POWER_VALUE |
Reported RX power value.
|
AT_BLE_PAIR_DONE |
Pairing procedure is completed.
|
AT_BLE_PAIR_REQUEST |
A central device asks for Pairing.
|
AT_BLE_SLAVE_SEC_REQUEST |
Slave security request.
|
AT_BLE_PAIR_KEY_REQUEST |
A passkey or OOB data is requested as part of pairing procedure.
|
AT_BLE_ENCRYPTION_REQUEST |
Encryption is requested by a master device.
|
AT_BLE_ENCRYPTION_STATUS_CHANGED |
Encryption status changed.
|
AT_BLE_RESOLV_RAND_ADDR_STATUS |
Resolve random address status.
|
AT_BLE_PRIMARY_SERVICE_FOUND |
A primary service is found.
|
AT_BLE_INCLUDED_SERVICE_FOUND |
An included service is found.
|
AT_BLE_CHARACTERISTIC_FOUND |
A Characteristic is found.
|
AT_BLE_DESCRIPTOR_FOUND |
A descriptor is found.
|
AT_BLE_DISCOVERY_COMPLETE |
A discover operation has completed.
|
AT_BLE_CHARACTERISTIC_READ_RESPONSE |
Characteristic read procedure is done. |
AT_BLE_CHARACTERISTIC_READ_MULTIBLE_RESPONSE |
Characteristic multiple read procedure is done. |
AT_BLE_CHARACTERISTIC_WRITE_RESPONSE |
Characteristic write procedure is done. |
AT_BLE_NOTIFICATION_RECEIVED |
A Notification is received.
|
AT_BLE_INDICATION_RECEIVED |
An Indication is received.
|
AT_BLE_INDICATION_CONFIRMED |
The peer confirmed that it has received an Indication.
|
AT_BLE_CHARACTERISTIC_CHANGED |
The peer has changed a characteristic value.
|
AT_BLE_SERVICE_CHANGED_NOTIFICATION_CONFIRMED |
The peer has confirmed that it has received the service changed notification. |
AT_BLE_WRITE_AUTHORIZE_REQUEST |
The peer asks for a write Authorization.
|
AT_BLE_READ_AUTHORIZE_REQUEST |
The peer asks for a read Authorization.
|
AT_BLE_L2CAP_RX |
An L2CAP packet received from a registered custom CID.
|
AT_BLE_WIFIPROV_SCAN_MODE_CHANGE_IND |
WiFi Scan requested. |
AT_BLE_WIFIPROV_COMPLETE_IND |
WiFi Provisioning complete.
|
AT_BLE_CUSTOM_EVENT |
A user-defined event is delivered to the system. |
AT_BLE_TX_POWER_VALUE |
Reported TX power value.
|
AT_BLE_TX_POWER_SET |
Indication for tx power set (success or fail).
|
AT_BLE_MAX_PA_GAIN_VALUE |
Reported maximum PA gain value.
|
AT_BLE_MTU_CHANGED_CMD_COMPLETE |
MTU changed complete. |
AT_BLE_CHARACTERISTIC_WRITE_CMD_CMP |
Characteristic write complete. |
AT_BLE_NOTIFICATION_CONFIRMED |
Notification confirmed. |
enum at_ble_filter_type_t |
Advertising Filter Policy.
enum at_ble_gap_role |
enum at_ble_iocab_t |
IO capabilities of a device.
enum at_ble_key_dis_t |
Pairing Key Types.
Enumerator | |
---|---|
AT_BLE_PAIR_PASSKEY |
A passkey is required at_ble_passkey_type_t for more details. |
AT_BLE_PAIR_OOB |
Out of band key is required. |
enum at_ble_parameters_t |
Enumeration for GAP Parameters.
enum at_ble_scan_mode_t |
Scan modes used at at_ble_scan_start.
Enumerator | |
---|---|
AT_BLE_SCAN_GEN_DISCOVERY |
Send advertising report about device that advertise in limited or general mode ,the operation stops after 10 sec of activity. |
AT_BLE_SCAN_LIM_DISCOVERY |
Send advertising report about device that advertise in limited mode ,the operation stops after 10 sec of activity. |
AT_BLE_SCAN_OBSERVER_MODE |
Send any advertising report ,this operation can only be stopped by at_ble_scan_stop. |
enum at_ble_scan_type_t |
Scan types used at at_ble_scan_start.
Enumerator | |
---|---|
AT_BLE_SCAN_PASSIVE |
Passive scan, without transmitting. |
AT_BLE_SCAN_ACTIVE |
Active scan, using scan requests. |
enum at_ble_status_t |
Enumeration for BLE Status.
enum at_ble_uuid_type_t |