Handles Serial I/O Functionalities For the Host Device.
Copyright (c) 2013-2020 Microchip Technology Inc. and its subsidiaries.
Functions | |
cpu_irq_disable () | |
cpu_irq_enable () | |
if ((SERIAL_RX_BUF_SIZE_HOST-1)==serial_rx_buf_tail) | |
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 ch) |
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... | |
usart_serial_read_packet (USART_HOST,&temp, 1) | |
Variables | |
else | |
static uint8_t | serial_rx_buf [SERIAL_RX_BUF_SIZE_HOST] = temp |
Receive buffer The buffer size is defined in sio2host.h. More... | |
static uint8_t | serial_rx_buf_head |
Receive buffer head. More... | |
static uint8_t | serial_rx_buf_tail |
Receive buffer tail. More... | |
static uint8_t | serial_rx_count |
Number of bytes in receive buffer. More... | |
static usart_serial_options_t | usart_serial_options |
cpu_irq_disable | ( | ) |
cpu_irq_enable | ( | ) |
if | ( | (SERIAL_RX_BUF_SIZE_HOST-1) | = = serial_rx_buf_tail | ) |
References serial_rx_buf_tail.
Referenced by _adc_interrupt_handler(), _http_client_handle_entity(), _http_client_read_chuked_entity(), _tcc_build_faults(), app_task(), appDataInd(), bod33_set_config(), build_data_frame(), chk_mounted(), f_lseek(), gfx_mono_spinctrl_spincollection_add_spinner(), handle_gts_data_req(), ieee11073_decode_metadata(), mac_parse_bcn_gts_info(), mac_ready_to_sleep(), nwkRxRejectDuplicate(), nwkTxAckReceived(), pbuf_header(), peer_search_receptor_rx_cb(), peer_search_receptor_task(), peer_search_receptor_tx_done_cb(), TRNG_Handler(), uhi_msc_scsi_test_unit_ready_sense(), usb_host_pipe_get_config(), usr_get_current_config_confirm(), usr_perf_start_confirm(), and usr_set_default_config_confirm().
usart_serial_read_packet | ( | USART_HOST | , |
& | temp, | ||
1 | |||
) |
else |
|
static |
Receive buffer The buffer size is defined in sio2host.h.
Referenced by sio2host_rx().
|
static |
Receive buffer head.
Referenced by sio2host_rx().
|
static |
Receive buffer tail.
Referenced by if(), and sio2host_rx().
|
static |
Number of bytes in receive buffer.
Referenced by sio2host_rx().
|
static |
Referenced by main(), and sio2host_init().