This module performs serial input/output functionalities via UART.
Functions | |
void | sio2host_deinit (void) |
DeInitializes the Serial IO Module. More... | |
void | sio2host_disable (void) |
Disables the Serial IO Module. More... | |
void | sio2host_enable (void) |
Enables the Serial IO Module. More... | |
uint8_t | sio2host_getchar (void) |
This function performs a blocking character receive functionality. More... | |
int | sio2host_getchar_nowait (void) |
This function performs a non-blocking character receive functionality. More... | |
void | sio2host_init (void) |
Initializes the Serial IO Module. More... | |
void | sio2host_putchar (uint8_t) |
This function prints the character to the host. More... | |
uint8_t | sio2host_rx (uint8_t *data, uint8_t max_length) |
Receives data from UART. More... | |
uint8_t | sio2host_tx (uint8_t *data, uint8_t length) |
Transmits data via UART. More... | |
void sio2host_deinit | ( | void | ) |
DeInitializes the Serial IO Module.
void sio2host_disable | ( | void | ) |
Disables the Serial IO Module.
void sio2host_enable | ( | void | ) |
Enables the Serial IO Module.
uint8_t sio2host_getchar | ( | void | ) |
This function performs a blocking character receive functionality.
References sio2host_rx().
Referenced by main(), print_ch_change_submenu(), print_sub_mode_ch_ag_setup(), print_unpair_submenu(), and print_vendor_data_submenu().
int sio2host_getchar_nowait | ( | void | ) |
This function performs a non-blocking character receive functionality.
References sio2host_rx().
Referenced by app_task(), print_sub_mode_ch_ag_setup(), range_test_tx_off_task(), and range_test_tx_on_task().
void sio2host_init | ( | void | ) |
Initializes the Serial IO Module.
Initializes the Serial IO Module.
References stdio_serial_init(), and stdio_usb_init().
Referenced by main(), performance_analyzer_init(), serial_bridge_init(), serial_interface_init(), and wsndemo_init().
void sio2host_putchar | ( | uint8_t | ) |
This function prints the character to the host.
References sio2host_tx().
Referenced by APP_TaskHandler(), appDataInd(), appPrintEdValues(), and appUartSendMessage().
uint8_t sio2host_rx | ( | uint8_t * | data, |
uint8_t | max_length | ||
) |
Receives data from UART.
data | pointer to the buffer where the received data is to be stored |
max_length | maximum length of data to be received |
Receives data from UART.
data | pointer to the buffer where the received data is to be stored |
max_length | maximum length of data to be received |
References serial_rx_buf, serial_rx_buf_head, serial_rx_buf_tail, and serial_rx_count.
Referenced by APP_TaskHandler(), serial_bridge_handler(), serial_data_handler(), sio2host_getchar(), and sio2host_getchar_nowait().
uint8_t sio2host_tx | ( | uint8_t * | data, |
uint8_t | length | ||
) |
Transmits data via UART.
data | Pointer to the buffer where the data to be transmitted is present |
length | Number of bytes to be transmitted |
Transmits data via UART.
data | Pointer to the buffer where the data to be transmitted is present |
length | Number of bytes to be transmitted |
References length, status, status_code_genare_t, STATUS_OK, udi_cdc_putc(), and usart_serial_write_packet().
Referenced by serial_bridge_handler(), serial_data_handler(), and sio2host_putchar().