#include <btstack_uart_block.h>
Data Fields | |
int(* | close )(void) |
close transport connection More... | |
int(* | get_supported_sleep_modes )(void) |
query supported wakeup mechanisms More... | |
int(* | init )(const btstack_uart_config_t *uart_config) |
init transport More... | |
int(* | open )(void) |
open transport connection More... | |
void(* | receive_block )(uint8_t *buffer, uint16_t len) |
receive block More... | |
void(* | send_block )(const uint8_t *buffer, uint16_t length) |
send block More... | |
int(* | set_baudrate )(uint32_t baudrate) |
set baudrate More... | |
void(* | set_block_received )(void(*block_handler)(void)) |
set callback for block received. More... | |
void(* | set_block_sent )(void(*block_handler)(void)) |
set callback for sent. More... | |
int(* | set_flowcontrol )(int flowcontrol) |
set flowcontrol More... | |
int(* | set_parity )(int parity) |
set parity More... | |
void(* | set_sleep )(btstack_uart_sleep_mode_t sleep_mode) |
set UART sleep mode - allows to turn off UART and it's clocks to save energy Supported sleep modes: More... | |
void(* | set_wakeup_handler )(void(*wakeup_handler)(void)) |
set wakeup handler - needed to notify hci transport of wakeup requests by Bluetooth controller Called upon CTS pulse or RX data. More... | |
int(* btstack_uart_block_t::close)(void) |
close transport connection
Referenced by hci_transport_h4_close(), and hci_transport_h5_close().
int(* btstack_uart_block_t::get_supported_sleep_modes)(void) |
query supported wakeup mechanisms
Referenced by hci_transport_h5_open().
int(* btstack_uart_block_t::init)(const btstack_uart_config_t *uart_config) |
init transport
uart_config |
Referenced by bt_task(), hci_transport_h4_init(), hci_transport_h5_init(), and main().
int(* btstack_uart_block_t::open)(void) |
open transport connection
Referenced by btstack_chipset_atwilc3000_download_firmware(), hci_transport_h4_open(), and hci_transport_h5_open().
void(* btstack_uart_block_t::receive_block)(uint8_t *buffer, uint16_t len) |
void(* btstack_uart_block_t::send_block)(const uint8_t *buffer, uint16_t length) |
send block
Referenced by atwilc3000_send_command(), atwilc3000_write_firmware(), atwilc3000_write_memory(), hci_transport_h4_send_packet(), and hci_transport_slip_encode_chunk_and_send().
int(* btstack_uart_block_t::set_baudrate)(uint32_t baudrate) |
set baudrate
Referenced by atwilc3000_configure_uart(), atwilc3000_done(), atwilc3000_w4_baudrate_update(), hci_transport_h4_set_baudrate(), and hci_transport_h5_set_baudrate().
void(* btstack_uart_block_t::set_block_received)(void(*block_handler)(void)) |
set callback for block received.
NULL disables callback
Referenced by atwilc3000_configure_uart(), atwilc3000_start(), atwilc3000_update_uart_params(), atwilc3000_w4_command_complete_reset(), atwilc3000_write_firmware(), hci_transport_h4_init(), and hci_transport_h5_init().
void(* btstack_uart_block_t::set_block_sent)(void(*block_handler)(void)) |
set callback for sent.
NULL disables callback
Referenced by atwilc3000_vendor_specific_reset(), atwilc3000_wait_for_reset_completed(), atwilc3000_write_firmware(), atwilc3000_write_memory(), hci_transport_h4_init(), and hci_transport_h5_init().
int(* btstack_uart_block_t::set_flowcontrol)(int flowcontrol) |
set flowcontrol
Referenced by atwilc3000_configure_uart(), and atwilc3000_done().
int(* btstack_uart_block_t::set_parity)(int parity) |
set parity
Referenced by hci_transport_h5_open(), and hci_transport_h5_process_frame().
void(* btstack_uart_block_t::set_sleep)(btstack_uart_sleep_mode_t sleep_mode) |
set UART sleep mode - allows to turn off UART and it's clocks to save energy Supported sleep modes:
Referenced by hci_transport_h5_block_sent(), hci_transport_h5_process_frame(), and hci_transport_h5_send_packet().
void(* btstack_uart_block_t::set_wakeup_handler)(void(*wakeup_handler)(void)) |
set wakeup handler - needed to notify hci transport of wakeup requests by Bluetooth controller Called upon CTS pulse or RX data.
See sleep modes.