Functions | |
| uint16_t | app_uart_init (app_uart_params_t *p_params, app_uart_evt_handler_t evt_handler, app_uart_tx_buf_t *tx_buffer) |
| Initialize the APP UART DRIVER according to the specified parameters in the app_uart_params_t and app_uart_evt_handler_t. More... | |
| uint16_t | app_uart_deinit (app_uart_id_t id) |
| De-initialize the APP UART DRIVER peripheral. More... | |
| uint16_t | app_uart_transmit_async (app_uart_id_t id, uint8_t *p_data, uint16_t size) |
| Send an amount of data in interrupt mode. More... | |
| uint16_t | app_uart_transmit_sync (app_uart_id_t id, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Send an amount of data in blocking mode. More... | |
| uint16_t | app_uart_receive_async (app_uart_id_t id, uint8_t *p_data, uint16_t size) |
| Receive an amount of data in interrupt mode. More... | |
| uint16_t | app_uart_receive_sync (app_uart_id_t id, uint8_t *p_data, uint16_t size, uint32_t timeout) |
| Receive an amount of data in blocking mode. More... | |
| uart_handle_t * | app_uart_get_handle (app_uart_id_t id) |
| Return the UART handle. More... | |
| void | app_uart_flush (app_uart_id_t id) |
| Flush all log entries from the buffer. More... | |
| uint16_t app_uart_deinit | ( | app_uart_id_t | id | ) |
De-initialize the APP UART DRIVER peripheral.
| [in] | id | De-initialize for a specific ID. |
| void app_uart_flush | ( | app_uart_id_t | id | ) |
Flush all log entries from the buffer.
| [in] | id | UART Channel ID. |
| uart_handle_t* app_uart_get_handle | ( | app_uart_id_t | id | ) |
Return the UART handle.
| [in] | id | UART Channel ID. |
| uint16_t app_uart_init | ( | app_uart_params_t * | p_params, |
| app_uart_evt_handler_t | evt_handler, | ||
| app_uart_tx_buf_t * | tx_buffer | ||
| ) |
Initialize the APP UART DRIVER according to the specified parameters in the app_uart_params_t and app_uart_evt_handler_t.
| [in] | p_params | Pointer to app_uart_params_t parameter which contains the configuration information for the specified UART module. |
| [in] | evt_handler | UART user callback function. |
| [in] | tx_buffer | Pointer to tx send buffer. |
| uint16_t app_uart_receive_async | ( | app_uart_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Receive an amount of data in interrupt mode.
| [in] | id | which UART module want to transmit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_uart_receive_sync | ( | app_uart_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Receive an amount of data in blocking mode.
| [in] | id | which UART module want to transmit. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |
| uint16_t app_uart_transmit_async | ( | app_uart_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size | ||
| ) |
Send an amount of data in interrupt mode.
| [in] | id | which UART module want to receive. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| uint16_t app_uart_transmit_sync | ( | app_uart_id_t | id, |
| uint8_t * | p_data, | ||
| uint16_t | size, | ||
| uint32_t | timeout | ||
| ) |
Send an amount of data in blocking mode.
| [in] | id | which UART module want to receive. |
| [in] | p_data | Pointer to data buffer |
| [in] | size | Amount of data to be sent |
| [in] | timeout | Timeout duration |