|
enum | ble_ad_type {
AD_TYPE_FLAGS = 0x01,
AD_TYPE_MORE_16_BIT_UUID = 0x02,
AD_TYPE_COMPLETE_LIST_16_BIT_UUID = 0x03,
AD_TYPE_MORE_32_BIT_UUID = 0x04,
AD_TYPE_COMPLETE_LIST_32_BIT_UUID = 0x05,
AD_TYPE_MORE_128_BIT_UUID = 0x06,
AD_TYPE_COMPLETE_LIST_128_BIT_UUID = 0x07,
AD_TYPE_SHORTENED_NAME = 0x08,
AD_TYPE_COMPLETE_NAME = 0x09,
AD_TYPE_TRANSMIT_POWER = 0x0A,
AD_TYPE_CLASS_OF_DEVICE = 0x0D,
AD_TYPE_SP_HASH_C = 0x0E,
AD_TYPE_SP_RANDOMIZER_R = 0x0F,
AD_TYPE_TK_VALUE = 0x10,
AD_TYPE_OOB_FLAGS = 0x11,
AD_TYPE_SLAVE_CONN_INT_RANGE = 0x12,
AD_TYPE_RQRD_16_BIT_SVC_UUID = 0x14,
AD_TYPE_RQRD_32_BIT_SVC_UUID = 0x1F,
AD_TYPE_RQRD_128_BIT_SVC_UUID = 0x15,
AD_TYPE_SERVICE_16_BIT_DATA = 0x16,
AD_TYPE_SERVICE_32_BIT_DATA = 0x20,
AD_TYPE_SERVICE_128_BIT_DATA = 0x21,
AD_TYPE_PUB_TGT_ADDR = 0x17,
AD_TYPE_RAND_TGT_ADDR = 0x18,
AD_TYPE_APPEARANCE = 0x19,
AD_TYPE_ADV_INTV = 0x1A,
AD_TYPE_LE_BT_ADDR = 0x1B,
AD_TYPE_LE_ROLE = 0x1C,
AD_TYPE_SPAIR_HASH = 0x1D,
AD_TYPE_SPAIR_RAND = 0x1E,
AD_TYPE_3D_INFO = 0x3D,
AD_TYPE_MANU_SPECIFIC_DATA = 0xFF
} |
| GAP Advertising Flags. More...
|
|
enum | ble_rnd_addr_type { STATIC_ADDR = 0xC0,
NON_RSLV_ADDR = 0x00,
RSLV_ADDR = 0x40
} |
| Random Address type. More...
|
|
enum | ble_role {
ROLE_NONE = 0x00,
ROLE_OBSERVER = 0x01,
ROLE_BROADCASTER = 0x02,
ROLE_CENTRAL = (0x04 | ROLE_OBSERVER),
ROLE_PERIPHERAL = (0x08 | ROLE_BROADCASTER),
ROLE_ALL = (ROLE_CENTRAL | ROLE_PERIPHERAL)
} |
| GAP Role. More...
|
|
enum | ble_io_cap {
IO_CAP_DISPLAY_ONLY = 0x00,
IO_CAP_DISPLAY_YES_NO,
IO_CAP_KB_ONLY,
IO_CAP_NO_INPUT_NO_OUTPUT,
IO_CAP_KB_DISPLAY
} |
| IO Capability Values. More...
|
|
enum | ble_tk_type { TK_OOB = 0x00,
TK_DISPLAY,
TK_KEY_ENTRY
} |
| TK Type. More...
|
|
enum | ble_oob { OOB_AUTH_DATA_NOT_PRESENT = 0x00,
OOB_AUTH_DATA_PRESENT
} |
| OOB Data Present Flag Values. More...
|
|
enum | ble_auth_mask {
AUTH_NONE = 0,
AUTH_BOND = (1 << 0),
AUTH_MITM = (1 << 2),
AUTH_SEC_CON = (1 << 3),
AUTH_KEY_NOTIF = (1 << 4)
} |
| Authentication mask. More...
|
|
enum | ble_lk_sec_lvl { LK_NO_AUTH = 0,
LK_UNAUTH,
LK_AUTH,
LK_SEC_CON
} |
| Security Link Level. More...
|
|
enum | ble_auth {
AUTH_REQ_NO_MITM_NO_BOND = (AUTH_NONE),
AUTH_REQ_NO_MITM_BOND = (AUTH_BOND),
AUTH_REQ_MITM_NO_BOND = (AUTH_MITM),
AUTH_REQ_MITM_BOND = (AUTH_MITM | AUTH_BOND),
AUTH_REQ_SEC_CON_NO_BOND = (AUTH_SEC_CON),
AUTH_REQ_SEC_CON_BOND = (AUTH_SEC_CON | AUTH_BOND),
AUTH_REQ_SEC_CON_MITM_BOND = (AUTH_SEC_CON | AUTH_BOND | AUTH_MITM)
, AUTH_REQ_MASK = 0x1F
} |
| Authentication Requirements. More...
|
|
enum | ble_kdist {
KDIST_NONE = 0x00,
KDIST_ENCKEY = (1 << 0),
KDIST_IDKEY = (1 << 1),
KDIST_SIGNKEY = (1 << 2),
KDIST_LINKKEY = (1 << 3)
} |
| Key Distribution Flags. More...
|
|
enum | ble_sec_req {
NO_SEC = 0x00,
SEC1_NOAUTH_PAIR_ENC,
SEC1_AUTH_PAIR_ENC,
SEC2_NOAUTH_DATA_SGN,
SEC2_AUTH_DATA_SGN,
SEC1_SEC_CON_PAIR_ENC
} |
| Security Defines. More...
|
|
enum | ble_phy { PHY_ANY = 0x00,
PHY_LE_1MBPS = (1 << 0),
PHY_LE_2MBPS = (1 << 1),
PHY_LE_CODED = (1 << 2)
} |
| Bit field use to select the preferred TX or RX LE PHY. 0 means no preferences. More...
|
|
enum | ble_phy_value { PHY_UNDEF_LNK_VALUE = 0,
PHY_1MBPS_LNK_VALUE = 1,
PHY_2MBPS_LNK_VALUE = 2,
PHY_CODED_LNK_VALUE = 3
} |
| PHY value return from the link layer. More...
|
|
enum | ble_test_mode |
| Test mode operation.
|
|
enum | ble_test_phy {
TEST_PHY_1MBPS = 1,
TEST_PHY_2MBPS = 2,
TEST_PHY_CODED = 3,
TEST_PHY_125KBPS = 3,
TEST_PHY_500KBPS = 4
} |
| Enumeration of TX/RX PHY used for Test Mode. More...
|
|
enum | ble_modulation_idx { MODULATION_STANDARD,
MODULATION_STABLE
} |
| Modulation index. More...
|
|
enum | ble_pkt_pld_type {
PKT_PLD_PRBS9,
PKT_PLD_REPEATED_11110000,
PKT_PLD_REPEATED_10101010,
PKT_PLD_PRBS15,
PKT_PLD_REPEATED_11111111,
PKT_PLD_REPEATED_00000000,
PKT_PLD_REPEATED_00001111,
PKT_PLD_REPEATED_01010101
} |
| Packet Payload type for test mode. More...
|
|
enum | ble_priv_cfg { PRIV_CFG_PRIV_ADDR_BIT = (1 << 0),
PRIV_CFG_RSVD = (1 << 1),
PRIV_CFG_PRIV_EN_BIT = (1 << 2)
} |
| Privacy configuration. More...
|
|
enum | ble_pairing_mode { PAIRING_DISABLE = 0,
PAIRING_LEGACY = (1 << 0),
PAIRING_SEC_CON = (1 << 1),
PAIRING_FORCE_P256_KEY_GEN = (1<<7)
} |
| Pairing mode authorized on the device. More...
|
|
enum | ble_write_att_perm {
WRITE_DISABLE = 0,
WRITE_NO_AUTH = 1,
WRITE_UNAUTH = 2,
WRITE_AUTH = 3,
WRITE_SEC_CON = 4
} |
| Device Attribute write permission requirement. More...
|
|
enum | ble_get_dev_info_cmd {
GET_DEV_INFO_VERSION,
GET_DEV_INFO_BDADDR,
GET_DEV_INFO_TX_POWER,
GET_DEV_INFO_ADV_TX_POWER,
GET_DEV_INFO_SUGG_DFT_DATA,
GET_DEV_INFO_SUPP_DFT_DATA,
GET_DEV_INFO_MAX_ADV_DATA_LEN,
GET_DEV_INFO_WLIST_SIZE,
GET_DEV_INFO_RAL_SIZE,
GET_DEV_INFO_PAL_SIZE,
GET_DEV_INFO_NB_ADV_SETS
} |
| get device local info command. More...
|
|
enum | ble_actv_type { ACTV_TYPE_ADV = 0,
ACTV_TYPE_SCAN,
ACTV_TYPE_INIT,
ACTV_TYPE_PER_SYNC
} |
| Type of activities that can be created. More...
|
|
enum | adv_report_type {
REPORT_TYPE_ADV_EXT = 0,
REPORT_TYPE_ADV_LEG,
REPORT_TYPE_SCAN_RSP_EXT,
REPORT_TYPE_SCAN_RSP_LEG,
REPORT_TYPE_PER_ADV
} |
| Advertising report type. More...
|
|
enum | ble_adv_report_info {
REPORT_INFO_REPORT_TYPE_MASK = 0x07,
REPORT_INFO_COMPLETE_BIT = (1 << 3),
REPORT_INFO_CONN_ADV_BIT = (1 << 4),
REPORT_INFO_SCAN_ADV_BIT = (1 << 5),
REPORT_INFO_DIR_ADV_BIT = (1 << 6)
} |
| Advertising report information. More...
|
|
enum | ble_adv_type { ADV_TYPE_LEGACY = 0,
ADV_TYPE_EXTENDED,
ADV_TYPE_PERIODIC
} |
| Type of advertising that can be created. More...
|
|
enum | ble_adv_disc_mode { ADV_MODE_NON_DISC = 0,
ADV_MODE_GEN_DISC,
ADV_MODE_LIM_DISC,
ADV_MODE_BEACON
} |
| Advertising discovery mode. More...
|
|
enum | ble_adv_prop {
ADV_PROP_CONNECTABLE = 0x01,
ADV_PROP_SCANNABLE = 0x02,
ADV_PROP_DIRECTED = 0x04,
ADV_PROP_HDC = 0x08,
ADV_PROP_ANONYMOUS = 0x20,
ADV_PROP_TX_PWR = 0x40,
ADV_PROP_PER_TX_PWR = 0x80,
ADV_PROP_SCAN_REQ_NTF_EN = 0x100,
ADV_PROP_NO_ADV_DATA = 0x200
} |
| Advertising properties. More...
|
|
enum | ble_adv_legacy_prop {
ADV_PROP_NON_CONN_NON_SCAN = 0x00,
ADV_PROP_BROADCAST_NON_SCAN = 0x00,
ADV_PROP_NON_CONN_SCAN = ADV_PROP_SCANNABLE,
ADV_PROP_BROADCAST_SCAN = ADV_PROP_NON_CONN_SCAN,
ADV_PROP_UNDIR_CONN = ADV_PROP_CONNECTABLE | ADV_PROP_SCANNABLE,
ADV_PROP_DIR_CONN = ADV_PROP_DIRECTED | ADV_PROP_CONNECTABLE,
ADV_PROP_DIR_CONN_LDC = ADV_PROP_DIR_CONN,
ADV_PROP_DIR_CONN_HDC = ADV_PROP_DIR_CONN | ADV_PROP_HDC
} |
| Advertising properties legacy advertising. More...
|
|
enum | ble_adv_ext_prop {
EXT_ADV_PROP_NON_CONN_NON_SCAN = 0x00,
EXT_ADV_PROP_NON_CONN_SCAN = ADV_PROP_SCANNABLE,
EXT_ADV_PROP_NON_CONN_SCAN_DIR = ADV_PROP_SCANNABLE | ADV_PROP_DIRECTED,
EXT_ADV_PROP_ANONYM_DIR = ADV_PROP_ANONYMOUS | ADV_PROP_DIRECTED,
EXT_ADV_PROP_UNDIR_CONN = ADV_PROP_CONNECTABLE,
EXT_ADV_PROP_DIR_CONN = ADV_PROP_CONNECTABLE | ADV_PROP_DIRECTED,
EXT_ADV_PROP_NON_CONN_NON_SCAN_NON_ADV_DATA = ADV_PROP_NO_ADV_DATA
} |
| Advertising properties for extended advertising. More...
|
|
enum | ble_adv_per_prop { PER_ADV_PROP_UNDIR = 0x00,
PER_ADV_PROP_DIR = ADV_PROP_DIRECTED
} |
| Advertising properties for periodic advertising. More...
|
|
enum | ble_adv_filt_pol { ADV_FILT_ALLOW_SCAN_ANY_CON_ANY = 0,
ADV_FILT_ALLOW_SCAN_WLST_CON_ANY,
ADV_FILT_ALLOW_SCAN_ANY_CON_WLST,
ADV_FILT_ALLOW_SCAN_WLST_CON_WLST
} |
| Advertising filter policy. More...
|
|
enum | ble_adv_chnl |
| Advertising channel.
|
|
enum | ble_addr_type { ADDR_STATIC,
ADDR_RESOLVABLE,
ADDR_NON_RESOLVABLE
} |
| Address type. More...
|
|
enum | ble_scan_type {
GEN_DISC = 0,
LIM_DISC,
OBSERVER,
SEL_OBSERVER,
CONN_DISC,
SEL_CONN_DISC
} |
| Scanning Types. More...
|
|
enum | ble_scan_prop {
SCAN_PROP_PHY_1M = 0x01,
SCAN_PROP_PHY_CODED = 0x02,
SCAN_PROP_ACTIVE_1M = 0x04,
SCAN_PROP_ACTIVE_CODED = 0x08,
SCAN_PROP_ACCEPT_RPA = 0x10,
SCAN_PROP_FILT_TRUNC = 0x20
} |
| Scan properties. More...
|
|
enum | ble_scan_dup_filt { DUPLIC_DIS = 0,
DUPLIC_EN,
DUPLIC_EN_PER_PERIOD
} |
| Scan Filter duplicates Policy. More...
|
|
enum | ble_initiator_type { INIT_TYPE_DIRECT_CONN_EST = 0,
INIT_TYPE_AUTO_CONN_EST,
INIT_TYPE_NAME_DISC
} |
| Initiator Types. More...
|
|
enum | ble_initiator_prop { INIT_PROP_1M = 0x01,
INIT_PROP_2M = 0x02,
INIT_PROP_CODED = 0x04
} |
| Initiator Properties. More...
|
|
enum | ble_per_sync_type { PER_SYNC_TYPE_GENERAL = 0,
PER_SYNC_TYPE_SELECTIVE
} |
| Periodic synchronization types. More...
|
|
enum | ble_coded_phy_opt { PHY_OPT_NO_CODED_TX_PREF,
PHY_OPT_S2_CODED_TX_PREF,
PHY_OPT_S8_CODED_TX_PREF
} |
| LE CODED PHY option. More...
|
|
enum | ble_keypress_state {
PASSKEY_ENTRY_STARTED = 0,
PASSKEY_DIGIT_ENTERED,
PASSKEY_DIGIT_ERASED,
PASSKEY_CLEARED,
PASSKEY_ENTRY_COMPLETED
} |
| Keypress state. More...
|
|
enum | ble_bond {
PAIRING_REQ,
PAIRING_RSP,
PAIRING_SUCCEED,
PAIRING_FAILED,
TK_EXCH,
IRK_EXCH,
CSRK_EXCH,
LTK_EXCH,
REPEATED_ATTEMPT,
OOB_EXCH,
NC_EXCH
} |
| Bond request/event type. More...
|
|
enum | ble_clk_acc {
CLK_ACC_500 = 0,
CLK_ACC_250,
CLK_ACC_150,
CLK_ACC_100,
CLK_ACC_75,
CLK_ACC_50,
CLK_ACC_30,
CLK_ACC_20
} |
| Clock accuracy values. More...
|
|
enum | ble_disc_reason {
DISC_REASON_AUTH_FAILURE = 0x05,
DISC_REASON_REMOTE_USER_TERM_CON = 0x13,
DISC_REASON_REMOTE_DEV_TERM_LOW_RESOURCES = 0x14,
DISC_REASON_REMOTE_DEV_POWER_OFF = 0x15,
DISC_REASON_UNSUPPORTED_REMOTE_FEATURE = 0x1A,
DISC_REASON_PAIRING_WITH_UNIT_KEY_NOT_SUPP = 0x29,
DISC_REASON_UNACCEPTABLE_CONN_INT = 0x3B
} |
| Disconnect reason code. More...
|
|
enum | ble_dev_info {
DEV_NAME,
DEV_APPEARANCE,
DEV_SLV_PREF_PARAMS,
DEV_CTL_ADDR_RESOL,
DEV_INFO_MAX
} |
| List of device info that should be provided by application. More...
|
|
|
int | in_ble_reset (void *hdl, comp_cb callback) |
| Reset BLE stack. More...
|
|
int | in_ble_get_chn_assess (void *hdl, int chn, int8_t *level, uint32_t *timestamp) |
| Get channel assess data. More...
|
|
int | in_ble_test (void *hdl, ble_test_mode_t *p_test, uint16_t *nb_rx_packet, comp_cb callback) |
| Test BLE phy TX and RX. More...
|
|
int | in_ble_set_dev_config (void *hdl, ble_set_dev_config_t *p_cfg, comp_cb callback) |
| Set device configuration. More...
|
|
int | in_ble_get_dev_info (void *hdl, int cmd, ble_local_dev_info_t *p_info, comp_cb callback) |
| Get local device informations. More...
|
|
int | in_ble_set_chn_map (void *hdl, ble_chnl_map_t *p_chn_map, comp_cb callback) |
| Set channel map. More...
|
|
int | in_ble_resolve_addr (void *hdl, ble_rnd_addr_resolve_t *p_rnd_addr, ble_rnd_addr_solved_t *p_addr, comp_cb callback) |
| Resolve provided random address by usng array of IRK. More...
|
|
int | in_ble_gen_random_addr (void *hdl, int rnd_addr_type, ble_bdaddr_t *p_rnd_addr, comp_cb callback) |
| Generate random address. More...
|
|
int | in_ble_aes_enc (void *hdl, ble_aes_enc_t *p_enc, uint8_t *p_enc_res, comp_cb callback) |
| AES-128 calculation. More...
|
|
int | in_ble_get_pub_key (void *hdl, int renew, ble_pub_key_t *p_pub_key, comp_cb callback) |
| get public key More...
|
|
int | in_ble_gen_random_nb (void *hdl, ble_rnd_nb_t *p_rnd_nb, comp_cb callback) |
| Generate a 8 bytes random number. More...
|
|
int | in_ble_set_irk (void *hdl, ble_sec_key_t *p_irk, comp_cb callback) |
| Change the current IRK for a renewed one. More...
|
|
int | in_ble_register_lepsm (void *hdl, ble_lepsm_param_t *p_psm, comp_cb callback) |
| Register a LE Protocol/Service Multiplexer identified. More...
|
|
int | in_ble_unregister_lepsm (void *hdl, uint32_t psm, comp_cb callback) |
| Un-register a LE Protocol/Service Multiplexer identified. More...
|
|
int | in_ble_get_ral_addr (void *hdl, ble_get_ral_addr_t *p_ral_addr, ble_bdaddr_t *p_addr, comp_cb callback) |
| Get local or peer resolvable private address. More...
|
|
int | in_ble_set_white_list (void *hdl, ble_wl_param_t *p_wlist, comp_cb callback) |
| Set the white list content. More...
|
|
int | in_ble_set_ral_list (void *hdl, ble_ral_param_t *p_ral, comp_cb callback) |
| Set the resolving list content. More...
|
|
int | in_ble_set_pal_list (void *hdl, ble_pal_param_t *p_pal, comp_cb callback) |
| Set the peroidic advertiser list content. More...
|
|
int | in_ble_actv_create (void *hdl, ble_actv_create_t *p_act, int *p_actv_idx, comp_cb callback) |
| Create an advertising, a scanning, an initiating or a periodic synchronization activity. More...
|
|
int | in_ble_actv_start (void *hdl, int actv_idx, ble_actv_start_t *p_start, comp_cb callback) |
| Start an advertising, a scanning, an initiating or a periodic synchronization activity. More...
|
|
int | in_ble_actv_data (void *hdl, int actv_idx, int option, uint8_t *data, uint32_t data_len, comp_cb callback) |
| Set an advertising, a periodic advertising, or a scan response data. More...
|
|
int | in_ble_actv_stop (void *hdl, int actv_idx, comp_cb callback) |
| Stop an activity or all activities. More...
|
|
int | in_ble_actv_del (void *hdl, int actv_idx, comp_cb callback) |
| Delete an activity or all activities. More...
|
|
int | in_ble_conn_cfm (void *hdl, int conidx, ble_conn_cfm_t *p_cfm) |
| Confirm connection request. More...
|
|
int | in_ble_conn_disconnect (void *hdl, int conidx, uint32_t reason, comp_cb callback) |
| Disconnect a link. More...
|
|
int | in_ble_conn_get_peer_info (void *hdl, int conidx, int option, ble_conn_peer_info_t *p_peer_info, comp_cb callback) |
| Retrieve connection information. More...
|
|
int | in_ble_conn_param_update (void *hdl, int conidx, ble_conn_param_update_t *p_upd, comp_cb callback) |
| Update connection paramters. More...
|
|
int | in_ble_conn_param_update_cfm (void *hdl, int conidx, bool accept) |
| Confirm updated paramters. More...
|
|
int | in_ble_conn_req_encrypt (void *hdl, int conidx, ble_ltk_t *p_ltk, comp_cb callback) |
| Initiate encryption procedure. More...
|
|
int | in_ble_conn_req_encrypt_cfm (void *hdl, int conidx, ble_conn_encrypt_cfm_t *p_cfm) |
| Confirm master's encryption request. More...
|
|
int | in_ble_conn_req_security (void *hdl, int conidx, int auth, comp_cb callback) |
| Initiate security request procedure. More...
|
|
int | in_ble_conn_set_ping_tmo (void *hdl, int conidx, uint32_t timeout, comp_cb callback) |
| Set LE ping time out value. More...
|
|
int | in_ble_conn_set_pkt_size (void *hdl, uint8_t conidx, ble_pref_le_pkt_size_t *p_pref_pkt_size, ble_le_pkt_size_t *p_pkt_size, comp_cb callback) |
| Change current LE packet size. More...
|
|
int | in_ble_conn_bond (void *hdl, int conidx, ble_pairing_t *p_bond, comp_cb callback) |
| Initiate bond. More...
|
|
int | in_ble_conn_bond_cfm (void *hdl, int conidx, ble_bond_cfm_t *p_cfm) |
| Confirm bond request. More...
|
|
int | in_ble_conn_set_pref_phy (void *hdl, int conidx, ble_conn_pref_phy_t *p_phy, ble_phy_ind_t *p_phy_ind, comp_cb callback) |
| Set prefered PHY. More...
|
|
int | in_ble_conn_keypress_notify (void *hdl, int conidx, int key_state, comp_cb callback) |
| Send a keypress to peer. More...
|
|
int | in_ble_conn_get_dev_info_cfm (void *hdl, int conidx, ble_get_dev_info_cfm_t *p_cfm) |
| Send requested info to peer device. More...
|
|
BLE GAP.