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.
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.
@ 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.