Functions | |
uint16_t | ble_stack_init (ble_evt_handler_t evt_handler, stack_heaps_table_t *p_heaps_table) |
Initialize BLE Stack. More... | |
void | ble_stack_controller_init (stack_heaps_table_t *p_heaps_table) |
Initialize only BLE Stack Controller. More... | |
void | ble_hci_uart_register (uint8_t id, hci_uart_call_t *api) |
Register UART instance for HCI. More... | |
void | ble_idle_time_notify_cb_register (void(*callback)(uint32_t hs)) |
Register BLE idle time notification callback function. More... | |
void | ble_activity_start_notify_cb_register (void(*callback)(ble_gap_actv_role_t e_role, uint8_t index)) |
Register BLE activity start notification callback function. More... | |
void | ble_activity_end_notify_cb_register (void(*callback)(ble_gap_actv_role_t e_role, uint8_t index)) |
Register BLE activity end notification callback function. More... | |
uint16_t | ble_sync_source_create (uint16_t period) |
Create sync source. More... | |
uint16_t | ble_sync_evt_cb_register (ble_sync_evt_cb_t sync_evt_cb) |
Register sync event callback. More... | |
uint16_t | ble_sync_source_distribute (uint8_t conn_idx) |
Distribute sync source. More... | |
uint16_t | ble_sync_source_destroy (void) |
Destroy sync source. More... | |
uint8_t | ble_rf_tx_mode_set (ble_rf_tx_mode_t e_rf_tx_mode) |
Change the RF TX mode of LP or ULP. More... | |
ble_rf_tx_mode_t | ble_rf_tx_mode_get (void) |
Get the RF TX mode of LP or ULP. More... | |
void | ble_rf_match_circuit_set (ble_rf_match_circuit_t e_ohm) |
Set the resistance value of the RF match circuit (unit: ohm). More... | |
ble_rf_match_circuit_t | ble_rf_match_circuit_get (void) |
Get the resistance value of the RF match circuit (unit: ohm). More... | |
void | send_signal_carrier_wave (uint8_t channel) |
Generate a signal carrier wave. More... | |
void ble_activity_end_notify_cb_register | ( | void(*)(ble_gap_actv_role_t e_role, uint8_t index) | callback | ) |
Register BLE activity end notification callback function.
[in] | callback | function pointer of BLE activity end notification function. |
void ble_activity_start_notify_cb_register | ( | void(*)(ble_gap_actv_role_t e_role, uint8_t index) | callback | ) |
Register BLE activity start notification callback function.
[in] | callback | function pointer of BLE activity start notification function. |
void ble_hci_uart_register | ( | uint8_t | id, |
hci_uart_call_t * | api | ||
) |
Register UART instance for HCI.
[in] | id | Instance index. |
[in] | api | Pointer to the struct of function pointers for HCI UART. |
void ble_idle_time_notify_cb_register | ( | void(*)(uint32_t hs) | callback | ) |
Register BLE idle time notification callback function.
[in] | callback | function pointer of BLE idle time notification function. |
ble_rf_match_circuit_t ble_rf_match_circuit_get | ( | void | ) |
Get the resistance value of the RF match circuit (unit: ohm).
void ble_rf_match_circuit_set | ( | ble_rf_match_circuit_t | e_ohm | ) |
Set the resistance value of the RF match circuit (unit: ohm).
[in] | e_ohm | The resistance value (ohm) of the RF match circuit according to the board. BLE_RF_MATCH_CIRCUIT_25OHM: 25 ohm. BLE_RF_MATCH_CIRCUIT_100OHM: 100 ohm. Others: invalid. |
ble_rf_tx_mode_t ble_rf_tx_mode_get | ( | void | ) |
Get the RF TX mode of LP or ULP.
uint8_t ble_rf_tx_mode_set | ( | ble_rf_tx_mode_t | e_rf_tx_mode | ) |
Change the RF TX mode of LP or ULP.
[in] | e_rf_tx_mode | Refer to ble_rf_tx_mode_t. BLE_RF_TX_MODE_LP_MODE: LP mode. BLE_RF_TX_MODE_ULP_MODE: ULP mode. Others: invalid mode. |
void ble_stack_controller_init | ( | stack_heaps_table_t * | p_heaps_table | ) |
Initialize only BLE Stack Controller.
[in] | p_heaps_table | Pointer to the BLE stack heaps table. |
uint16_t ble_stack_init | ( | ble_evt_handler_t | evt_handler, |
stack_heaps_table_t * | p_heaps_table | ||
) |
Initialize BLE Stack.
[in] | evt_handler | Pointer to ble events handler. |
[in] | p_heaps_table | Pointer to the BLE stack heaps table. |
uint16_t ble_sync_evt_cb_register | ( | ble_sync_evt_cb_t | sync_evt_cb | ) |
Register sync event callback.
[in] | sync_evt_cb | Sync event callback. |
uint16_t ble_sync_source_create | ( | uint16_t | period | ) |
Create sync source.
[in] | period | Period of sync source. |
uint16_t ble_sync_source_destroy | ( | void | ) |
Destroy sync source.
uint16_t ble_sync_source_distribute | ( | uint8_t | conn_idx | ) |
Distribute sync source.
[in] | conn_idx | The connection index. |
void send_signal_carrier_wave | ( | uint8_t | channel | ) |
Generate a signal carrier wave.
[in] | channel | 0~39 channel, 2402~2480 Mhz. |