InPlay API
|
BLE GAP. More...
Data Structures | |
struct | ble_dev_name_t |
Device name. More... | |
struct | ble_dev_verison_t |
Device version parameters. More... | |
struct | ble_peer_version_ind_t |
Indication of peer version info. More... | |
struct | ble_peer_features_ind_t |
Indication of peer features info. More... | |
struct | ble_sugg_dft_t |
Suggested data len & time. More... | |
struct | ble_supp_dft_t |
Supported data len & time. */. More... | |
struct | ble_tx_pwr_t |
Transmit powers supported by the controller. More... | |
struct | ble_slv_pref_t |
Slave preferred connection parameters. More... | |
struct | ble_addr_t |
BD Address structure. More... | |
struct | ble_chnl_map_t |
Channel map structure. More... | |
struct | ble_rnd_nb_t |
Random number structure. More... | |
struct | ble_pub_key_t |
P256 Public key data format. More... | |
struct | ble_bdaddr_t |
Address information about a device address. More... | |
struct | ble_ral_dev_info_t |
Resolving list device information. More... | |
struct | ble_pal_dev_info_t |
Peroidic address list device information. More... | |
struct | ble_sec_key_t |
Generic Security key structure. More... | |
struct | ble_ltk_t |
Long Term Key information. More... | |
struct | ble_irk_t |
Identity Resolving Key information. More... | |
struct | ble_bond_auth_t |
Authentication information. More... | |
struct | ble_oob_t |
Out of band data. More... | |
struct | ble_nc_t |
Numeric comparison value */. More... | |
struct | ble_pairing_t |
Pairing structure. More... | |
struct | ble_phy_ind_t |
Indicate the PHY used for transmission and reception. More... | |
struct | ble_test_mode_t |
Test PHY structure. More... | |
struct | ble_set_dev_config_t |
device configuration structure More... | |
union | ble_local_dev_info_t |
local device info More... | |
struct | ble_rnd_addr_resolve_t |
Resolve random Address. More... | |
struct | ble_rnd_addr_solved_t |
Resolved address. More... | |
struct | ble_aes_enc_t |
AES-128 encryption. More... | |
struct | ble_lepsm_param_t |
LE PSM paramters. More... | |
struct | ble_get_ral_addr_t |
Get local or peer resolvable address. More... | |
struct | ble_wl_param_t |
Add white list parameters. More... | |
struct | ble_ral_param_t |
Add resolvable list parameters. More... | |
struct | ble_pal_param_t |
Add periodic address list parameters. More... | |
struct | adv_prim_cfg |
Advertising configuration for primary channel structure. More... | |
struct | adv_second_cfg |
Advertising configuration for secondary channel structure. More... | |
struct | adv_period_cfg |
Advertising periodic configuration structure. More... | |
struct | adv_create_param_t |
Advertisement activity create structure. More... | |
struct | ble_actv_create_t |
Activity create structure. More... | |
struct | ble_adv_start_t |
Advertisement start structure. More... | |
struct | scan_wd_op_param |
Scan Window operation parameters. More... | |
struct | ble_scan_start_t |
Scanning start structure. More... | |
struct | conn_param |
Connection parameters. More... | |
struct | ble_init_start_t |
Initiator start structure. More... | |
struct | period_adv_addr_cfg |
Periodic advertiser information. More... | |
struct | ble_per_sync_start_t |
Periodic synchronization start structure. More... | |
struct | ble_actv_start_t |
Activity start structure. More... | |
struct | ble_conn_cfm_t |
Connection request confirm structure. More... | |
union | ble_conn_peer_info_t |
Connection get peer information structure. More... | |
struct | ble_conn_param_update_t |
Connection parameters update structure. More... | |
struct | ble_conn_encrypt_cfm_t |
Connection encrypt request confirm structure. More... | |
struct | ble_bond_cfm_t |
Connection bond confirm. More... | |
struct | ble_conn_pref_phy_t |
Connection set prefered PHY. More... | |
struct | ble_pref_le_pkt_size_t |
Set prefer TX data length. More... | |
struct | ble_le_pkt_size_t |
Controller max TX/RX size. More... | |
struct | ble_get_dev_info_cfm_t |
Send requested info to peer device. More... | |
Macros | |
#define | BLE_BDADDR_LEN (6) |
BD address length. | |
#define | BLE_CHNL_MAP_LEN (0x05) |
LE Channel map length. | |
#define | BLE_FEATS_LEN (0x08) |
LE Feature Flags Length. | |
#define | BLE_ADV_DATA_LEN (0x1F) |
ADV Data and Scan Response length. | |
#define | BLE_RAND_NB_LEN (0x08) |
Random number length. | |
#define | BLE_KEY_LEN (16) |
Key length. | |
#define | BLE_P256_KEY_LEN (0x20) |
P256 Key Len. | |
#define | GAP_CNX_INTERVAL_MIN 6 |
Connection interval min (N*1.250ms) | |
#define | GAP_CNX_INTERVAL_MAX 3200 |
Connection interval Max (N*1.250ms) | |
#define | GAP_CNX_LATENCY_MIN 0 |
Connection latency min (N*cnx evt) | |
#define | GAP_CNX_LATENCY_MAX 499 |
Connection latency Max (N*cnx evt. | |
#define | GAP_CNX_SUP_TO_MIN 10 |
Supervision TO min (N*10ms) | |
#define | GAP_CNX_SUP_TO_MAX 3200 |
Supervision TO Max (N*10ms) | |
#define | ADDR_PRAND_LEN (3) |
Length of resolvable random address prand part. | |
#define | ADDR_HASH_LEN (3) |
Length of resolvable random address hash part. | |
#define | GAP_TMR_CONN_PAUSE_CT 0x0064 |
#define | GAP_TMR_CONN_PAUSE_PH 0x01F4 |
#define | GAP_TMR_SCAN_FAST_PERIOD 0x0C00 |
#define | GAP_TMR_ADV_FAST_PERIOD 0x0BB8 |
#define | GAP_LIM_DISC_SCAN_INT 0x0012 |
#define | GAP_SCAN_FAST_INTV 0x0030 |
#define | GAP_SCAN_FAST_WIND 0x0030 |
#define | GAP_SCAN_SLOW_INTV1 0x00CD |
#define | GAP_SCAN_SLOW_INTV2 0x019A |
#define | GAP_SCAN_SLOW_WIND1 0x0012 |
#define | GAP_SCAN_SLOW_WIND2 0x0024 |
#define | GAP_ADV_FAST_INTV1 0x0030 |
#define | GAP_ADV_FAST_INTV2 0x0064 |
#define | GAP_ADV_SLOW_INTV 0x00B0 |
#define | GAP_INIT_CONN_MIN_INTV 0x0018 |
#define | GAP_CONN_SUPERV_TIMEOUT 0x07D0 |
#define | GAP_CONN_MIN_CE 0x0000 |
#define | GAP_CONN_MAX_CE 0xFFFF |
#define | GAP_CONN_LATENCY 0x0000 |
#define | GAP_APPEARANCE 0x0000 |
#define | GAP_PPCP_CONN_INTV_MAX 0x0064 |
GAP Peripheral Preferred Connection Parameter - 8 octets. | |
Functions | |
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.
#define GAP_ADV_FAST_INTV1 0x0030 |
Minimum to maximum advertisement interval in any discoverable or connectable mode when user initiated: TGAP(adv_fast_interval1) recommended value: 30 to 60 ms; N * 0.625
#define GAP_ADV_FAST_INTV2 0x0064 |
Minimum to maximum advertisement interval in any discoverable or connectable mode when user initiated: TGAP(adv_fast_interval2) recommended value: 100 to 150 ms; N * 0.625
#define GAP_ADV_SLOW_INTV 0x00B0 |
Minimum to maximum advertisement interval in any discoverable or connectable mode when background advertising: TGAP(adv_slow_interval) recommended value: 1 to 1.2 s : 0x00B0 (176); N * 0.625
#define GAP_APPEARANCE 0x0000 |
GAP Appearance or Icon Characteristic - 2 octets Current appearance value is 0x0000 (unknown appearance) Description: http://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.gap.appearance.xml
#define GAP_CONN_LATENCY 0x0000 |
Connection latency default value: 0x0000
#define GAP_CONN_MAX_CE 0xFFFF |
Maximum connection event default value: 0xFFFF
#define GAP_CONN_MIN_CE 0x0000 |
Minimum connection event default value: 0x0000
#define GAP_CONN_SUPERV_TIMEOUT 0x07D0 |
Connection supervision timeout recommended value: 20s
#define GAP_INIT_CONN_MIN_INTV 0x0018 |
Minimum to maximum connection interval upon any connection establishment: TGAP(initial_conn_interval) recommended value: 30 to 50 ms ; N * 1.25 ms
#define GAP_LIM_DISC_SCAN_INT 0x0012 |
Scan interval used during Link Layer Scanning State when performing the Limited Discovery procedure TGAP(lim_disc_scan_int) recommended value: 11.25ms; (18 decimal)
#define GAP_SCAN_FAST_INTV 0x0030 |
Scan interval in any discovery or connection establishment procedure when user initiated: TGAP(scan_fast_interval) recommended value: 30 to 60 ms; N * 0.625
#define GAP_SCAN_FAST_WIND 0x0030 |
Scan window in any discovery or connection establishment procedure when user initiated: TGAP(scan_fast_window) recommended value: 30 ms; N * 0.625
#define GAP_SCAN_SLOW_INTV1 0x00CD |
Scan interval in any discovery or connection establishment procedure when background scanning: TGAP(scan_slow_interval1) recommended value: 1.28 s : 0x00CD (205); N * 0.625
#define GAP_SCAN_SLOW_INTV2 0x019A |
Scan interval in any discovery or connection establishment procedure when background scanning: TGAP(scan_slow_interval2) recommended value: 2.56 s : 0x019A (410); N * 0.625
#define GAP_SCAN_SLOW_WIND1 0x0012 |
Scan window in any discovery or connection establishment procedure when background scanning: TGAP(scan_slow_window1) recommended value: 11.25 ms : 0x0012 (18); N * 0.625
#define GAP_SCAN_SLOW_WIND2 0x0024 |
Scan window in any discovery or connection establishment procedure when background scanning: TGAP(scan_slow_window2) recommended value: 22.5 ms : 0x0024 (36); N * 0.625
#define GAP_TMR_ADV_FAST_PERIOD 0x0BB8 |
Minimum time to perform advertising when user initiated TGAP(adv_fast_period) recommended value: 30 s: (3000 for ke timer)
#define GAP_TMR_CONN_PAUSE_CT 0x0064 |
Central idle timer TGAP(conn_pause_central) recommended value: 1 s: (100 for ke timer)
#define GAP_TMR_CONN_PAUSE_PH 0x01F4 |
Minimum time upon connection establishment before the peripheral starts a connection update procedure: TGAP(conn_pause_peripheral) recommended value: 5 s: (500 for ke timer)
#define GAP_TMR_SCAN_FAST_PERIOD 0x0C00 |
Minimum time to perform scanning when user initiated TGAP(scan_fast_period) recommended value: 30.72 s: (3072 for ke timer)
enum adv_report_type |
enum ble_actv_type |
enum ble_ad_type |
GAP Advertising Flags.
enum ble_addr_type |
enum ble_adv_disc_mode |
enum ble_adv_ext_prop |
Advertising properties for extended advertising.
enum ble_adv_filt_pol |
Advertising filter policy.
enum ble_adv_legacy_prop |
Advertising properties legacy advertising.
enum ble_adv_per_prop |
enum ble_adv_prop |
Advertising properties.
enum ble_adv_report_info |
enum ble_adv_type |
enum ble_auth |
Authentication Requirements.
enum ble_auth_mask |
enum ble_bond |
Bond request/event type.
enum ble_clk_acc |
enum ble_coded_phy_opt |
LE CODED PHY option.
enum ble_dev_info |
enum ble_disc_reason |
Disconnect reason code.
enum ble_get_dev_info_cmd |
get device local info command.
enum ble_initiator_prop |
Initiator Properties.
enum ble_initiator_type |
Initiator Types.
enum ble_io_cap |
enum ble_kdist |
enum ble_keypress_state |
enum ble_lk_sec_lvl |
enum ble_modulation_idx |
enum ble_oob |
enum ble_pairing_mode |
enum ble_per_sync_type |
enum ble_phy |
enum ble_phy_value |
enum ble_pkt_pld_type |
Packet Payload type for test mode.
enum ble_priv_cfg |
enum ble_rnd_addr_type |
enum ble_role |
enum ble_scan_dup_filt |
enum ble_scan_prop |
Scan properties.
enum ble_scan_type |
enum ble_sec_req |
Security Defines.
enum ble_test_phy |
enum ble_tk_type |
enum ble_write_att_perm |
Device Attribute write permission requirement.
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.
[in] | p_act | Pointer to activity create structure, |
[out] | p_actv_idx | Pointer to return activity index, |
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.
[in] | actv_idx | Activity index return from "Create" call, |
[in] | option | Data options: 0 - advertising data, 1 - scan response data, 2 - periodic advertising data |
[in] | data | Pointer to the data, |
[in] | data_len | data length. |
int in_ble_actv_del | ( | void * | hdl, |
int | actv_idx, | ||
comp_cb | callback | ||
) |
Delete an activity or all activities.
[in] | actv_idx | Activity index return from "Create" call, If 0, delete all activities |
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.
[in] | actv_idx | Activity index return from "Create" call, |
[in] | p_start | Pointer to start activity data strucutre, |
int in_ble_actv_stop | ( | void * | hdl, |
int | actv_idx, | ||
comp_cb | callback | ||
) |
Stop an activity or all activities.
[in] | actv_idx | Activity index return from "Create" call, If 0, stop all activities |
int in_ble_aes_enc | ( | void * | hdl, |
ble_aes_enc_t * | p_enc, | ||
uint8_t * | p_enc_res, | ||
comp_cb | callback | ||
) |
AES-128 calculation.
[in] | p_enc | Pointer to the key and plain text structure. |
[out] | p_enc_res | 16 bytes array of calculated result, |
int in_ble_conn_bond | ( | void * | hdl, |
int | conidx, | ||
ble_pairing_t * | p_bond, | ||
comp_cb | callback | ||
) |
Initiate bond.
[in] | conidx | Connection index |
[in] | p_bond | Pointer to pairing requirement of initiator. |
int in_ble_conn_bond_cfm | ( | void * | hdl, |
int | conidx, | ||
ble_bond_cfm_t * | p_cfm | ||
) |
Confirm bond request.
[in] | conidx | Connection index |
[in] | p_cfm | Pointer to bond confirm data structure. |
int in_ble_conn_cfm | ( | void * | hdl, |
int | conidx, | ||
ble_conn_cfm_t * | p_cfm | ||
) |
Confirm connection request.
[in] | conidx | Connection index. |
[in] | p_cfm | Pointer to the confirm data structure. |
int in_ble_conn_disconnect | ( | void * | hdl, |
int | conidx, | ||
uint32_t | reason, | ||
comp_cb | callback | ||
) |
Disconnect a link.
[in] | conidx | Connection index. |
[in] | reason | Reason of disconnection, |
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.
[in] | conidx | Connection index |
[in] | p_cfm | req, |
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.
[in] | conidx | Connection index |
[in] | option | Options for connection information: 0 - Peer Name, 1 - Peer Version, 2 - Peer Features, 3 - Connection RSSI, 4 - Connection Channel Map, 5 - Peer Apperance, 6 - Peer Slaved Prefered Paramters, 7 - Address Resolution Supported (Central Only), 8 - LE Ping Time Out Value, 9 - Connection PHY, 10 - Connection Channel Selected algorithm, |
[out] | p_peer_info | Pointer to union for different info. |
int in_ble_conn_keypress_notify | ( | void * | hdl, |
int | conidx, | ||
int | key_state, | ||
comp_cb | callback | ||
) |
Send a keypress to peer.
[in] | conidx | Connection index |
[in] | key_state | Key state, |
int in_ble_conn_param_update | ( | void * | hdl, |
int | conidx, | ||
ble_conn_param_update_t * | p_upd, | ||
comp_cb | callback | ||
) |
Update connection paramters.
[in] | conidx | Connection index |
[in] | p_upd | Pointer to update parameters structure. |
int in_ble_conn_param_update_cfm | ( | void * | hdl, |
int | conidx, | ||
bool | accept | ||
) |
Confirm updated paramters.
[in] | conidx | Connection index |
[in] | accept | true: accept slave's connection parameters; false: otherwise. |
int in_ble_conn_req_encrypt | ( | void * | hdl, |
int | conidx, | ||
ble_ltk_t * | p_ltk, | ||
comp_cb | callback | ||
) |
Initiate encryption procedure.
[in] | conidx | Connection index |
[in] | p_ltk | Pointer to LTK data structure. |
int in_ble_conn_req_encrypt_cfm | ( | void * | hdl, |
int | conidx, | ||
ble_conn_encrypt_cfm_t * | p_cfm | ||
) |
Confirm master's encryption request.
[in] | conidx | Connection index |
[in] | p_cfm | Pointer to LTK confirm data structure. |
int in_ble_conn_req_security | ( | void * | hdl, |
int | conidx, | ||
int | auth, | ||
comp_cb | callback | ||
) |
Initiate security request procedure.
[in] | conidx | Connection index |
[in] | auth | Authentication level requested, |
int in_ble_conn_set_ping_tmo | ( | void * | hdl, |
int | conidx, | ||
uint32_t | timeout, | ||
comp_cb | callback | ||
) |
Set LE ping time out value.
[in] | conidx | Connection index |
[in] | timeout | Authenticated payload time out value N, value time = N * 10ms. |
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.
[in] | conidx | Connection index |
[in] | p_pref_pkt_size | Pointer to prefered packet size data structure. |
[out] | p_pkt_size | Pointer to controller final packet size data structure. |
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.
[in] | conidx | Connection index |
[in] | p_phy | Pointer to prefered PHY data structure. |
[out] | p_phy_ind | Pointer to final PHY data structure. |
int in_ble_gen_random_addr | ( | void * | hdl, |
int | rnd_addr_type, | ||
ble_bdaddr_t * | p_rnd_addr, | ||
comp_cb | callback | ||
) |
Generate random address.
[in] | rnd_addr_type | random address type, |
[out] | p_rnd_addr | Pointer to the generated random address, |
int in_ble_gen_random_nb | ( | void * | hdl, |
ble_rnd_nb_t * | p_rnd_nb, | ||
comp_cb | callback | ||
) |
Generate a 8 bytes random number.
[out] | p_rnd_nb | 8 bytes array of calculated result, |
int in_ble_get_chn_assess | ( | void * | hdl, |
int | chn, | ||
int8_t * | level, | ||
uint32_t * | timestamp | ||
) |
Get channel assess data.
[in] | chn | Data channel, from 0 to 36. |
[out] | level | Level |
[out] | timestamp | Timestamp when update level |
int in_ble_get_dev_info | ( | void * | hdl, |
int | cmd, | ||
ble_local_dev_info_t * | p_info, | ||
comp_cb | callback | ||
) |
Get local device informations.
[in] | cmd | Command for information, |
[out] | p_info | Pointer to a union for different info, |
int in_ble_get_pub_key | ( | void * | hdl, |
int | renew, | ||
ble_pub_key_t * | p_pub_key, | ||
comp_cb | callback | ||
) |
get public key
[in] | renew | 1 to renew public/private key pair, 0 to read current value |
[out] | p_pub_key | public key |
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.
[in] | p_ral_addr | Pointer to peer device identity, |
[out] | p_addr | Pointer to the last resolvable private address, |
int in_ble_register_lepsm | ( | void * | hdl, |
ble_lepsm_param_t * | p_psm, | ||
comp_cb | callback | ||
) |
Register a LE Protocol/Service Multiplexer identified.
[in] | p_psm | Pointer to a LEPSM data structure, |
int in_ble_reset | ( | void * | hdl, |
comp_cb | callback | ||
) |
Reset BLE stack.
[in] | hdl | Ble stack handle; return from the stack initialization |
[in] | callback | API completed callback function; NUL means blocking call. |
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.
[in] | p_rnd_addr | Pointer to the random address and possible keys, |
[out] | p_addr | Pointer to the resolved random address and keys, |
int in_ble_set_chn_map | ( | void * | hdl, |
ble_chnl_map_t * | p_chn_map, | ||
comp_cb | callback | ||
) |
Set channel map.
[in] | p_chn_map | Pointer to the channel map array. |
int in_ble_set_dev_config | ( | void * | hdl, |
ble_set_dev_config_t * | p_cfg, | ||
comp_cb | callback | ||
) |
Set device configuration.
[in] | p_cfg | Pointer to the device configurtion structure. |
int in_ble_set_irk | ( | void * | hdl, |
ble_sec_key_t * | p_irk, | ||
comp_cb | callback | ||
) |
Change the current IRK for a renewed one.
[out] | p_irk | Pointer to a security key data structure, |
int in_ble_set_pal_list | ( | void * | hdl, |
ble_pal_param_t * | p_pal, | ||
comp_cb | callback | ||
) |
Set the peroidic advertiser list content.
[in] | p_pal | Pointer to periodic advertiser list data structure, |
int in_ble_set_ral_list | ( | void * | hdl, |
ble_ral_param_t * | p_ral, | ||
comp_cb | callback | ||
) |
Set the resolving list content.
[in] | p_ral | Pointer to resolving list data structure, |
int in_ble_set_white_list | ( | void * | hdl, |
ble_wl_param_t * | p_wlist, | ||
comp_cb | callback | ||
) |
Set the white list content.
[in] | p_wlist | Pointer to white list data structure, |
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.
[in] | p_test | Pointer to the test mode structure. |
[out] | nb_rx_packet | Pointer to the nb of packets receive for RX test operation |
int in_ble_unregister_lepsm | ( | void * | hdl, |
uint32_t | psm, | ||
comp_cb | callback | ||
) |
Un-register a LE Protocol/Service Multiplexer identified.
[in] | psm | LE Protoca/Service Multiplexer (16 bits), |