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(), ble_advertisement_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 altbeacon_init(), and 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(), ble_connected_state_handler(), ble_resolv_rand_addr_handler(), 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(), ble_observer_scan_info_handler(), esurl_conf_adv_start(), esurl_conf_service_init(), 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(), ble_observer_scan_info_handler(), 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(), ble_observer_scan_info_handler(), 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. |
AT_BLE_ADV_TYPE_UNDIRECTED |
Connectable undirected. |
AT_BLE_ADV_TYPE_DIRECTED |
Connectable high duty cycle directed advertising. |
AT_BLE_ADV_TYPE_SCANNABLE_UNDIRECTED |
Scannable undirected. |
AT_BLE_ADV_TYPE_NONCONN_UNDIRECTED |
Non connectable undirected. |
AT_BLE_ADV_TYPE_DIRECTED_LDC |
Connectable low duty cycle directed advertising. |
AT_BLE_ADV_TYPE_SCAN_RESPONSE |
only used in AT_BLE_SCAN_INFO event to signify a scan response |
Write access.
Attribute Permissions.
enum at_ble_auth_levels_t |
Security authentication level.
enum at_ble_auth_t |
Authorization Types.
enum at_ble_author_t |
Authorization setting.
Presentation Formats.
Characteristic properties (Each enum value is a single bit; multiple properties can be indicated simultaneously.)
Disconnection reasons.
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. |
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_ADV_CMP_EVENT |
Advertising complete event , this event is received at the end of advertising event. Refer to at_ble_adv_cmp_evt_t |
AT_BLE_ADV_REPORT |
Advertising report received if error has occurred or timeout happened. Refer to at_ble_adv_report_t |
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 requires 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_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_SIGN_COUNTERS_IND |
Signature counters new values indication Refer to at_ble_sign_counter_t. |
AT_BLE_PEER_ATT_INFO_IND |
peer attribute info received Refer to at_ble_peer_att_info_ind_t |
AT_BLE_CON_CHANNEL_MAP_IND |
peer device channel map received Refer to at_ble_channel_map_t |
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_BY_UUID_RESPONSE |
Characteristic read by UUID 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_RECIEVED |
A Notification is received.
|
AT_BLE_INDICATION_RECIEVED |
An Indication is received.
|
AT_BLE_NOTIFICATION_CONFIRMED |
The firmware confirmed that an Notification PDU has been sent over the air.
|
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_CHARACTERISTIC_CONFIGURATION_CHANGED |
The peer has changed a characteristic configuration descriptor value. |
AT_BLE_SERVICE_CHANGED_INDICATION_SENT |
the service changed indication had been sent .
|
AT_BLE_WRITE_AUTHORIZE_REQUEST |
The peer asks for a write Authorization. |
AT_BLE_MTU_CHANGED_INDICATION |
peer sends an indication of the new MTU.
|
AT_BLE_MTU_CHANGED_CMD_COMPLETE |
MTU Exchange completed.
|
AT_BLE_CHARACTERISTIC_WRITE_CMD_CMP |
write command complete.
|
AT_BLE_READ_AUTHORIZE_REQUEST |
The peer asks for a read Authorization.
|
AT_BLE_LECB_CONN_REQ |
Connection request is received from server.
|
AT_BLE_LECB_CONNECTED |
Peer connected successfully.
|
AT_BLE_LECB_DISCONNECTED |
Peer disconnected.
|
AT_BLE_LECB_ADD_CREDIT_IND |
Indication when peer device added credit.
|
AT_BLE_LECB_SEND_RESP |
Response from local device to data send command.
|
AT_BLE_LECB_DATA_RECIEVED |
Data received from peer device.
|
AT_BLE_HTPT_CREATE_DB_CFM |
Inform APP of database creation status.
|
AT_BLE_HTPT_ERROR_IND |
Error indication to APP.
|
AT_BLE_HTPT_DISABLE_IND |
Automatically sent to the APP after a disconnection with the peer device to confirm disabled profile.
|
AT_BLE_HTPT_TEMP_SEND_CFM |
Temperature value confirm to APP.
|
AT_BLE_HTPT_MEAS_INTV_CHG_IND |
Inform APP of new measurement interval value.
|
AT_BLE_HTPT_CFG_INDNTF_IND |
Inform APP of new configuration value.
|
AT_BLE_HTPT_ENABLE_RSP |
HTPT profile enable confirmation.
|
AT_BLE_HTPT_MEAS_INTV_UPD_RSP |
Response to APP for measurement interval update request.
|
AT_BLE_HTPT_MEAS_INTV_CHG_REQ |
Inform APP of new measurement interval value requested by a peer device.
|
AT_BLE_LE_TEST_STATUS |
inform app about DTM command test status Refer to at_ble_dtm_t |
AT_BLE_LE_PACKET_REPORT |
inform app about the RX packets report Refer to at_ble_dtm_t |
AT_BLE_CUSTOM_EVENT |
A user-defined event is delivered to the system. |
AT_BLE_DEVICE_READY | |
AT_BLE_DEVICE_DEAD |
inform app that device is dead, the application should start again from at_ble_init |
AT_BLE_DEVICE_OUT_OF_SYNC |
inform app that device was out of sync, last messages (one or more) sent from host to BTLC1000 has been discarded |
AT_BLE_EVENT_MAX |
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 |
Security keys distribution list.
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. |
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.
Passkey Types.
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. |
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.
enum at_ble_status_t |
Enumeration for BLE Status.
enum at_ble_uuid_type_t |