Handles Serial I/O Functionalities.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
cpu_irq_disable () | |
cpu_irq_enable () | |
if ((SERIAL_RX_BUF_SIZE_NCP-1)==serial_rx_buf_tail) | |
uint8_t | sio2ncp_getchar (void) |
This function performs a blocking character receive functionality. More... | |
int | sio2ncp_getchar_nowait (void) |
This function performs a non-blocking character receive functionality. More... | |
void | sio2ncp_init (void) |
Initializes the Serial IO Module of the NCP Device. More... | |
uint8_t | sio2ncp_rx (uint8_t *data, uint8_t max_length) |
Receives data from UART. More... | |
uint8_t | sio2ncp_tx (uint8_t *data, uint8_t length) |
Transmits data via UART. More... | |
usart_serial_read_packet (USART_NCP,&temp, 1) | |
Variables | |
else | |
static uint8_t | serial_rx_buf [SERIAL_RX_BUF_SIZE_NCP] = temp |
Receive buffer The buffer size is defined in sio2ncp.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_NCP-1) | = = serial_rx_buf_tail | ) |
References serial_rx_buf_tail.
usart_serial_read_packet | ( | USART_NCP | , |
& | temp, | ||
1 | |||
) |
Referenced by main().
else |
|
static |
Receive buffer The buffer size is defined in sio2ncp.h.
Referenced by sio2ncp_rx().
|
static |
Receive buffer head.
Referenced by sio2ncp_rx().
|
static |
Receive buffer tail.
Referenced by if(), and sio2ncp_rx().
|
static |
Number of bytes in receive buffer.
Referenced by sio2ncp_rx().
|
static |
Referenced by main().