void mmhal_uart_tx(const uint8_t *data, size_t length)
Transmit data on the UART.
void(* mmhal_uart_rx_cb_t)(const uint8_t *data, size_t length, void *arg)
Function type for UART RX callback.
void mmhal_uart_deinit(void)
Deinitialize the UART HAL, and disable the UART.
mmhal_uart_deep_sleep_mode
Enumeration of deep sleep modes for the UART HAL.
bool mmhal_uart_validate_config(const struct mmhal_uart_config *config)
Validate the given UART configuration options struct.
void mmhal_uart_init(mmhal_uart_rx_cb_t rx_cb, void *rx_cb_arg)
Initialize the UART HAL and perform any setup necessary.
bool mmhal_uart_set_deep_sleep_mode(enum mmhal_uart_deep_sleep_mode mode)
Set the deep sleep mode for the UART.
bool mmhal_uart_configure(const struct mmhal_uart_config *config)
Configure the UART to change the current operation.
@ MMHAL_UART_DEEP_SLEEP_ONE_SHOT
Enable deep sleep until activity occurs on data-link transport.
@ MMHAL_UART_DEEP_SLEEP_DISABLED
Deep sleep mode is disabled.
Configuration to use for a UART peripheral.
bool hw_flow_ctrl_en
Whether or not hardware flow control will be used (RTS/CTS).
uint32_t baudrate
The baud rate to run the UART peripheral at.