Microchip® Advanced Software Framework

at_ble_api.h File Reference
#include "stdint.h"
#include "stdbool.h"
#include "at_ble_errno.h"

Data Structures

struct  at_ble_addr_t
 Blue-tooth Low Energy address Type. More...
 
struct  at_ble_adv_cmp_evt_t
 Advertising complete event. More...
 
struct  at_ble_adv_data_update_on_the_fly_t
 use this structure when calling the api at_ble_adv_data_update_on_the_fly to set the advertising data on the fly More...
 
struct  at_ble_adv_report_t
 Advertising report status. More...
 
struct  at_ble_att_cfg_t
 
struct  at_ble_att_info_req_t
 
struct  at_ble_bus_info_t
 
struct  at_ble_channel_map_t
 Channel Map Structure. More...
 
struct  at_ble_char_list
 Encapsulation for a characteristic and its length. More...
 
struct  at_ble_char_presentation_t
 Characteristic presentation format. More...
 
struct  at_ble_char_val_t
 
struct  at_ble_characteristic_changed_t
 
struct  at_ble_characteristic_configuration_changed_t
 
struct  at_ble_characteristic_found_t
 
struct  at_ble_characteristic_read_req_t
 
struct  at_ble_characteristic_read_response_t
 
struct  at_ble_characteristic_t
 Characteristic structure. More...
 
struct  at_ble_characteristic_write_request_t
 Structure received when write to a characteristic is required. More...
 
struct  at_ble_characteristic_write_response_t
 
struct  at_ble_chr_t
 
struct  at_ble_cmd_complete_event_t
 
struct  at_ble_conn_param_update_done_t
 
struct  at_ble_conn_param_update_request_t
 
struct  at_ble_connected_t
 AT_BLE_CONNECTED message format. More...
 
struct  at_ble_connection_params_t
 Connection parameters. More...
 
struct  at_ble_CSRK_t
 Connection Signature Resolution Key. More...
 
struct  at_ble_descriptor_found_t
 
struct  at_ble_dev_config_t
 Device configuration. More...
 
struct  at_ble_dev_info
 Peer device request to modify local device info such as name or appearance. More...
 
struct  at_ble_disconnected_t
 Handle and Status of disconnected peer. More...
 
struct  at_ble_dtm_t
 data type of DMT status and report, "number_of_packets" will be used only in case of receiving the event AT_BLE_LE_PACKET_REPORT after calling the API More...
 
struct  at_ble_encryption_request_t
 
struct  at_ble_encryption_status_changed_t
 
struct  at_ble_gap_dev_name_t
 device name More...
 
struct  at_ble_gap_deviceinfo_t
 Device info DB at_ble_set_gap_deviceinfo. More...
 
struct  at_ble_gap_irk_t
 Identity Resolving Key. More...
 
struct  at_ble_gap_whitelist_t
 White-list structure. More...
 
struct  at_ble_gapc_cmp_evt_t
 
union  at_ble_gapc_dev_info_val_t
 Retrieve information Structure. More...
 
struct  at_ble_gapc_get_info_cmd_t
 Retrieve information command Structure. More...
 
struct  at_ble_generic_att_desc_t
 
struct  at_ble_htpt_cfg_indntf_ind_t
 Parameters of the AT_BLE_HTPT_CFG_INDNTF_IND message. More...
 
struct  at_ble_htpt_create_db_cfm_t
 Parameters of the AT_BLE_HTPT_CREATE_DB_CFM message. More...
 
struct  at_ble_htpt_db_cfg
 Parameters of the Health thermometer service database. More...
 
struct  at_ble_htpt_disable_ind_t
 Parameters of the AT_BLE_HTPT_DISABLE_IND message. More...
 
struct  at_ble_htpt_enable_rsp_t
 Parameters of the AT_BLE_HTPT_ENABLE_RSP message. More...
 
struct  at_ble_htpt_meas_intv_chg_ind_t
 Parameters of the AT_BLE_HTPT_MEAS_INTV_CHG_IND message. More...
 
struct  at_ble_htpt_meas_intv_chg_req_t
 Parameters of the AT_BLE_HTPT_MEAS_INTV_CHG_REQ message. More...
 
struct  at_ble_htpt_meas_intv_upd_rsp_t
 Parameters of the AT_BLE_HTPT_MEAS_INTV_UPD_RSP message. More...
 
struct  at_ble_htpt_temp_send_cfm_t
 Parameters of the AT_BLE_HTPT_TEMP_SEND_CFM message. More...
 
struct  at_ble_inc_srv_t
 
struct  at_ble_included_service_found_t
 
struct  at_ble_included_service_t
 Service Definition. More...
 
struct  at_ble_indication_confirmed_t
 
struct  at_ble_indication_recieved_t
 
struct  at_ble_init_config_t
 
struct  at_ble_IRK_t
 IRKey. More...
 
struct  at_ble_lecb_add_credit_ind_t
 Parameters of the AT_BLE_LECB_ADD_CREDIT_IND message. More...
 
struct  at_ble_lecb_conn_req_t
 Parameters of the AT_BLE_LECB_CONN_REQ message. More...
 
struct  at_ble_lecb_connected_t
 Parameters of the AT_BLE_LECB_CONNECTED message. More...
 
struct  at_ble_lecb_data_recv_t
 Parameters of the AT_BLE_LECB_DATA_RECIEVED message. More...
 
struct  at_ble_lecb_disconnected_t
 Parameters of the AT_BLE_LECB_DISCONNECTED message. More...
 
struct  at_ble_lecb_send_rsp_t
 Parameters of the AT_BLE_LECB_SEND_RESP message. More...
 
struct  at_ble_LTK_t
 Long Term Key. More...
 
struct  at_ble_mempool_t
 
struct  at_ble_mtu_changed_ind_t
 MTU changed value. More...
 
struct  at_ble_notification_recieved_t
 
struct  at_ble_pair_done_t
 Pairing done message. More...
 
struct  at_ble_pair_features_t
 Pairing Features. More...
 
struct  at_ble_pair_key_request_t
 
struct  at_ble_pair_request_t
 
struct  at_ble_peer_att_info_ind_t
 peer attribute info structure GAPC_GET_DEV_INFO_REQ_IND More...
 
struct  at_ble_prf_date_time_t
 Time profile information. More...
 
struct  at_ble_prf_server_error_ind_t
 Message structure used to inform APP that an error has occurred in the profile server role task. More...
 
struct  at_ble_primary_service_found_t
 
struct  at_ble_read_authorize_request_t
 
struct  at_ble_resolv_rand_addr_status_t
 
struct  at_ble_rx_power_value_t
 
struct  at_ble_scan_info_t
 Scan Information. More...
 
struct  at_ble_scan_report_t
 Scan report status. More...
 
struct  at_ble_server_config_desc_t
 
struct  at_ble_service_t
 
struct  at_ble_sign_counter_t
 signature counter More...
 
struct  at_ble_signature_info_t
 Connection Signature information. More...
 
struct  at_ble_slave_sec_request_t
 
struct  at_ble_spcp_t
 Slave preferred connection parameters. More...
 
struct  at_ble_user_desc_t
 
struct  at_ble_uuid_t
 UUID type. More...
 
union  at_ble_dev_info::dev_info
 device information data More...
 
struct  at_ble_dev_info::dev_info::device_name
 Device name. More...
 
struct  platform_api_list_tag
 

Macros

#define ADV_DATA_PRESENT   (0x01)
 
#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_ATTR_NO_PERMISSIONS   0x00
 
#define AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR   0x01
 Read enable. More...
 
#define AT_BLE_ATTR_READABLE_NO_AUTHN_REQ_AUTHR   0x09
 Read operation require Authorization & no encryption. More...
 
#define AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR   0x03
 Read operation require MITM protected encrypted link & no authorization. More...
 
#define AT_BLE_ATTR_READABLE_REQ_AUTHN_REQ_AUTHR   0x0B
 Read operation require MITM protected encrypted link & authorization. More...
 
#define AT_BLE_ATTR_READABLE_REQ_ENC_NO_AUTHN_NO_AUTHR   0x02
 Read operation require encrypted link , MITM protection not necessary & No authorization. More...
 
#define AT_BLE_ATTR_READABLE_REQ_ENC_NO_AUTHN_REQ_AUTHR   0x0A
 Read operation require encrypted link, MITM protection not necessary & authorization. More...
 
#define AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR   0x10
 Write enable. More...
 
#define AT_BLE_ATTR_WRITABLE_NO_AUTHN_REQ_AUTHR   0x90
 Write operation require Authorization & no encryption. More...
 
#define AT_BLE_ATTR_WRITABLE_REQ_AUTHN_NO_AUTHR   0x30
 Write operation require MITM protected encrypted link & no authorization. More...
 
#define AT_BLE_ATTR_WRITABLE_REQ_AUTHN_REQ_AUTHR   0xB0
 Write operation require MITM protected encrypted link & authorization. More...
 
#define AT_BLE_ATTR_WRITABLE_REQ_ENC_NO_AUTHN_NO_AUTHR   0x20
 Write operation require encrypted link , MITM protection not necessary & No authorization. More...
 
#define AT_BLE_ATTR_WRITABLE_REQ_ENC_NO_AUTHN_REQ_AUTHR   0xA0
 Write operation require encrypted link, MITM protection not necessary & authorization. More...
 
#define AT_BLE_AUTO_ALLOC_HANDLE   (0x0000)
 Default value used to automatic allocate handle. More...
 
#define AT_BLE_CH_MAP_LEN   (0x05)
 Maximum number of channel mapping. More...
 
#define AT_BLE_CHAR_BROADCST   (1 << 0)
 
#define AT_BLE_CHAR_INDICATE   (1 << 5)
 
#define AT_BLE_CHAR_NOTIFY   (1 << 4)
 
#define AT_BLE_CHAR_READ   (1 << 1)
 
#define AT_BLE_CHAR_RELIABLE_WRITE   (1 << 7)
 
#define AT_BLE_CHAR_SIGNED_WRITE   (1 << 6)
 
#define AT_BLE_CHAR_WRITE   (1 << 3)
 
#define AT_BLE_CHAR_WRITE_WITHOUT_RESPONSE   (1 << 2)
 
#define AT_BLE_CHAR_WRITEABLE_AUX   (1 << 8)
 
#define AT_BLE_ENC_KEY_SIZE_PERM   0X40
 Encryption key Size must be 16 bytes. More...
 
#define AT_BLE_HCI_DTM_EVENT   (0xBB)
 Maximum number of connections at the same time Direct test mode defines. More...
 
#define AT_BLE_LECB_MAX_PKT_SIZE   (0x200)
 LE credit based max packet size. More...
 
#define AT_BLE_MAX_ATT_LEN   (512)
 ATT MAximum Attribute Length. More...
 
#define AT_BLE_MAX_CONCURRENT_CONNS   (8)
 
#define AT_BLE_MAX_KEY_LEN   (16)
 BLE security key maximum length. More...
 
#define AT_BLE_MAX_NAME_LEN   (0x20)
 BLE device name 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_SCN_RESP_MAX_SIZE   (31)
 Maximum size of scan response data in octets. More...
 
#define at_ble_set_adv_channel_Map   at_ble_adv_channel_map_set
 
#define AT_BLE_SLV_PREF_CON_INTV_MAX   0x0140
 Maximum Slave Preferred Connection Interval. More...
 
#define AT_BLE_SLV_PREF_CON_INTV_MIN   0x0140
 Minimum Slave Preferred Connection Interval. More...
 
#define AT_BLE_SLV_PREF_CON_LATENCY   0x0000
 Slave Preferred Connection Latency. More...
 
#define AT_BLE_SLV_PREF_SUPV_TO   0x01F4
 Slave Preferred Connection Supervision Timeout. 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)
 Connection interval max (N*1.250ms) More...
 
#define AT_CNX_INTERVAL_MIN   (6)
 Connection interval min (N*1.250ms) More...
 
#define AT_CNX_LATENCY_MAX   (499)
 Connection latency Max (N*cnx evt. More...
 
#define AT_CNX_LATENCY_MIN   (0)
 Connection latency min (N*cnx evt) More...
 
#define AT_CNX_SUP_TO_MAX   (3200)
 Supervision TO Max (N*10ms) More...
 
#define AT_CNX_SUP_TO_MIN   (10)
 Supervision TO min (N*10ms) More...
 
#define AT_MTU_VAL_MAX   (512)
 Maximal MTU value. More...
 
#define AT_MTU_VAL_MIN   (23)
 Minimal MTU value. More...
 
#define AT_MTU_VAL_RECOMMENDED   (512)
 Recommended MTU value. More...
 
#define AT_RENEW_DUR_VAL_MIN   (0x3A98)
 Minimal Renew duration value (150 seconds); resolution of 10 mSeconds (N*10ms) More...
 
#define SCN_RESP_DATA_PRESENT   (0x02)
 

Typedefs

typedef uint8_t at_ble_attr_permissions_t
 
typedef uint16_t at_ble_char_properties_t
 Characteristic properties. More...
 
typedef at_ble_cmd_complete_event_t at_ble_discovery_complete_t
 
typedef at_ble_status_t at_ble_gattc_discovery_complete_status_t
 Discovery status. More...
 
typedef uint16_t at_ble_handle_t
 BLE connection handle. More...
 
typedef struct
platform_api_list_tag 
at_ble_platform_api_list_t
 
typedef struct at_ble_addr_t at_ble_rand_addr_changed_t
 
typedef at_ble_err_status_t at_ble_status_t
 

Enumerations

enum  at_ble_addr_type_t {
  AT_BLE_ADDRESS_PUBLIC,
  AT_BLE_ADDRESS_RANDOM_STATIC,
  AT_BLE_ADDRESS_RANDOM_PRIVATE_RESOLVABLE,
  AT_BLE_ADDRESS_RANDOM_PRIVATE_NON_RESOLVABLE
}
 BLE can accept to kinds of addresses, either public or random addresses. More...
 
enum  at_ble_adv_channel_map_t {
  AT_BLE_ADV_CHNL_37_EN = 0x01,
  AT_BLE_ADV_CHNL_38_EN = 0x02,
  AT_BLE_ADV_CHNL_39_EN = 0x04,
  AT_BLE_ADV_CHNL_37_38_EN = AT_BLE_ADV_CHNL_37_EN | AT_BLE_ADV_CHNL_38_EN,
  AT_BLE_ADV_CHNL_37_39_EN = AT_BLE_ADV_CHNL_37_EN | AT_BLE_ADV_CHNL_39_EN,
  AT_BLE_ADV_CHNL_38_39_EN = AT_BLE_ADV_CHNL_38_EN | AT_BLE_ADV_CHNL_39_EN,
  AT_BLE_ADV_ALL_CHNLS_EN = 0x07,
  AT_BLE_ADV_CHNL_END
}
 Advertising channels enables. More...
 
enum  at_ble_adv_mode_t {
  AT_BLE_ADV_NON_DISCOVERABLE,
  AT_BLE_ADV_GEN_DISCOVERABLE,
  AT_BLE_ADV_LIM_DISCOVERABLE,
  AT_BLE_ADV_BROADCASTER_MODE
}
 Advertising Mode. More...
 
enum  at_ble_adv_type_t {
  AT_BLE_ADV_TYPE_UNDIRECTED = 0x00,
  AT_BLE_ADV_TYPE_DIRECTED,
  AT_BLE_ADV_TYPE_SCANNABLE_UNDIRECTED,
  AT_BLE_ADV_TYPE_NONCONN_UNDIRECTED,
  AT_BLE_ADV_TYPE_DIRECTED_LDC,
  AT_BLE_ADV_TYPE_SCAN_RESPONSE
}
 GAP Advertising types. More...
 
enum  at_ble_att_write_perm_t {
  AT_BLE_WRITE_DISABLE = 0,
  AT_BLE_WRITE_ENABLE,
  AT_BLE_WRITE_UNAUTH,
  AT_BLE_WRITE_AUTH
}
 
enum  at_ble_auth_levels_t {
  AT_BLE_NO_SEC = 0x00,
  AT_BLE_MODE1_L1_NOAUTH_PAIR_ENC,
  AT_BLE_MODE1_L2_AUTH_PAIR_ENC,
  AT_BLE_MODE2_L1_NOAUTH_DATA_SGN,
  AT_BLE_MODE2_L2_AUTH_DATA_SGN
}
 Security authentication level. More...
 
enum  at_ble_auth_t {
  AT_BLE_AUTH_NO_MITM_NO_BOND,
  AT_BLE_AUTH_NO_MITM_BOND = 0x01,
  AT_BLE_AUTH_MITM_NO_BOND = 0x04,
  AT_BLE_AUTH_MITM_BOND
}
 
enum  at_ble_author_t {
  GAP_AUTHZ_NOT_SET = 0x00,
  GAP_AUTHZ_ACCEPT = 0x01,
  GAP_AUTHZ_REJECT = 0x02
}
 Authorization setting. More...
 
enum  at_ble_bus_type_tag {
  AT_BLE_UART = 1,
  AT_BLE_SPI
}
 This enumeration used by platform_config to select platform_config::bus_type either AT_BLE_UART or AT_BLE_SPI. More...
 
enum  at_ble_char_pres_format_t {
  AT_BLE_PRES_FORMAT_BOOLEAN = 0X01,
  AT_BLE_PRES_FORMAT_2BIT = 0X02,
  AT_BLE_PRES_FORMAT_NIBBLE = 0X03,
  AT_BLE_PRES_FORMAT_UINT8 = 0X04,
  AT_BLE_PRES_FORMAT_UINT12 = 0X05,
  AT_BLE_PRES_FORMAT_UINT16 = 0X06,
  AT_BLE_PRES_FORMAT_UINT24 = 0X07,
  AT_BLE_PRES_FORMAT_UINT32 = 0X08,
  AT_BLE_PRES_FORMAT_UINT48 = 0X09,
  AT_BLE_PRES_FORMAT_UINT64 = 0X0A,
  AT_BLE_PRES_FORMAT_UINT128 = 0X0B,
  AT_BLE_PRES_FORMAT_SINT8 = 0X0C,
  AT_BLE_PRES_FORMAT_SINT12 = 0X0D,
  AT_BLE_PRES_FORMAT_SINT16 = 0X0E,
  AT_BLE_PRES_FORMAT_SINT24 = 0X0F,
  AT_BLE_PRES_FORMAT_SINT32 = 0X10,
  AT_BLE_PRES_FORMAT_SINT48 = 0X11,
  AT_BLE_PRES_FORMAT_SINT64 = 0X12,
  AT_BLE_PRES_FORMAT_SINT128 = 0X13,
  AT_BLE_PRES_FORMAT_FLOAT32 = 0X14,
  AT_BLE_PRES_FORMAT_FLOAT64 = 0X15,
  AT_BLE_PRES_FORMAT_SFLOAT = 0X16,
  AT_BLE_PRES_FORMAT_FLOAT = 0X17,
  AT_BLE_PRES_FORMAT_DUINT16 = 0X18,
  AT_BLE_PRES_FORMAT_UTF8S = 0X19,
  AT_BLE_PRES_FORMAT_UTF16S = 0X1A,
  AT_BLE_PRES_FORMAT_STRUCT = 0X1B
}
 
enum  at_ble_conn_mode_t {
  AT_BLE_CONNECTION_DIRECT = 1,
  AT_BLE_CONNECTION_AUTO
}
 Constant defining the connection modes of operations. More...
 
enum  at_ble_dev_role_t {
  AT_BLE_ROLE_NONE = 0x00,
  AT_BLE_ROLE_OBSERVER = 0x01,
  AT_BLE_ROLE_BROADCASTER = 0x02,
  AT_BLE_ROLE_CENTRAL = (0x04 | AT_BLE_ROLE_OBSERVER),
  AT_BLE_ROLE_PERIPHERAL = (0x08 | AT_BLE_ROLE_BROADCASTER),
  AT_BLE_ROLE_ALL = (AT_BLE_ROLE_CENTRAL | AT_BLE_ROLE_PERIPHERAL),
  AT_BLE_ROLE_END
}
 Constant defining the role. More...
 
enum  at_ble_disconnect_reason_t {
  AT_BLE_AUTH_FAILURE = 0x05,
  AT_BLE_TERMINATED_BY_USER = 0x13,
  AT_BLE_REMOTE_DEV_TERM_LOW_RESOURCES,
  AT_BLE_REMOTE_DEV_POWER_OFF,
  AT_BLE_UNSUPPORTED_REMOTE_FEATURE = 0x1A,
  AT_BLE_PAIRING_WITH_UNIT_KEY_NOT_SUP = 0x29,
  AT_BLE_UNACCEPTABLE_INTERVAL = 0x3B
}
 disconnection reasons More...
 
enum  at_ble_dtm_payload_type_t {
  PAYL_PSEUDO_RAND_9 = 0x00,
  PAYL_11110000,
  PAYL_10101010,
  PAYL_PSEUDO_RAND_15,
  PAYL_ALL_1,
  PAYL_ALL_0,
  PAYL_00001111,
  PAYL_01010101,
  PAYL_END
}
 Direct test mode Transmitter test Packet Payload Type (DTM) More...
 
enum  at_ble_eks {
  AT_BLE_NO_EKS = 0x00,
  AT_BLE_EKS = 0x02
}
 Check Encryption Key Size. More...
 
enum  at_ble_events_t {
  AT_BLE_UNDEFINED_EVENT,
  AT_BLE_SCAN_INFO,
  AT_BLE_SCAN_REPORT,
  AT_BLE_ADV_CMP_EVENT,
  AT_BLE_ADV_REPORT,
  AT_BLE_RAND_ADDR_CHANGED,
  AT_BLE_CONNECTED,
  AT_BLE_DISCONNECTED,
  AT_BLE_CONN_PARAM_UPDATE_DONE,
  AT_BLE_CONN_PARAM_UPDATE_REQUEST,
  AT_BLE_PAIR_DONE,
  AT_BLE_PAIR_REQUEST,
  AT_BLE_SLAVE_SEC_REQUEST,
  AT_BLE_PAIR_KEY_REQUEST,
  AT_BLE_ENCRYPTION_REQUEST,
  AT_BLE_ENCRYPTION_STATUS_CHANGED,
  AT_BLE_RESOLV_RAND_ADDR_STATUS,
  AT_BLE_SIGN_COUNTERS_IND,
  AT_BLE_PEER_ATT_INFO_IND,
  AT_BLE_CON_CHANNEL_MAP_IND,
  AT_BLE_PRIMARY_SERVICE_FOUND,
  AT_BLE_INCLUDED_SERVICE_FOUND,
  AT_BLE_CHARACTERISTIC_FOUND,
  AT_BLE_DESCRIPTOR_FOUND,
  AT_BLE_DISCOVERY_COMPLETE,
  AT_BLE_CHARACTERISTIC_READ_RESPONSE,
  AT_BLE_CHARACTERISTIC_READ_BY_UUID_RESPONSE = AT_BLE_CHARACTERISTIC_READ_RESPONSE,
  AT_BLE_CHARACTERISTIC_READ_MULTIBLE_RESPONSE,
  AT_BLE_CHARACTERISTIC_WRITE_RESPONSE,
  AT_BLE_NOTIFICATION_RECIEVED,
  AT_BLE_INDICATION_RECIEVED,
  AT_BLE_NOTIFICATION_CONFIRMED,
  AT_BLE_INDICATION_CONFIRMED,
  AT_BLE_CHARACTERISTIC_CHANGED,
  AT_BLE_CHARACTERISTIC_CONFIGURATION_CHANGED,
  AT_BLE_SERVICE_CHANGED_INDICATION_SENT,
  AT_BLE_WRITE_AUTHORIZE_REQUEST,
  AT_BLE_MTU_CHANGED_INDICATION,
  AT_BLE_MTU_CHANGED_CMD_COMPLETE,
  AT_BLE_CHARACTERISTIC_WRITE_CMD_CMP,
  AT_BLE_READ_AUTHORIZE_REQUEST,
  AT_BLE_LECB_CONN_REQ,
  AT_BLE_LECB_CONNECTED,
  AT_BLE_LECB_DISCONNECTED,
  AT_BLE_LECB_ADD_CREDIT_IND,
  AT_BLE_LECB_SEND_RESP,
  AT_BLE_LECB_DATA_RECIEVED,
  AT_BLE_HTPT_CREATE_DB_CFM,
  AT_BLE_HTPT_ERROR_IND,
  AT_BLE_HTPT_DISABLE_IND,
  AT_BLE_HTPT_TEMP_SEND_CFM,
  AT_BLE_HTPT_MEAS_INTV_CHG_IND,
  AT_BLE_HTPT_CFG_INDNTF_IND,
  AT_BLE_HTPT_ENABLE_RSP,
  AT_BLE_HTPT_MEAS_INTV_UPD_RSP,
  AT_BLE_HTPT_MEAS_INTV_CHG_REQ,
  AT_BLE_LE_TEST_STATUS,
  AT_BLE_LE_PACKET_REPORT,
  AT_BLE_CUSTOM_EVENT,
  AT_BLE_DEVICE_READY,
  AT_BLE_DEVICE_DEAD,
  AT_BLE_DEVICE_OUT_OF_SYNC,
  AT_BLE_EVENT_MAX
}
 Events delivered from BLE stack to the application layer. More...
 
enum  at_ble_filter_type_t {
  AT_BLE_ADV_FP_ANY,
  AT_BLE_ADV_FP_FILTER_SCANREQ,
  AT_BLE_ADV_FP_FILTER_CONNREQ,
  AT_BLE_ADV_FP_FILTER_BOTH
}
 Advertising Filter Policy. More...
 
enum  at_ble_get_dev_info_op_t {
  AT_BLE_DEVICE_VERSION,
  AT_BLE_DEVICE_ADDRESS
}
 
enum  at_ble_gpio_pin_t {
  AT_BLE_CHIP_ENABLE,
  AT_BLE_EXTERNAL_WAKEUP
}
 Initialization Configuration parameters. More...
 
enum  at_ble_gpio_status_t {
  AT_BLE_LOW,
  AT_BLE_HIGH
}
 
enum  at_ble_htpt_attr_index {
  HTPT_TEMP_MEAS_CHAR,
  HTPT_TEMP_TYPE_CHAR,
  HTPT_INTERM_TEMP_CHAR,
  HTPT_MEAS_INTV_CHAR,
  HTPT_CHAR_MAX
}
 Attribute Table Indexes. More...
 
enum  at_ble_htpt_conn_type {
  HTPT_CONFIG_CONN = 0,
  HTPT_NORMAL_CONN = 1
}
 Connection Type. More...
 
enum  at_ble_htpt_db_config_flag {
  HTPT_TEMP_TYPE_CHAR_SUP = 0x01,
  HTPT_INTERM_TEMP_CHAR_SUP = 0x02,
  HTPT_MEAS_INTV_CHAR_SUP = 0x04,
  HTPT_MEAS_INTV_IND_SUP = 0x08,
  HTPT_MEAS_INTV_WR_SUP = 0x10,
  HTPT_ALL_FEAT_SUP = 0x1F
}
 HTPT Database Configuration Flags. More...
 
enum  at_ble_htpt_ntf_ind_cfg {
  HTPT_CFG_STABLE_MEAS_IND = (1 << 0),
  HTPT_CFG_INTERM_MEAS_NTF = (1 << 1),
  HTPT_CFG_MEAS_INTV_IND = (1 << 2)
}
 Enable Notification/Indication for HTPT characteristics. More...
 
enum  at_ble_htpt_ntfind {
  HTPT_STOP_NTFIND = 0x0000,
  HTPT_START_NTF,
  HTPT_START_IND
}
 Enable/Disable Notification/Indication. More...
 
enum  at_ble_htpt_sec_level {
  HTPT_DISABLE = 0x00,
  HTPT_ENABLE = 0x04,
  HTPT_UNAUTH = 0x08,
  HTPT_AUTH = 0x0C
}
 Service Security Level. More...
 
enum  at_ble_htpt_temp_flags {
  HTPT_FLAG_CELSIUS = 0x00,
  HTPT_FLAG_FAHRENHEIT,
  HTPT_FLAG_TIME,
  HTPT_FLAG_TYPE = 0x04
}
 Temperature Measurement Flags field bit values. More...
 
enum  at_ble_htpt_temp_type {
  HTP_TYPE_ARMPIT = 0x01,
  HTP_TYPE_BODY = 0x02,
  HTP_TYPE_EAR = 0x03,
  HTP_TYPE_FINGER = 0x04,
  HTP_TYPE_GASTRO_INTESTINAL_TRACT = 0x05,
  HTP_TYPE_MOUTH = 0x06,
  HTP_TYPE_RECTUM = 0x07,
  HTP_TYPE_TOE = 0x08,
  HTP_TYPE_TYMPANUM = 0x09
}
 Temperature Type Description. More...
 
enum  at_ble_iocab_t {
  AT_BLE_IO_CAP_DISPLAY_ONLY,
  AT_BLE_IO_CAP_DISPLAY_YES_NO,
  AT_BLE_IO_CAP_KB_ONLY,
  AT_BLE_IO_CAP_NO_INPUT_NO_OUTPUT,
  AT_BLE_IO_CAP_KB_DISPLAY
}
 a device IO capabilities More...
 
enum  at_ble_key_dis_t {
  AT_BLE_KEY_DIST_NONE = 0x00,
  AT_BLE_KEY_DIST_ENC = (1 << 0),
  AT_BLE_KEY_DIST_ID = (1 << 1),
  AT_BLE_KEY_DIST_SIGN = (1 << 2),
  AT_BLE_KEY_DIS_ALL
}
 Security keys distribution list. More...
 
enum  at_ble_lecb_sec_level_t {
  AT_BLE_LECB_DISABLE = 0x00,
  AT_BLE_LECB_ENABLE = 0x01,
  AT_BLE_LECB_UNAUTH = 0x02,
  AT_BLE_LECB_AUTH = 0x03
}
 LE Credit based security levels. More...
 
enum  at_ble_lecb_status {
  AT_BLE_LECB_SUCCESS = 0x00,
  AT_BLE_LECB_FAIL_PSM_NOT_SUPPORTED = 0x02,
  AT_BLE_LECB_FAIL_NO_AVAIL_RESOURCES = 0x04,
  AT_BLE_LECB_FAIL_INSUFF_AUTHEN = 0x05,
  AT_BLE_LECB_FAIL_INSUFF_AUTHOR = 0x06,
  AT_BLE_LECB_FAIL_INSUFF_EKS = 0x07,
  AT_BLE_LECB_FAIL_INSUFF_ENC = 0x08
}
 LE Credit based connection status codes. More...
 
enum  at_ble_multi_inst {
  AT_BLE_SI = 0x00,
  AT_BLE_MI = 0x01
}
 Service Multi Instantiated. More...
 
enum  at_ble_operation {
  AT_BLE_NO_OP = 0x00,
  AT_BLE_MTU_EXCH,
  AT_BLE_DISC_ALL_SVC,
  AT_BLE_DISC_BY_UUID_SVC,
  AT_BLE_DISC_INCLUDED_SVC,
  AT_BLE_DISC_ALL_CHAR,
  AT_BLE_DISC_BY_UUID_CHAR,
  AT_BLE_DISC_DESC_CHAR,
  AT_BLE_READ,
  AT_BLE_READ_LONG,
  AT_BLE_READ_BY_UUID,
  AT_BLE_READ_MULTIPLE,
  AT_BLE_WRITE,
  AT_BLE_WRITE_NO_RESPONSE,
  AT_BLE_WRITE_SIGNED,
  AT_BLE_EXEC_WRITE,
  AT_BLE_REGISTER,
  AT_BLE_UNREGISTER,
  AT_BLE_NOTIFY,
  AT_BLE_INDICATE,
  AT_BLE_SVC_CHANGED,
  AT_BLE_LAST
}
 request operation type - application interface More...
 
enum  at_ble_pair_key_type_t {
  AT_BLE_PAIR_PASSKEY,
  AT_BLE_PAIR_OOB
}
 Pairing Key Type. More...
 
enum  at_ble_parameters_t {
  AT_BLE_GAP_GEN_DISC_ADV_MIN = 0,
  AT_BLE_GAP_LIM_ADV_TIMEOUT,
  AT_BLE_GAP_GEN_DISC_SCAN,
  AT_BLE_GAP_LIM_DISC_SCAN,
  AT_BLE_GAP_CONN_EST_ADV_TIMEOUT,
  AT_BLE_GAP_CONN_PARAM_TIMEOUT,
  AT_BLE_GAP_LIM_DISC_ADV_INT_MIN,
  AT_BLE_GAP_LIM_DISC_ADV_INT_MAX,
  AT_BLE_GAP_GEN_DISC_ADV_INT_MIN,
  AT_BLE_GAP_GEN_DISC_ADV_INT_MAX,
  AT_BLE_GAP_CONN_ADV_INT_MIN,
  AT_BLE_GAP_CONN_ADV_INT_MAX,
  AT_BLE_GAP_CONN_SCAN_INT,
  AT_BLE_GAP_CONN_SCAN_WIND,
  AT_BLE_GAP_CONN_HIGH_SCAN_INT,
  AT_BLE_GAP_CONN_HIGH_SCAN_WIND,
  AT_BLE_GAP_GEN_DISC_SCAN_INT,
  AT_BLE_GAP_GEN_DISC_SCAN_WIND,
  AT_BLE_GAP_LIM_DISC_SCAN_INT,
  AT_BLE_GAP_LIM_DISC_SCAN_WIND,
  AT_BLE_GAP_CONN_EST_ADV,
  AT_BLE_GAP_CONN_EST_INT_MIN,
  AT_BLE_GAP_CONN_EST_INT_MAX,
  AT_BLE_GAP_CONN_EST_SCAN_INT,
  AT_BLE_GAP_CONN_EST_SCAN_WIND,
  AT_BLE_GAP_CONN_EST_SUPERV_TIMEOUT,
  AT_BLE_GAP_CONN_EST_LATENCY,
  AT_BLE_GAP_CONN_EST_MIN_CE_LEN,
  AT_BLE_GAP_CONN_EST_MAX_CE_LEN,
  AT_BLE_GAP_PRIVATE_ADDR_INT,
  AT_BLE_GAP_CONN_PAUSE_CENTRAL,
  AT_BLE_GAP_CONN_PAUSE_PERIPHERAL
}
 Enumeration for GAP Parameters. More...
 
enum  at_ble_passkey_type_t {
  AT_BLE_PAIR_PASSKEY_ENTRY,
  AT_BLE_PAIR_PASSKEY_DISPLAY
}
 Passkey Type. More...
 
enum  at_ble_prf_con_type_t {
  PRF_CON_DISCOVERY = 0x00,
  PRF_CON_NORMAL = 0x01
}
 Connection type. More...
 
enum  at_ble_scan_mode_t {
  AT_BLE_SCAN_GEN_DISCOVERY,
  AT_BLE_SCAN_LIM_DISCOVERY,
  AT_BLE_SCAN_OBSERVER_MODE
}
 Scan modes used at at_ble_scan_start. More...
 
enum  at_ble_scan_type_t {
  AT_BLE_SCAN_PASSIVE,
  AT_BLE_SCAN_ACTIVE
}
 Scan types used at at_ble_scan_start. More...
 
enum  at_ble_service_type_t {
  SECONDARY_SERVICE,
  PRIMARY_SERVICE
}
 
enum  at_ble_tx_power_level_t {
  AT_BLE_TX_PWR_LVL_NEG_55_DB = 0x00,
  AT_BLE_TX_PWR_LVL_NEG_20_DB = 0x01,
  AT_BLE_TX_PWR_LVL_NEG_14_DB = 0x02,
  AT_BLE_TX_PWR_LVL_NEG_11_DB = 0x03,
  AT_BLE_TX_PWR_LVL_NEG_09_DB = 0x04,
  AT_BLE_TX_PWR_LVL_NEG_07_DB = 0x05,
  AT_BLE_TX_PWR_LVL_NEG_06_DB = 0x06,
  AT_BLE_TX_PWR_LVL_NEG_05_DB = 0x07,
  AT_BLE_TX_PWR_LVL_NEG_04_DB = 0x08,
  AT_BLE_TX_PWR_LVL_NEG_03_DB = 0x09,
  AT_BLE_TX_PWR_LVL_NEG_02_DB = 0x0B,
  AT_BLE_TX_PWR_LVL_NEG_01_DB = 0x0D,
  AT_BLE_TX_PWR_LVL_ZERO_DB = 0x11,
  AT_BLE_TX_PWR_LVL_POS_01_DB = 0x15,
  AT_BLE_TX_PWR_LVL_POS_02_DB = 0x20,
  AT_BLE_TX_PWR_LVL_POS_03_DB = 0x3B
}
 TX Power levels. More...
 
enum  at_ble_uart_baudrate_tag {
  AT_BLE_UART_BAUDRATE_9600 = 9600,
  AT_BLE_UART_BAUDRATE_19200 = 19200,
  AT_BLE_UART_BAUDRATE_38400 = 38400,
  AT_BLE_UART_BAUDRATE_57600 = 57600,
  AT_BLE_UART_BAUDRATE_115200 = 115200,
  AT_BLE_UART_BAUDRATE_230400 = 230400,
  AT_BLE_UART_BAUDRATE_460800 = 460800,
  AT_BLE_UART_BAUDRATE_921600 = 921600
}
 
enum  at_ble_uuid_type_t {
  AT_BLE_UUID_16 = 0,
  AT_BLE_UUID_32 = 1,
  AT_BLE_UUID_128 = 2,
  AT_BLE_UUID_INVALID = 3
}
 UUID Type. More...
 
enum  at_btlc1000_module_version_tag {
  AT_BTLC1000_MR = 0,
  AT_BTLC1000_ZR = 1,
  AT_BTLC1000_NONE = 2
}
 
enum  btlc1000_gpio_tag {
  NO_GPIO = 0,
  LP_GPIO_1 = 1,
  LP_GPIO_2 = 2,
  LP_GPIO_3 = 3,
  LP_GPIO_4 = 4,
  LP_GPIO_5 = 5,
  LP_GPIO_6 = 6,
  LP_GPIO_7 = 7,
  LP_GPIO_8 = 8,
  LP_GPIO_9 = 9,
  LP_GPIO_10 = 10,
  LP_GPIO_11 = 11,
  LP_GPIO_12 = 12,
  LP_GPIO_13 = 13,
  LP_GPIO_14 = 14,
  LP_GPIO_15 = 15,
  LP_GPIO_16 = 16,
  LP_GPIO_17 = 17,
  LP_GPIO_18 = 18,
  LP_GPIO_19 = 19,
  LP_GPIO_20 = 20,
  LP_GPIO_21 = 21,
  LP_GPIO_22 = 22,
  LP_GPIO_23 = 23,
  LP_GPIO_24 = 24,
  AO_GPIO_2 = 29,
  AO_GPIO_1 = 30,
  AO_GPIO_0 = 31,
  GPIO_MS4 = 44,
  GPIO_MS3 = 45,
  GPIO_MS2 = 46,
  GPIO_MS1 = 47,
  BTLC1000_EXT_PIN9 = GPIO_MS1
}
 
enum  dtm_op_codes {
  AT_BLE_RESET_CMD_OPCODE = 0x0C03,
  AT_BLE_RX_TEST_CMD_OPCODE = 0x201D,
  AT_BLE_TX_TEST_CMD_OPCODE = 0x201E,
  AT_BLE_TEST_END_CMD_OPCODE = 0x201F
}
 Direct test mode opcodes (DTM) More...
 
enum  gapc_get_info_operation {
  AT_BLE_GET_PEER_NAME = 2,
  AT_BLE_GET_PEER_APPEARANCE = 5,
  AT_BLE_GET_PEER_SLV_PREF_PARAMS = 6,
  AT_BLE_GET_CON_CHANNEL_MAP = 8
}
 GAPC Retrieve information command request type. More...
 

Functions

at_ble_status_t at_ble_addr_get (at_ble_addr_t *address)
 Get device BT Address. More...
 
at_ble_status_t at_ble_addr_set (at_ble_addr_t *address)
 Set device BT Address. More...
 
at_ble_status_t at_ble_adv_channel_map_get (at_ble_adv_channel_map_t *ch)
 get advertising channel. More...
 
at_ble_status_t at_ble_adv_channel_map_set (at_ble_adv_channel_map_t ch)
 Set advertising channel using one of at_ble_adv_channel_map_t. More...
 
at_ble_status_t at_ble_adv_data_set (uint8_t const *const adv_data, uint8_t adv_data_len, uint8_t const *const scan_resp_data, uint8_t scan_response_data_len)
 Set, clear or update advertisement and scan response data. More...
 
at_ble_status_t at_ble_adv_data_update_on_the_fly (at_ble_adv_data_update_on_the_fly_t *update_on_the_fly_data)
 Set, clear or update advertising data or scan response data or both on the fly (while an advertising operation is ongoing) . More...
 
at_ble_status_t at_ble_adv_start (at_ble_adv_type_t type, at_ble_adv_mode_t mode, at_ble_addr_t *peer_addr, at_ble_filter_type_t filtered, uint16_t interval, uint16_t timeout, bool disable_randomness)
 Start advertising (GAP Discoverable, Connectable modes, Broadcast Procedure). More...
 
at_ble_status_t at_ble_adv_stop (void)
 Stop advertising (GAP Discoverable, Connectable modes, Broadcast Procedure). More...
 
at_ble_status_t at_ble_authenticate (at_ble_handle_t conn_handle, at_ble_pair_features_t *features, at_ble_LTK_t *ltk, at_ble_CSRK_t *csrk)
 Starts Pairing procedure for a given connection. More...
 
at_ble_status_t at_ble_calib_config (int calib_enable, uint32_t no_samples, uint32_t cal_freq)
 Configures periodic Vbat/Vtemp calibration: enable/disable, number of ADC samples needed for averaging, frequency of the calibration in seconds. More...
 
at_ble_status_t at_ble_calib_get_temp (int *temperature)
 Retrieves temperature value in Celsius. More...
 
at_ble_status_t at_ble_calib_get_voltage (float *voltage)
 Retrieves voltage value in volts. More...
 
at_ble_status_t at_ble_characteristic_discover_all (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle)
 Discover all Characteristics declared in a connected device. More...
 
at_ble_status_t at_ble_characteristic_discover_by_uuid (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle, at_ble_uuid_t *uuid)
 Discover all Characteristics of a given UUID declared in a connected device. More...
 
at_ble_status_t at_ble_characteristic_read (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, uint16_t offset, uint16_t length)
 Read a characteristic given its handle. More...
 
at_ble_status_t at_ble_characteristic_read_by_uuid (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle, at_ble_uuid_t *uuid)
 Read a characteristic given its UUID. More...
 
at_ble_status_t at_ble_characteristic_read_long (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, uint16_t offset, uint16_t length)
 Long read a characteristic given its handle. More...
 
at_ble_status_t at_ble_characteristic_read_multiple (at_ble_handle_t conn_handle, at_ble_char_list *char_handle_list, uint8_t char_handle_count)
 Read a list of characteristics given their handles. More...
 
at_ble_status_t at_ble_characteristic_reliable_write_cancel (at_ble_handle_t conn_handle)
 Cancels a pending prepared reliable write operation. More...
 
at_ble_status_t at_ble_characteristic_reliable_write_execute (at_ble_handle_t conn_handle)
 Executes a pending prepared write operation. More...
 
at_ble_status_t at_ble_characteristic_reliable_write_prepare (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, uint16_t offset, uint16_t length, uint8_t *data)
 add a new prepared write request More...
 
at_ble_status_t at_ble_characteristic_value_get (at_ble_handle_t handle, uint8_t *value, uint16_t *len)
 Reads A characteristic value. More...
 
at_ble_status_t at_ble_characteristic_value_set (at_ble_handle_t handle, uint8_t *value, uint16_t len)
 Sets A characteristic value. More...
 
at_ble_status_t at_ble_characteristic_write (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, uint16_t offset, uint16_t length, uint8_t *data, bool signed_write, bool with_response)
 Write a characteristic value in peer device and write completion will be reported via AT_BLE_CHARACTERISTIC_WRITE_CMD_CMP event after firmware handling. More...
 
at_ble_status_t at_ble_chip_id_get (uint32_t *chip_id)
 Gets BTLC1000 Chip ID. More...
 
at_ble_status_t at_ble_conn_update_reply (at_ble_handle_t handle, bool accept, uint16_t ce_len_min, uint16_t ce_len_max)
 Reply to connection parameters update request AT_BLE_CONN_PARAM_UPDATE_REQUEST. More...
 
at_ble_status_t at_ble_connect (at_ble_addr_t peers[], uint8_t peer_count, uint16_t scan_interval, uint16_t scan_window, at_ble_connection_params_t *connection_params)
 Connect to a peer device. More...
 
at_ble_status_t at_ble_connect_cancel (void)
 Cancels an ongoing connection attempt. More...
 
at_ble_status_t at_ble_connection_param_update (at_ble_handle_t handle, at_ble_connection_params_t *connection_params)
 Update the connection parameters of an ongoing connection. More...
 
at_ble_status_t at_ble_descriptor_discover_all (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle)
 Discover all Descriptors declared in a connected device. More...
 
at_ble_status_t at_ble_descriptor_value_get (at_ble_handle_t handle, uint8_t *value, uint16_t *len)
 Reads A Descriptor value. More...
 
at_ble_status_t at_ble_descriptor_value_set (at_ble_handle_t handle, uint8_t *value, uint16_t len)
 Sets A characteristic value. More...
 
at_ble_status_t at_ble_device_name_set (uint8_t *dev_name, uint8_t len)
 Set device name. More...
 
at_ble_status_t at_ble_disconnect (at_ble_handle_t handle, at_ble_disconnect_reason_t reason)
 Disconnect a connected peer device and receive response through AT_BLE_DISCONNECTED event. More...
 
at_ble_status_t at_ble_dtm_reset (void)
 pack and send Direct test mode reset command, after calling this API you should wait for AT_BLE_LE_TEST_STATUS event More...
 
at_ble_status_t at_ble_dtm_rx_test_start (uint8_t frequency_index)
 pack and send Direct test mode RX test start command, after calling this API you should wait for AT_BLE_LE_TEST_STATUS event More...
 
at_ble_status_t at_ble_dtm_stop_test (void)
 pack and send Direct test mode stop test command, after calling this API you should wait for AT_BLE_LE_PACKET_REPORT event More...
 
at_ble_status_t at_ble_dtm_tx_test_start (uint8_t frequency_index, uint8_t data_length, at_ble_dtm_payload_type_t payload)
 Pack and send Direct test mode TX test start command, after calling this API you should wait for AT_BLE_LE_TEST_STATUS event. More...
 
at_ble_status_t at_ble_en_recv_adv_cmp_event (bool en_adv_notification)
 Enable/Disable receiving advertising complete event AT_BLE_ADV_CMP_EVENT with the end of advertising event. More...
 
at_ble_status_t at_ble_enable_sleep (bool en_sleep)
 Enable/disable deep sleep. More...
 
at_ble_status_t at_ble_encryption_request_reply (at_ble_handle_t conn_handle, at_ble_auth_t auth, bool key_found, at_ble_LTK_t *key)
 Responds to encryption start request from master device AT_BLE_ENCRYPTION_REQUEST, once encryption starts AT_BLE_ENCRYPTION_STATUS_CHANGED event is delivered. More...
 
at_ble_status_t at_ble_encryption_start (at_ble_handle_t conn_handle, at_ble_LTK_t *key, at_ble_auth_t auth)
 Starts encryption, once encryption starts AT_BLE_ENCRYPTION_STATUS_CHANGED event is delivered. More...
 
at_ble_status_t at_ble_event_get (at_ble_events_t *event, void *params, uint32_t timeout)
 extracts the next event form the event queue More...
 
at_ble_status_t at_ble_event_user_defined_post (void *params)
 Posts a user defined custom event into the event queue, allowing the user code to process other events in the same event handling loop. More...
 
at_ble_status_t at_ble_exchange_mtu (at_ble_handle_t conn_handle)
 send the MTU exchange command to peer device More...
 
at_ble_status_t at_ble_firmware_version_get (uint32_t *fw_version)
 Gets BTLC1000 Firmware version. More...
 
at_ble_status_t at_ble_gap_get_peer_deviceinfo (uint16_t conn_handle, at_ble_gapc_get_info_cmd_t *operation)
 Retrieve information about peer device or about the current active link expected events are AT_BLE_PEER_ATT_INFO_IND AT_BLE_CON_CHANNEL_MAP_IND. More...
 
at_ble_status_t at_ble_get_adv_cnt (uint32_t *adv_pdu_cnt)
 Get the count of Advertising frame. More...
 
at_ble_status_t at_ble_get_whitelist_size (uint8_t *size)
 Get total number of white list entries that can be stored in the Controller. More...
 
at_ble_status_t at_ble_htpt_create_db (at_ble_htpt_db_config_flag features, at_ble_htpt_temp_type temp_type, uint16_t valid_range_min, uint16_t valid_range_max, uint16_t meas_intv, at_ble_htpt_sec_level sec_lvl, at_ble_handle_t *start_handle)
 This API message shall be used to add an instance of the Health Thermometer service into the database. More...
 
at_ble_status_t at_ble_htpt_enable (at_ble_handle_t conn_handle, at_ble_htpt_ntf_ind_cfg ntf_ind_cfg)
 This API message can be used after the connection with a peer device has been established in order to restore known device bond data, in response a AT_BLE_HTPT_ENABLE_RSP event should be received. More...
 
at_ble_status_t at_ble_htpt_meas_intv_chg_cfm (at_ble_handle_t conn_handle, at_ble_status_t status)
 This message is used by application to confirm that measurement interval modification is accepted or not by the application.Write confirmation is sent back to peer devices that requests modification and if accepted, all other devices connected which have configured to receive measurement interval change indication will be informed about this modification. More...
 
at_ble_status_t at_ble_htpt_meas_intv_update (uint16_t meas_intv)
 This message is used by the application to order the HTPT profile to generate an indication (if enabled) of the Measurement Interval Char. More...
 
at_ble_status_t at_ble_htpt_temp_send (uint32_t temp, at_ble_prf_date_time_t *time_stamp, at_ble_htpt_temp_flags flags, at_ble_htpt_temp_type type, bool flag_stable_meas)
 This message is used by the application (which handles the temperature device driver and measurements) to send a temperature measurement through the Thermometer role. More...
 
at_ble_status_t at_ble_included_service_discover_all (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle)
 Discover all included services declared in a connected device. More...
 
at_ble_status_t at_ble_indication_send (at_ble_handle_t conn_handle, at_ble_handle_t attr_handle)
 Sends an Indication AT_BLE_INDICATION_CONFIRMED is received when indication has been correctly received by peer device. More...
 
at_ble_status_t at_ble_init (at_ble_init_config_t *args)
 Initialize bus interface, reset the link layer and the host , Initialize memory required for storing data base related data. More...
 
at_ble_status_t at_ble_lecb_add_credit (at_ble_handle_t conn_handle, uint16_t le_psm, uint16_t credit)
 Inform peer device that local device can receive more packets, this is a blocking API. More...
 
at_ble_status_t at_ble_lecb_cfm (at_ble_handle_t conn_handle, uint16_t le_psm, at_ble_lecb_status status)
 Server confirms if a credit based connection is completed successfully. More...
 
at_ble_status_t at_ble_lecb_connect (at_ble_handle_t conn_handle, uint16_t le_psm, uint16_t cid, uint16_t intial_credit)
 Initiate a credit based connection. More...
 
at_ble_status_t at_ble_lecb_create (at_ble_handle_t conn_handle, at_ble_lecb_sec_level_t sec_level, uint16_t le_psm, uint16_t cid, uint16_t initial_credit)
 Initialize a credit based channel to receive a credit based connection request, this API is blocking. More...
 
at_ble_status_t at_ble_lecb_destroy (at_ble_handle_t conn_handle, uint16_t le_psm)
 Close an initialized credit based channel, this API is blocking. More...
 
at_ble_status_t at_ble_lecb_disconnect (at_ble_handle_t conn_handle, uint16_t le_psm)
 Terminate a credit based connection. More...
 
at_ble_status_t at_ble_lecb_send (at_ble_handle_t conn_handle, uint16_t cid, uint16_t len, uint8_t *data)
 Send data. More...
 
at_ble_status_t at_ble_notification_send (at_ble_handle_t conn_handle, at_ble_handle_t attr_handle)
 Sends a Notification AT_BLE_NOTIFICATION_CONFIRMED is received as soon as notification PDU has been sent over the air. More...
 
at_ble_status_t at_ble_pair_key_reply (at_ble_handle_t conn_handle, at_ble_pair_key_type_t type, uint8_t *key)
 Provides a passkey or OOB data that was requested via AT_BLE_PAIR_KEY_REQUEST event, If key type is AT_BLE_PAIR_PASSKEY, then a 6-byte ASCII string (digit 0..9 only). More...
 
at_ble_status_t at_ble_primary_service_define (at_ble_uuid_t *uuid, at_ble_handle_t *service_handle, at_ble_included_service_t *included_service_list, uint16_t included_service_count, at_ble_characteristic_t *charactristic_list, uint16_t charactristic_count)
 Defines a new Primary service along with its included services and characteristics. More...
 
at_ble_status_t at_ble_primary_service_discover_all (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle)
 Discover all Primary services in a peer device. More...
 
at_ble_status_t at_ble_primary_service_discover_by_uuid (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle, at_ble_uuid_t *uuid)
 Discover Primary service of a given UUID declared and located in a peer device. More...
 
at_ble_status_t at_ble_random_address_resolve (uint8_t nb_key, at_ble_addr_t *rand_addr, uint8_t *irk_key)
 Handles request of resolving a resolvable random address ,AT_BLE_RESOLV_RAND_ADDR_STATUS event is used to inform which key has been used to perform resolution for the returned address. More...
 
at_ble_status_t at_ble_read_authorize_reply (at_ble_handle_t conn_handle, at_ble_handle_t attr_handle, bool grant_authorization)
 Replies to a read authorization request requested by by AT_BLE_READ_AUTHORIZE_REQUEST event. More...
 
at_ble_status_t at_ble_rf_version_get (uint32_t *rf_version)
 Gets BTLC1000 RF version. More...
 
at_ble_status_t at_ble_rst_adv_cnt (void)
 Reset the count of Advertising frame. More...
 
at_ble_status_t at_ble_rx_power_get (at_ble_handle_t conn_handle, int8_t *rx_power)
 Gets RX power of a given connection. More...
 
at_ble_status_t at_ble_scan_start (uint16_t interval, uint16_t window, uint16_t timeout, at_ble_scan_type_t type, at_ble_scan_mode_t mode, bool filter_whitelist, bool filter_dublicates)
 Start scan operation. More...
 
at_ble_status_t at_ble_scan_stop (void)
 Stops an ongoing scan operation. More...
 
at_ble_status_t at_ble_secondary_service_define (at_ble_uuid_t *uuid, at_ble_handle_t *service_handle, at_ble_included_service_t *included_service_list, uint16_t included_service_count, at_ble_characteristic_t *charactristic_list, uint16_t charactristic_count)
 Defines a new Secondary service along with its included services and characteristics. More...
 
at_ble_status_t at_ble_send_sec_config (at_ble_signature_info_t *signature_info, at_ble_auth_t authen, bool service_changed)
 Set specific link security configuration and bonding data. More...
 
at_ble_status_t at_ble_send_service_changed_indication (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle)
 Sends a Service changed Indication. More...
 
at_ble_status_t at_ble_send_slave_sec_request (at_ble_handle_t conn_handle, bool mitm_protection, bool bond)
 Send slave security request to master. More...
 
at_ble_status_t at_ble_service_define (at_ble_service_t *svc)
 Defines a new service along with its included services and characteristics. More...
 
at_ble_status_t at_ble_set_att_config (at_ble_att_cfg_t *dev_att_cfg)
 Set attribute permissions configuration (Device Appearance permissions, slave preferred connection parameters, Device Name permissions, Service Change feature) More...
 
at_ble_status_t at_ble_set_channel_map (at_ble_channel_map_t *map)
 Set channel map. More...
 
at_ble_status_t at_ble_set_conn_mode (at_ble_conn_mode_t mode)
 Set connection mode parameter. More...
 
at_ble_status_t at_ble_set_dev_config (at_ble_dev_config_t *config)
 Set device configuration. More...
 
at_ble_status_t at_ble_set_gap_deviceinfo (at_ble_gap_deviceinfo_t *gap_deviceinfo)
 Set GAP attribute data base (Appearance , slave preferred connection parameters , device name write permissions) More...
 
at_ble_status_t at_ble_set_privacy_key (at_ble_gap_irk_t *irk, uint16_t interval)
 Set device Identity Resolving Key. More...
 
at_ble_status_t at_ble_set_ulp_delay (at_ble_ulp_delay_t arg)
 
at_ble_status_t at_ble_tx_power_get (at_ble_tx_power_level_t *power)
 Gets TX power value. More...
 
at_ble_status_t at_ble_tx_power_set (at_ble_tx_power_level_t power)
 Sets TX power value. More...
 
at_ble_uuid_type_t at_ble_uuid_len2type (uint8_t len)
 
uint8_t at_ble_uuid_type2len (at_ble_uuid_type_t type)
 
at_ble_status_t at_ble_whitelist_add (at_ble_addr_t *address)
 Adds a peer device address to the white-list. More...
 
at_ble_status_t at_ble_whitelist_clear (void)
 Clear the white-list. More...
 
at_ble_status_t at_ble_whitelist_remove (at_ble_addr_t *address)
 Removes a peer device address from the white-list. More...
 
at_ble_status_t at_ble_write_authorize_reply (at_ble_characteristic_write_request_t *param, at_ble_status_t status)
 Replies to a write authorization request requested by by AT_BLE_WRITE_AUTHORIZE_REQUEST event. More...
 
at_ble_status_t read_32_from_BTLC1000 (uint32_t address, uint32_t *value)
 Raeds 32 bit from BTLC1000. More...
 

#define ADV_DATA_PRESENT   (0x01)

Referenced by eddystone_adv_start().

#define AT_BLE_ADDR_LEN   (6)

BLE address length.

#define AT_BLE_ADV_INTERVAL_MAX   0x4000

Maximum Advertising interval in 625 us units, i.e.

10.24 s.

#define AT_BLE_ADV_INTERVAL_MIN   0x0020

Minimum Advertising interval in 625 us units, i.e.

20 ms.

#define AT_BLE_ADV_MAX_SIZE   (31)

Maximum size of advertising data in octets.

Referenced by ble_advertisement_data_set().

#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().

#define AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR   0x01
#define AT_BLE_ATTR_READABLE_NO_AUTHN_REQ_AUTHR   0x09

Read operation require Authorization & no encryption.

#define AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR   0x03
#define AT_BLE_ATTR_READABLE_REQ_AUTHN_REQ_AUTHR   0x0B

Read operation require MITM protected encrypted link & authorization.

#define AT_BLE_ATTR_READABLE_REQ_ENC_NO_AUTHN_NO_AUTHR   0x02

Read operation require encrypted link , MITM protection not necessary & No authorization.

#define AT_BLE_ATTR_READABLE_REQ_ENC_NO_AUTHN_REQ_AUTHR   0x0A

Read operation require encrypted link, MITM protection not necessary & authorization.

#define AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR   0x10
#define AT_BLE_ATTR_WRITABLE_NO_AUTHN_REQ_AUTHR   0x90

Write operation require Authorization & no encryption.

Referenced by esurl_conf_service_init().

#define AT_BLE_ATTR_WRITABLE_REQ_AUTHN_NO_AUTHR   0x30

Write operation require MITM protected encrypted link & no authorization.

Referenced by bat_init_service(), blp_init_service(), csc_serv_init(), hid_serv_init(), hr_init_service(), init_immediate_alert_service(), init_linkloss_service(), and sps_init_service().

#define AT_BLE_ATTR_WRITABLE_REQ_AUTHN_REQ_AUTHR   0xB0

Write operation require MITM protected encrypted link & authorization.

Referenced by esurl_conf_service_init(), and hr_init_service().

#define AT_BLE_ATTR_WRITABLE_REQ_ENC_NO_AUTHN_NO_AUTHR   0x20

Write operation require encrypted link , MITM protection not necessary & No authorization.

#define AT_BLE_ATTR_WRITABLE_REQ_ENC_NO_AUTHN_REQ_AUTHR   0xA0

Write operation require encrypted link, MITM protection not necessary & authorization.

#define AT_BLE_AUTO_ALLOC_HANDLE   (0x0000)

Default value used to automatic allocate handle.

Referenced by ble_device_config(), and ble_set_dev_config().

#define AT_BLE_CH_MAP_LEN   (0x05)

Maximum number of channel mapping.

#define AT_BLE_CHAR_BROADCST   (1 << 0)
#define AT_BLE_CHAR_INDICATE   (1 << 5)

Referenced by blp_init_service().

#define AT_BLE_CHAR_NOTIFY   (1 << 4)
#define AT_BLE_CHAR_RELIABLE_WRITE   (1 << 7)
#define AT_BLE_CHAR_SIGNED_WRITE   (1 << 6)
#define AT_BLE_CHAR_WRITE   (1 << 3)
#define AT_BLE_CHAR_WRITE_WITHOUT_RESPONSE   (1 << 2)
#define AT_BLE_CHAR_WRITEABLE_AUX   (1 << 8)
#define AT_BLE_ENC_KEY_SIZE_PERM   0X40

Encryption key Size must be 16 bytes.

#define AT_BLE_HCI_DTM_EVENT   (0xBB)

Maximum number of connections at the same time Direct test mode defines.

#define AT_BLE_LECB_MAX_PKT_SIZE   (0x200)

LE credit based max packet size.

#define AT_BLE_MAX_ATT_LEN   (512)

ATT MAximum Attribute Length.

#define AT_BLE_MAX_CONCURRENT_CONNS   (8)
#define AT_BLE_MAX_KEY_LEN   (16)

BLE security key maximum length.

Referenced by ble_connected_state_handler(), and ble_resolv_rand_addr_handler().

#define AT_BLE_MAX_NAME_LEN   (0x20)

BLE device name maximum length.

#define AT_BLE_PASSKEY_LEN   (6)

GAP Security Key Length.

Referenced by ble_pair_key_request_handler().

#define AT_BLE_SCAN_INTERVAL_MAX   0x4000

Maximum scanning interval in 625 us units , i.e.

10.24 s.

#define AT_BLE_SCAN_INTERVAL_MIN   0x0004

Minimum scanning interval in 625 us units , i.e.

2.5 ms.

#define AT_BLE_SCAN_WINDOW_MAX   0x4000

Maximum scanning window in 625 us units , i.e.

10.24 s.

#define AT_BLE_SCAN_WINDOW_MIN   0x0004

Minimum scanning window in 625 us units , i.e.

2.5 ms.

#define AT_BLE_SCN_RESP_MAX_SIZE   (31)

Maximum size of scan response data in octets.

#define at_ble_set_adv_channel_Map   at_ble_adv_channel_map_set
#define AT_BLE_SLV_PREF_CON_INTV_MAX   0x0140

Maximum Slave Preferred Connection Interval.

#define AT_BLE_SLV_PREF_CON_INTV_MIN   0x0140

Minimum Slave Preferred Connection Interval.

#define AT_BLE_SLV_PREF_CON_LATENCY   0x0000

Slave Preferred Connection Latency.

#define AT_BLE_SLV_PREF_SUPV_TO   0x01F4

Slave Preferred Connection Supervision Timeout.

#define AT_BLE_UUID_128_LEN   (16)
#define AT_BLE_UUID_16_LEN   (2)

UUID 16 size in bytes.

Referenced by ble_observer_scan_info_handler(), and scan_info_parse().

#define AT_BLE_UUID_32_LEN   (4)

UUID 32 size in bytes.

Referenced by ble_observer_scan_info_handler(), and scan_info_parse().

#define AT_CNX_INTERVAL_MAX   (3200)

Connection interval max (N*1.250ms)

#define AT_CNX_INTERVAL_MIN   (6)

Connection interval min (N*1.250ms)

#define AT_CNX_LATENCY_MAX   (499)

Connection latency Max (N*cnx evt.

#define AT_CNX_LATENCY_MIN   (0)

Connection latency min (N*cnx evt)

#define AT_CNX_SUP_TO_MAX   (3200)

Supervision TO Max (N*10ms)

#define AT_CNX_SUP_TO_MIN   (10)

Supervision TO min (N*10ms)

#define AT_MTU_VAL_MAX   (512)

Maximal MTU value.

#define AT_MTU_VAL_MIN   (23)

Minimal MTU value.

#define AT_MTU_VAL_RECOMMENDED   (512)

Recommended MTU value.

Referenced by ble_device_config(), and ble_set_dev_config().

#define AT_RENEW_DUR_VAL_MIN   (0x3A98)

Minimal Renew duration value (150 seconds); resolution of 10 mSeconds (N*10ms)

Referenced by ble_device_config(), and ble_set_dev_config().

#define SCN_RESP_DATA_PRESENT   (0x02)

typedef uint8_t at_ble_attr_permissions_t
typedef uint16_t at_ble_char_properties_t

Characteristic properties.

typedef uint16_t at_ble_handle_t

BLE connection handle.

BLE can accept to kinds of addresses, either public or random addresses.

Enumerator
AT_BLE_ADDRESS_PUBLIC 

a public static address

AT_BLE_ADDRESS_RANDOM_STATIC 

a random static address

AT_BLE_ADDRESS_RANDOM_PRIVATE_RESOLVABLE 

resolvable private random address

AT_BLE_ADDRESS_RANDOM_PRIVATE_NON_RESOLVABLE 

non-resolvable private random address

Advertising channels enables.

Enumerator
AT_BLE_ADV_CHNL_37_EN 

Byte value for advertising channel map for channel 37 enable.

AT_BLE_ADV_CHNL_38_EN 

Byte value for advertising channel map for channel 38 enable.

AT_BLE_ADV_CHNL_39_EN 

Byte value for advertising channel map for channel 39 enable.

AT_BLE_ADV_CHNL_37_38_EN 

Byte value for advertising channel map for channels 37 and 38 enable.

AT_BLE_ADV_CHNL_37_39_EN 

Byte value for advertising channel map for channels 37 and 39 enable.

AT_BLE_ADV_CHNL_38_39_EN 

Byte value for advertising channel map for channels 38 and 39 enable.

AT_BLE_ADV_ALL_CHNLS_EN 

Byte value for advertising channel map for channel 37, 38 and 39 enable.

AT_BLE_ADV_CHNL_END 

Enumeration end value for advertising channels enable value check.

Advertising Mode.

Enumerator
AT_BLE_ADV_NON_DISCOVERABLE 

Mode in non-discoverable.

AT_BLE_ADV_GEN_DISCOVERABLE 

Mode in general discoverable, AD type general flag in Flags set to 1.

AT_BLE_ADV_LIM_DISCOVERABLE 

Mode in limited discoverable, AD type limited flag in Flags set to 1 (This mode is automatically stopped after 180 sec of activity)

AT_BLE_ADV_BROADCASTER_MODE 

Broadcaster mode which is a non discoverable and non connectable mode.

GAP Advertising types.

Enumerator
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

Enumerator
AT_BLE_WRITE_DISABLE 

Disable write access.

AT_BLE_WRITE_ENABLE 

Enable write access.

AT_BLE_WRITE_UNAUTH 

Write access require unauthenticated link.

AT_BLE_WRITE_AUTH 

Write access require authenticated link.

Security authentication level.

Enumerator
AT_BLE_NO_SEC 

no security

AT_BLE_MODE1_L1_NOAUTH_PAIR_ENC 

Gap Mode 1 Level 1, Unauthenticated pairing with encryption, Man in the middle protection not checked, a LTK shall be exchanged.

AT_BLE_MODE1_L2_AUTH_PAIR_ENC 

Gap Mode 1 Level 2, Authenticated pairing with encryption, Man in the middle protection shall be set to 1, a LTK shall be exchanged.

AT_BLE_MODE2_L1_NOAUTH_DATA_SGN 

Gap Mode 2 Level 1, Unauthenticated pairing with data signing, Man in the middle protection not checked , a CSRK shall be exchanged.

AT_BLE_MODE2_L2_AUTH_DATA_SGN 

Gap Mode 2 Level 2, Authentication pairing with data signing, Man in the middle protection shall be set to 1, a CSRK shall be exchanged.

Enumerator
AT_BLE_AUTH_NO_MITM_NO_BOND 

No Man In The Middle protection(MITM) , No Bonding.

AT_BLE_AUTH_NO_MITM_BOND 

No MITM , Bonding.

AT_BLE_AUTH_MITM_NO_BOND 

MITM , No Bonding.

AT_BLE_AUTH_MITM_BOND 

MITM and Bonding.

Authorization setting.

Enumerator
GAP_AUTHZ_NOT_SET 

Authorization not set, application informed when authorization requested.

GAP_AUTHZ_ACCEPT 

Authorization request automatically accepted.

GAP_AUTHZ_REJECT 

Authorization request automatically rejected.

This enumeration used by platform_config to select platform_config::bus_type either AT_BLE_UART or AT_BLE_SPI.

Enumerator
AT_BLE_UART 

UART Interface is used [Default].

AT_BLE_SPI 

SPI interface is used.

Enumerator
AT_BLE_PRES_FORMAT_BOOLEAN 
AT_BLE_PRES_FORMAT_2BIT 
AT_BLE_PRES_FORMAT_NIBBLE 
AT_BLE_PRES_FORMAT_UINT8 
AT_BLE_PRES_FORMAT_UINT12 
AT_BLE_PRES_FORMAT_UINT16 
AT_BLE_PRES_FORMAT_UINT24 
AT_BLE_PRES_FORMAT_UINT32 
AT_BLE_PRES_FORMAT_UINT48 
AT_BLE_PRES_FORMAT_UINT64 
AT_BLE_PRES_FORMAT_UINT128 
AT_BLE_PRES_FORMAT_SINT8 
AT_BLE_PRES_FORMAT_SINT12 
AT_BLE_PRES_FORMAT_SINT16 
AT_BLE_PRES_FORMAT_SINT24 
AT_BLE_PRES_FORMAT_SINT32 
AT_BLE_PRES_FORMAT_SINT48 
AT_BLE_PRES_FORMAT_SINT64 
AT_BLE_PRES_FORMAT_SINT128 
AT_BLE_PRES_FORMAT_FLOAT32 
AT_BLE_PRES_FORMAT_FLOAT64 
AT_BLE_PRES_FORMAT_SFLOAT 
AT_BLE_PRES_FORMAT_FLOAT 
AT_BLE_PRES_FORMAT_DUINT16 
AT_BLE_PRES_FORMAT_UTF8S 
AT_BLE_PRES_FORMAT_UTF16S 
AT_BLE_PRES_FORMAT_STRUCT 

Constant defining the connection modes of operations.

Enumerator
AT_BLE_CONNECTION_DIRECT 

Direct connection operation.

AT_BLE_CONNECTION_AUTO 

Automatic connection operation.

Constant defining the role.

Enumerator
AT_BLE_ROLE_NONE 

No role set yet.

AT_BLE_ROLE_OBSERVER 

Observer role.

AT_BLE_ROLE_BROADCASTER 

Broadcaster role.

AT_BLE_ROLE_CENTRAL 

Master/Central role.

AT_BLE_ROLE_PERIPHERAL 

Peripheral/Slave role.

AT_BLE_ROLE_ALL 

Device has all role, both peripheral and central.

AT_BLE_ROLE_END 

Enumeration end value for role value check.

disconnection reasons

Enumerator
AT_BLE_AUTH_FAILURE 

indicates that pairing or authentication failed due to incorrect results in the pairing or authentication procedure.

This could be due to an incorrect PIN or link key.

AT_BLE_TERMINATED_BY_USER 

indicates that the user on the remote device terminated the connection.

AT_BLE_REMOTE_DEV_TERM_LOW_RESOURCES 

indicates that the remote device terminated the connection because of low resources.

AT_BLE_REMOTE_DEV_POWER_OFF 

indicates that the remote device terminated the connection because the device is about to power off.

AT_BLE_UNSUPPORTED_REMOTE_FEATURE 

indicates that the remote device does not support the feature associated with the issue command.

AT_BLE_PAIRING_WITH_UNIT_KEY_NOT_SUP 

indicates that it was not possible to pair as a unit key was requested and it is not supported.

AT_BLE_UNACCEPTABLE_INTERVAL 

indicates that the remote device terminated the connection because of an unacceptable connection interval.

enum at_ble_eks

Check Encryption Key Size.

Enumerator
AT_BLE_NO_EKS 

Key must not be 16 bit.

AT_BLE_EKS 

Key must be 16 bit.

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.


Refer to at_ble_scan_info_t

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.


Refer to at_ble_scan_report_t

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.


Refer to at_ble_rand_addr_changed_t

AT_BLE_CONNECTED 

connected to a peer device.


Refer to at_ble_connected_t

AT_BLE_DISCONNECTED 

peer device connection terminated.


Refer to at_ble_disconnected_t , for reason of disconnection (see Bluetooth error code in Bluetooth core spec) vol 2, Core System Package [BR/EDR Controller volume], Part D

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.
Refer to at_ble_conn_param_update_done_t

AT_BLE_CONN_PARAM_UPDATE_REQUEST 

peer device asks for connection parameters update.


Refer to at_ble_conn_param_update_request_t

AT_BLE_PAIR_DONE 

Pairing procedure is completed.


Refer to at_ble_pair_done_t

AT_BLE_PAIR_REQUEST 

A central device asks for Pairing.


Refer to at_ble_pair_request_t

AT_BLE_SLAVE_SEC_REQUEST 

Slave security request.


Refer to at_ble_slave_sec_request_t

AT_BLE_PAIR_KEY_REQUEST 

A passkey or OOB data is requested as part of pairing procedure.


Refer to at_ble_pair_key_request_t

AT_BLE_ENCRYPTION_REQUEST 

Encryption is requested by a master device.


Refer to at_ble_encryption_request_t

AT_BLE_ENCRYPTION_STATUS_CHANGED 

Encryption status changed.


Refer to at_ble_encryption_status_changed_t

AT_BLE_RESOLV_RAND_ADDR_STATUS 

Resolve random address status.


Refer to at_ble_resolv_rand_addr_status_t

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.


Refer to at_ble_primary_service_found_t

AT_BLE_INCLUDED_SERVICE_FOUND 

An included service is found .


Refer to at_ble_included_service_found_t

AT_BLE_CHARACTERISTIC_FOUND 

A Characteristic is found.


Refer to at_ble_characteristic_found_t

AT_BLE_DESCRIPTOR_FOUND 

A descriptor is found.


Refer to at_ble_descriptor_found_t

AT_BLE_DISCOVERY_COMPLETE 

A discover operation has completed.


Refer to at_ble_discovery_complete_t

AT_BLE_CHARACTERISTIC_READ_RESPONSE 

Characteristic read procedure is done.


Refer to at_ble_characteristic_read_response_t

AT_BLE_CHARACTERISTIC_READ_BY_UUID_RESPONSE 

Characteristic read by UUID procedure is done.


Legacy event use AT_BLE_CHARACTERISTIC_READ_RESPONSE Refer to at_ble_characteristic_read_response_t

AT_BLE_CHARACTERISTIC_READ_MULTIBLE_RESPONSE 

Characteristic multiple read procedure is done.


Legacy event use AT_BLE_CHARACTERISTIC_READ_RESPONSE Refer to at_ble_characteristic_read_response_t

AT_BLE_CHARACTERISTIC_WRITE_RESPONSE 

Characteristic write procedure is done.


Refer to at_ble_characteristic_write_response_t

AT_BLE_NOTIFICATION_RECIEVED 

A Notification is received.


Refer to at_ble_notification_recieved_t

AT_BLE_INDICATION_RECIEVED 

An Indication is received.


Refer to at_ble_indication_recieved_t

AT_BLE_NOTIFICATION_CONFIRMED 

The firmware confirmed that an Notification PDU has been sent over the air.


Refer to at_ble_cmd_complete_event_t

AT_BLE_INDICATION_CONFIRMED 

The peer confirmed that it has received an Indication.


Refer to at_ble_cmd_complete_event_t

AT_BLE_CHARACTERISTIC_CHANGED 

The peer has changed a characteristic value.


Refer to at_ble_characteristic_changed_t

AT_BLE_CHARACTERISTIC_CONFIGURATION_CHANGED 

The peer has changed a characteristic configuration descriptor value.


Refer to at_ble_characteristic_configuration_changed_t

AT_BLE_SERVICE_CHANGED_INDICATION_SENT 

the service changed indication had been sent .


Refer to at_ble_cmd_complete_event_t

AT_BLE_WRITE_AUTHORIZE_REQUEST 

The peer asks for a write Authorization.


Refer to at_ble_characteristic_write_request_t

AT_BLE_MTU_CHANGED_INDICATION 

peer sends an indication of the new MTU.


Refer to at_ble_mtu_changed_ind_t

AT_BLE_MTU_CHANGED_CMD_COMPLETE 

MTU Exchange completed.


Refer to at_ble_cmd_complete_event_t

AT_BLE_CHARACTERISTIC_WRITE_CMD_CMP 

write command complete.


Refer to at_ble_cmd_complete_event_t

AT_BLE_READ_AUTHORIZE_REQUEST 

The peer asks for a read Authorization.


Refer to at_ble_characteristic_read_req_t

AT_BLE_LECB_CONN_REQ 

Connection request is received from server.


Refer to at_ble_lecb_conn_req_t

AT_BLE_LECB_CONNECTED 

Peer connected successfully.


Refer to at_ble_lecb_connected_t

AT_BLE_LECB_DISCONNECTED 

Peer disconnected.


Refer to at_ble_lecb_disconnected_t

AT_BLE_LECB_ADD_CREDIT_IND 

Indication when peer device added credit.


Refer to at_ble_lecb_add_credit_ind_t

AT_BLE_LECB_SEND_RESP 

Response from local device to data send command.


Refer to at_ble_lecb_send_rsp_t

AT_BLE_LECB_DATA_RECIEVED 

Data received from peer device.


Refer to at_ble_lecb_data_recv_t

AT_BLE_HTPT_CREATE_DB_CFM 

Inform APP of database creation status.


Refer to at_ble_htpt_create_db_cfm_t

AT_BLE_HTPT_ERROR_IND 

Error indication to APP.


Refer to at_ble_prf_server_error_ind_t

AT_BLE_HTPT_DISABLE_IND 

Automatically sent to the APP after a disconnection with the peer device to confirm disabled profile.


Refer to at_ble_htpt_disable_ind_t

AT_BLE_HTPT_TEMP_SEND_CFM 

Temperature value confirm to APP.


Refer to at_ble_htpt_temp_send_cfm_t

AT_BLE_HTPT_MEAS_INTV_CHG_IND 

Inform APP of new measurement interval value.


Refer to at_ble_htpt_meas_intv_chg_ind_t

AT_BLE_HTPT_CFG_INDNTF_IND 

Inform APP of new configuration value.


Refer to at_ble_htpt_cfg_indntf_ind_t

AT_BLE_HTPT_ENABLE_RSP 

HTPT profile enable confirmation.


Refer to at_ble_htpt_enable_rsp_t

AT_BLE_HTPT_MEAS_INTV_UPD_RSP 

Response to APP for measurement interval update request.


Refer to at_ble_htpt_meas_intv_upd_rsp_t

AT_BLE_HTPT_MEAS_INTV_CHG_REQ 

Inform APP of new measurement interval value requested by a peer device.


Refer to at_ble_htpt_meas_intv_chg_req_t

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 

Advertising Filter Policy.

Enumerator
AT_BLE_ADV_FP_ANY 

Allow both scan and connection requests from anyone.

AT_BLE_ADV_FP_FILTER_SCANREQ 

Allow both scan request from White List devices only and connection request from anyone.

AT_BLE_ADV_FP_FILTER_CONNREQ 

Allow both scan request from anyone and connection request from White List devices only.

AT_BLE_ADV_FP_FILTER_BOTH 

Allow scan and connection requests from White List devices only.

Enumerator
AT_BLE_DEVICE_VERSION 
AT_BLE_DEVICE_ADDRESS 

Initialization Configuration parameters.

Enumerator
AT_BLE_CHIP_ENABLE 

Used to identify chip enable pin to be set or cleared using at_ble_gpio_status_t.

AT_BLE_EXTERNAL_WAKEUP 

Used to identify external wakeup pin to be set or cleared using at_ble_gpio_status_t.

Enumerator
AT_BLE_LOW 

Logical Low.

AT_BLE_HIGH 

Logical High.

Attribute Table Indexes.

Enumerator
HTPT_TEMP_MEAS_CHAR 
HTPT_TEMP_TYPE_CHAR 
HTPT_INTERM_TEMP_CHAR 
HTPT_MEAS_INTV_CHAR 
HTPT_CHAR_MAX 

Connection Type.

Enumerator
HTPT_CONFIG_CONN 
HTPT_NORMAL_CONN 

HTPT Database Configuration Flags.

Enumerator
HTPT_TEMP_TYPE_CHAR_SUP 

Indicate if Temperature Type Char. is supported.

HTPT_INTERM_TEMP_CHAR_SUP 

Indicate if Intermediate Temperature Char. is supported.

HTPT_MEAS_INTV_CHAR_SUP 

Indicate if Measurement Interval Char. is supported.

HTPT_MEAS_INTV_IND_SUP 

Indicate if Measurement Interval Char. supports indications.

HTPT_MEAS_INTV_WR_SUP 

Indicate if Measurement Interval Char. is writable.

HTPT_ALL_FEAT_SUP 

All Features supported.

Enable Notification/Indication for HTPT characteristics.

Enumerator
HTPT_CFG_STABLE_MEAS_IND 

Stable measurement interval indication enabled.

HTPT_CFG_INTERM_MEAS_NTF 

Intermediate measurement notification enabled.

HTPT_CFG_MEAS_INTV_IND 

Measurement interval indication.

Enable/Disable Notification/Indication.

Enumerator
HTPT_STOP_NTFIND 

Stop notification/indication.

HTPT_START_NTF 

Start notification.

HTPT_START_IND 

Start indication.

Service Security Level.

Enumerator
HTPT_DISABLE 

Service can be browsed but attributes cannot be accessed.

HTPT_ENABLE 

Service can be browsed and attributes can be accessed according to attribute permission.

HTPT_UNAUTH 

Service can be used with minimum Unauthenticated Link (Just Work Pairing)

HTPT_AUTH 

Service can be used with Authenticated Link (Pin code Pairing)

Temperature Measurement Flags field bit values.

Enumerator
HTPT_FLAG_CELSIUS 

Temperature Units Flag - Celsius.

HTPT_FLAG_FAHRENHEIT 

Temperature Units Flag - Fahrenheit.

HTPT_FLAG_TIME 

Time Stamp Flag.

HTPT_FLAG_TYPE 

Temperature Type Flag.

Temperature Type Description.

Enumerator
HTP_TYPE_ARMPIT 

Armpit.

HTP_TYPE_BODY 

Body (general)

HTP_TYPE_EAR 

Ear (usually ear lobe)

HTP_TYPE_FINGER 

Finger.

HTP_TYPE_GASTRO_INTESTINAL_TRACT 

Gastro-intestinal Tract.

HTP_TYPE_MOUTH 

Mouth.

HTP_TYPE_RECTUM 

Rectum.

HTP_TYPE_TOE 

Toe.

HTP_TYPE_TYMPANUM 

Tympanum (ear drum)

a device IO capabilities

Enumerator
AT_BLE_IO_CAP_DISPLAY_ONLY 

Can only display.

AT_BLE_IO_CAP_DISPLAY_YES_NO 

Can Display and get a Yes/No input from user.

AT_BLE_IO_CAP_KB_ONLY 

Has only a keyboard.

AT_BLE_IO_CAP_NO_INPUT_NO_OUTPUT 

Has no input and no output.

AT_BLE_IO_CAP_KB_DISPLAY 

Has both a display and a keyboard.

Security keys distribution list.

Enumerator
AT_BLE_KEY_DIST_NONE 

No keys to distribute.

AT_BLE_KEY_DIST_ENC 

Distribute Encryption Key.

AT_BLE_KEY_DIST_ID 

Distribute ID Key.

AT_BLE_KEY_DIST_SIGN 

Distribute Signature Key.

AT_BLE_KEY_DIS_ALL 

Distribute All Keys.

LE Credit based security levels.

Enumerator
AT_BLE_LECB_DISABLE 

No Security.

AT_BLE_LECB_ENABLE 

Enable Security.

AT_BLE_LECB_UNAUTH 

Minimum Unauthenticated Link (Just Works Pairing)

AT_BLE_LECB_AUTH 

Authenticated Link (Pin code Pairing)

LE Credit based connection status codes.

Enumerator
AT_BLE_LECB_SUCCESS 

Connection successful.

AT_BLE_LECB_FAIL_PSM_NOT_SUPPORTED 

Connection refused LE PSM not supported.

AT_BLE_LECB_FAIL_NO_AVAIL_RESOURCES 

Connection refused no resources available.

AT_BLE_LECB_FAIL_INSUFF_AUTHEN 

Connection refused insufficient authentication.

AT_BLE_LECB_FAIL_INSUFF_AUTHOR 

Connection refused insufficient authorization.

AT_BLE_LECB_FAIL_INSUFF_EKS 

Connection refused insufficient encryption key size.

AT_BLE_LECB_FAIL_INSUFF_ENC 

Connection refused insufficient encryption.

Service Multi Instantiated.

Enumerator
AT_BLE_SI 

Task that manage service is not multi-instantiated.

AT_BLE_MI 

Task that manage service is multi-instantiated.

request operation type - application interface

Enumerator
AT_BLE_NO_OP 

No operation.

AT_BLE_MTU_EXCH 

Perform MTU exchange.

AT_BLE_DISC_ALL_SVC 

Discover all services.

AT_BLE_DISC_BY_UUID_SVC 

Discover services by UUID.

AT_BLE_DISC_INCLUDED_SVC 

Discover included services.

AT_BLE_DISC_ALL_CHAR 

Discover all characteristics.

AT_BLE_DISC_BY_UUID_CHAR 

Discover characteristic by UUID.

AT_BLE_DISC_DESC_CHAR 

Discover characteristic descriptor.

AT_BLE_READ 

Read attribute.

AT_BLE_READ_LONG 

Read long attribute.

AT_BLE_READ_BY_UUID 

Read attribute by UUID.

AT_BLE_READ_MULTIPLE 

Read multiple attribute.

AT_BLE_WRITE 

Write attribute.

AT_BLE_WRITE_NO_RESPONSE 

Write no response.

AT_BLE_WRITE_SIGNED 

Write signed.

AT_BLE_EXEC_WRITE 

Execute write.

AT_BLE_REGISTER 

Register to peer device events.

AT_BLE_UNREGISTER 

Unregister from peer device events.

AT_BLE_NOTIFY 

Send an attribute notification.

AT_BLE_INDICATE 

Send an attribute indication.

AT_BLE_SVC_CHANGED 

Send a service changed indication.

AT_BLE_LAST 

Last flag.

Pairing Key Type.

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.

Enumeration for GAP Parameters.

Enumerator
AT_BLE_GAP_GEN_DISC_ADV_MIN 

Minimum time to remain advertising, when in Discoverable mode (mSec). Setting this parameter to 0 turns off the time-out (default).

AT_BLE_GAP_LIM_ADV_TIMEOUT 

Maximum time to remain advertising, when in Limited Discoverable mode. In seconds (default 180 seconds)

AT_BLE_GAP_GEN_DISC_SCAN 

Minimum time to perform scanning, when performing General Discovery proc (mSec)

AT_BLE_GAP_LIM_DISC_SCAN 

Minimum time to perform scanning, when performing Limited Discovery proc (mSec)

AT_BLE_GAP_CONN_EST_ADV_TIMEOUT 

Advertising time-out, when performing Connection Establishment proc (mSec)

AT_BLE_GAP_CONN_PARAM_TIMEOUT 

Link Layer connection parameter update notification timer, connection parameter update proc (mSec)

AT_BLE_GAP_LIM_DISC_ADV_INT_MIN 

Minimum advertising interval, when in limited discoverable mode (n * 0.625 mSec)

AT_BLE_GAP_LIM_DISC_ADV_INT_MAX 

Maximum advertising interval, when in limited discoverable mode (n * 0.625 mSec)

AT_BLE_GAP_GEN_DISC_ADV_INT_MIN 

Minimum advertising interval, when in General discoverable mode (n * 0.625 mSec)

AT_BLE_GAP_GEN_DISC_ADV_INT_MAX 

Maximum advertising interval, when in General discoverable mode (n * 0.625 mSec)

AT_BLE_GAP_CONN_ADV_INT_MIN 

Minimum advertising interval, when in Connectable mode (n * 0.625 mSec)

AT_BLE_GAP_CONN_ADV_INT_MAX 

Maximum advertising interval, when in Connectable mode (n * 0.625 mSec)

AT_BLE_GAP_CONN_SCAN_INT 

Scan interval used during Link Layer Initiating state, when in Connectable mode (n * 0.625 mSec)

AT_BLE_GAP_CONN_SCAN_WIND 

Scan window used during Link Layer Initiating state, when in Connectable mode (n * 0.625 mSec)

AT_BLE_GAP_CONN_HIGH_SCAN_INT 

Scan interval used during Link Layer Initiating state, when in Connectable mode, high duty scan cycle scan parameters (n * 0.625 mSec)

AT_BLE_GAP_CONN_HIGH_SCAN_WIND 

Scan window used during Link Layer Initiating state, when in Connectable mode, high duty scan cycle scan parameters (n * 0.625 mSec)

AT_BLE_GAP_GEN_DISC_SCAN_INT 

Scan interval used during Link Layer Scanning state, when in General Discovery proc (n * 0.625 mSec)

AT_BLE_GAP_GEN_DISC_SCAN_WIND 

Scan window used during Link Layer Scanning state, when in General Discovery proc (n * 0.625 mSec)

AT_BLE_GAP_LIM_DISC_SCAN_INT 

Scan interval used during Link Layer Scanning state, when in Limited Discovery proc (n * 0.625 mSec)

AT_BLE_GAP_LIM_DISC_SCAN_WIND 

Scan window used during Link Layer Scanning state, when in Limited Discovery proc (n * 0.625 mSec)

AT_BLE_GAP_CONN_EST_ADV 

Advertising interval, when using Connection Establishment proc (n * 0.625 mSec). Obsolete - Do not use.

AT_BLE_GAP_CONN_EST_INT_MIN 

Minimum Link Layer connection interval, when using Connection Establishment proc (n * 1.25 mSec)

AT_BLE_GAP_CONN_EST_INT_MAX 

Maximum Link Layer connection interval, when using Connection Establishment proc (n * 1.25 mSec)

AT_BLE_GAP_CONN_EST_SCAN_INT 

Scan interval used during Link Layer Initiating state, when using Connection Establishment proc (n * 0.625 mSec)

AT_BLE_GAP_CONN_EST_SCAN_WIND 

Scan window used during Link Layer Initiating state, when using Connection Establishment proc (n * 0.625 mSec)

AT_BLE_GAP_CONN_EST_SUPERV_TIMEOUT 

Link Layer connection supervision time-out, when using Connection Establishment proc (n * 10 mSec)

AT_BLE_GAP_CONN_EST_LATENCY 

Link Layer connection slave latency, when using Connection Establishment proc (in number of connection events)

AT_BLE_GAP_CONN_EST_MIN_CE_LEN 

Local informational parameter about MIN length of connection needed, when using Connection Establishment proc (n * 0.625 mSec)

AT_BLE_GAP_CONN_EST_MAX_CE_LEN 

Local informational parameter about MAX length of connection needed, when using Connection Establishment proc (n * 0.625 mSec)

AT_BLE_GAP_PRIVATE_ADDR_INT 

Minimum Time Interval between private (resolvable) address changes. In minutes (default 15 minutes)

AT_BLE_GAP_CONN_PAUSE_CENTRAL 

Central idle timer. In seconds (default 1 second)

AT_BLE_GAP_CONN_PAUSE_PERIPHERAL 

Minimum time upon connection establishment before the peripheral starts a connection update procedure. In seconds (default 5 seconds)

Passkey Type.

Enumerator
AT_BLE_PAIR_PASSKEY_ENTRY 

A passkey entry required.

AT_BLE_PAIR_PASSKEY_DISPLAY 

A passkey needs to be generated and displayed as part of pairing procedure.

Connection type.

Enumerator
PRF_CON_DISCOVERY 

Discovery type connection.

PRF_CON_NORMAL 

Normal type connection.

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.

Scan types used at at_ble_scan_start.

Enumerator
AT_BLE_SCAN_PASSIVE 

No SCAN_REQ packets shall be sent.

AT_BLE_SCAN_ACTIVE 

SCAN_REQ packets may be sent.

Enumerator
SECONDARY_SERVICE 
PRIMARY_SERVICE 

TX Power levels.

Enumerator
AT_BLE_TX_PWR_LVL_NEG_55_DB 

-55 db

AT_BLE_TX_PWR_LVL_NEG_20_DB 

-20 db

AT_BLE_TX_PWR_LVL_NEG_14_DB 

-14 db

AT_BLE_TX_PWR_LVL_NEG_11_DB 

-11 db

AT_BLE_TX_PWR_LVL_NEG_09_DB 

-9 db

AT_BLE_TX_PWR_LVL_NEG_07_DB 

-7 db

AT_BLE_TX_PWR_LVL_NEG_06_DB 

-6 db

AT_BLE_TX_PWR_LVL_NEG_05_DB 

-5 db

AT_BLE_TX_PWR_LVL_NEG_04_DB 

-4 db

AT_BLE_TX_PWR_LVL_NEG_03_DB 

-3 db

AT_BLE_TX_PWR_LVL_NEG_02_DB 

-2 db

AT_BLE_TX_PWR_LVL_NEG_01_DB 

-1 db

AT_BLE_TX_PWR_LVL_ZERO_DB 

0 db

AT_BLE_TX_PWR_LVL_POS_01_DB 

+1 db

AT_BLE_TX_PWR_LVL_POS_02_DB 

+2 db

AT_BLE_TX_PWR_LVL_POS_03_DB 

+3 db

Enumerator
AT_BLE_UART_BAUDRATE_9600 

9600 Kbps

AT_BLE_UART_BAUDRATE_19200 

19200 Kbps

AT_BLE_UART_BAUDRATE_38400 

38400 Kbps

AT_BLE_UART_BAUDRATE_57600 

57600 Kbps

AT_BLE_UART_BAUDRATE_115200 

115200 Kbps

AT_BLE_UART_BAUDRATE_230400 

230400 Kbps

AT_BLE_UART_BAUDRATE_460800 

460800 Kbps

AT_BLE_UART_BAUDRATE_921600 

921600 Kbps

UUID Type.

Enumerator
AT_BLE_UUID_16 

16 Bit UUID

AT_BLE_UUID_32 

32 Bit UUID

AT_BLE_UUID_128 

128 Bit UUID

AT_BLE_UUID_INVALID 

Invalid UUID.

Enumerator
AT_BTLC1000_MR 

BTLC1000 MR module [Default].

AT_BTLC1000_ZR 

BTLC1000 ZR module.

AT_BTLC1000_NONE 

BTLC1000 no module.

Enumerator
NO_GPIO 
LP_GPIO_1 
LP_GPIO_2 
LP_GPIO_3 
LP_GPIO_4 
LP_GPIO_5 
LP_GPIO_6 
LP_GPIO_7 
LP_GPIO_8 
LP_GPIO_9 
LP_GPIO_10 
LP_GPIO_11 
LP_GPIO_12 
LP_GPIO_13 
LP_GPIO_14 
LP_GPIO_15 
LP_GPIO_16 
LP_GPIO_17 
LP_GPIO_18 
LP_GPIO_19 
LP_GPIO_20 
LP_GPIO_21 
LP_GPIO_22 
LP_GPIO_23 
LP_GPIO_24 
AO_GPIO_2 
AO_GPIO_1 
AO_GPIO_0 
GPIO_MS4 
GPIO_MS3 
GPIO_MS2 
GPIO_MS1 
BTLC1000_EXT_PIN9 

Direct test mode opcodes (DTM)

Enumerator
AT_BLE_RESET_CMD_OPCODE 
AT_BLE_RX_TEST_CMD_OPCODE 
AT_BLE_TX_TEST_CMD_OPCODE 
AT_BLE_TEST_END_CMD_OPCODE 

GAPC Retrieve information command request type.

Enumerator
AT_BLE_GET_PEER_NAME 

Retrieve name of peer device.

AT_BLE_GET_PEER_APPEARANCE 

Get Peer device appearance.

AT_BLE_GET_PEER_SLV_PREF_PARAMS 

Get Peer device Slaved Preferred Parameters.

AT_BLE_GET_CON_CHANNEL_MAP 

Retrieve Connection Channel MAP.

at_ble_status_t at_ble_descriptor_value_get ( at_ble_handle_t  handle,
uint8_t *  value,
uint16_t *  len 
)

Reads A Descriptor value.

Parameters
[in]handleCharacteristic value handle
[out]valueread value will be returned here
[out]lenactual read length, in bytes
Returns
Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t

Referenced by hid_get_reportchar(), and hid_get_reportid().

at_ble_status_t at_ble_descriptor_value_set ( at_ble_handle_t  handle,
uint8_t *  value,
uint16_t  len 
)

Sets A characteristic value.

Parameters
[in]handleDescriptor value handle
[in]valuenew value
[in]lenValue length, in bytes
Returns
Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t

Referenced by hid_service_dbreg().

at_ble_status_t at_ble_htpt_meas_intv_chg_cfm ( at_ble_handle_t  conn_handle,
at_ble_status_t  status 
)

This message is used by application to confirm that measurement interval modification is accepted or not by the application.Write confirmation is sent back to peer devices that requests modification and if accepted, all other devices connected which have configured to receive measurement interval change indication will be informed about this modification.

Parameters
[in]conn_handleConnection handle
[in]statusoperation status code
Returns
Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
at_ble_status_t at_ble_set_ulp_delay ( at_ble_ulp_delay_t  arg)
at_ble_uuid_type_t at_ble_uuid_len2type ( uint8_t  len)
uint8_t at_ble_uuid_type2len ( at_ble_uuid_type_t  type)