Contiki-NG
|
The structure of a ble radio controller driver in Contiki. More...
#include <os/dev/ble-hal.h>
Data Fields | |
ble_result_t(* | reset )(void) |
Resets the BLE controller. | |
ble_result_t(* | read_bd_addr )(uint8_t *addr) |
Reads the static BLE device address. | |
ble_result_t(* | read_buffer_size )(unsigned int *buf_len, unsigned int *num_buf) |
Reads the size of the data buffers. | |
ble_result_t(* | set_adv_param )(unsigned int adv_interval, ble_adv_type_t type, ble_addr_type_t own_addr_type, unsigned short adv_channel_map) |
Sets the parameter for advertising. | |
ble_result_t(* | read_adv_channel_tx_power )(short *power) |
Reads the used power on the advertisement channels. | |
ble_result_t(* | set_adv_data )(unsigned short data_len, char *data) |
Sets the advertising data. | |
ble_result_t(* | set_scan_resp_data )(unsigned short data_len, char *data) |
Sets the scan response data. | |
ble_result_t(* | set_adv_enable )(unsigned short enable) |
Enables/disables advertising. | |
ble_result_t(* | set_scan_param )(ble_scan_type_t type, unsigned int scan_interval, unsigned int scan_window, ble_addr_type_t own_addr_type) |
Sets the parameter for scanning. | |
ble_result_t(* | set_scan_enable )(unsigned short enable, unsigned short filter_duplicates) |
Enables/disables scanning. | |
ble_result_t(* | create_connection )(unsigned int scan_interval, unsigned int scan_window, ble_addr_type_t peer_addr_type, uint8_t *peer_addr, ble_addr_type_t own_addr_type, unsigned int conn_interval, unsigned int conn_latency, unsigned int supervision_timeout) |
Initiates the creation of a BLE connection. | |
ble_result_t(* | create_connection_cancel )(void) |
Cancels the initiation of a BLE connection. | |
ble_result_t(* | connection_update )(unsigned int connection_handle, unsigned int conn_interval, unsigned int conn_latency, unsigned int supervision_timeout) |
Updates the connection parameters. | |
ble_result_t(* | disconnect )(unsigned int connection_handle, unsigned short reason) |
Disconnects the connection. | |
The structure of a ble radio controller driver in Contiki.
ble_result_t(* ble_hal_driver::connection_update) (unsigned int connection_handle, unsigned int conn_interval, unsigned int conn_latency, unsigned int supervision_timeout) |
ble_result_t(* ble_hal_driver::create_connection) (unsigned int scan_interval, unsigned int scan_window, ble_addr_type_t peer_addr_type, uint8_t *peer_addr, ble_addr_type_t own_addr_type, unsigned int conn_interval, unsigned int conn_latency, unsigned int supervision_timeout) |
Initiates the creation of a BLE connection.
scan_interval | scan interval (interval = scan_interval * 0.625 ms) |
scan_window | scan window (window = scan_window * 0.625 ms) |
peer_addr_type | indicator if peer address is public/random |
peer_addr | ble address of the device to connect to |
own_addr_type | indicator if own address is public/random |
conn_interval | connection interval (interval = conn_interval * 1.25 ms) |
conn_latency | slave latency |
supervision_timeout | (timeout = supervision_timeout * 10 ms) |
ble_result_t(* ble_hal_driver::disconnect) (unsigned int connection_handle, unsigned short reason) |
ble_result_t(* ble_hal_driver::read_adv_channel_tx_power) (short *power) |
ble_result_t(* ble_hal_driver::read_bd_addr) (uint8_t *addr) |
ble_result_t(* ble_hal_driver::read_buffer_size) (unsigned int *buf_len, unsigned int *num_buf) |
ble_result_t(* ble_hal_driver::set_adv_data) (unsigned short data_len, char *data) |
ble_result_t(* ble_hal_driver::set_adv_enable) (unsigned short enable) |
ble_result_t(* ble_hal_driver::set_adv_param) (unsigned int adv_interval, ble_adv_type_t type, ble_addr_type_t own_addr_type, unsigned short adv_channel_map) |
ble_result_t(* ble_hal_driver::set_scan_enable) (unsigned short enable, unsigned short filter_duplicates) |
ble_result_t(* ble_hal_driver::set_scan_param) (ble_scan_type_t type, unsigned int scan_interval, unsigned int scan_window, ble_addr_type_t own_addr_type) |