dotstack API Reference
1.10.37
|
Functions | |
void | bt_hcitr_uart_init (void) |
Initialize HCI UART (H4) transport protocol. More... | |
void | bt_hcitr_uart_reset (void) |
Re-initialize HCI UART (H4) transport protocol. More... | |
void | bt_hcitr_uart_start (void) |
Start HCI UART (H4) transport protocol. More... | |
This module describes functions used to initialize and start HCI UART transport protocol. The transport uses common interface for exchanging data between the host CPU and HCI controller defined in bt_hcitr.h. This interface consist of two functions that must be implemented by the application:
void bt_hcitr_uart_init | ( | void | ) |
Initialize HCI UART (H4) transport protocol.
This function initializes internal structures of the transport. The application must call it as early as possible before bt_hcitr_uart_start and before the stack is initialized and started with bt_sys_init and bt_sys_start.
void bt_hcitr_uart_reset | ( | void | ) |
Re-initialize HCI UART (H4) transport protocol.
This function re-initializes the transport. Currently it simply calls bt_hcitr_uart_init. After calling this function the application must perform the full initialization of the stack by calling bt_sys_init, bt_sys_start and initialization functions of all other profile modules the application is intending to use.
void bt_hcitr_uart_start | ( | void | ) |
Start HCI UART (H4) transport protocol.
This function starts the transport, i.e., makes it able to receive and send packets.