|
uart 1.0
AVR mega series uart library
|
Enumerations for UART data status, error codes, and handshake states. More...

Go to the source code of this file.
Typedefs | |
| typedef enum UART_Data_t | UART_Data |
| Alias for enum UART_Data_t representing UART receive status. | |
| typedef enum UART_Error_t | UART_Error |
| Alias for enum UART_Error_t representing UART error status. | |
| typedef enum UART_Handshake_t | UART_Handshake |
| Alias for enum UART_Handshake_t representing flow control status. | |
Enumerations | |
| enum | UART_Data_t { UART_Empty = 0 , UART_Received , UART_Fault } |
| UART receive buffer status indicators. More... | |
| enum | UART_Error_t { UART_None = 0 , UART_Frame , UART_Overrun , UART_Parity } |
| UART frame error codes. More... | |
| enum | UART_Handshake_t { UART_Status = 0 , UART_Ready , UART_Pause } |
| UART hardware/software flow control states. More... | |
Enumerations for UART data status, error codes, and handshake states.
This header file defines the enums used to represent UART receive status, communication errors, and hardware/software handshake conditions. It includes enumerations for data reception states, UART frame errors, and flow control signaling.
| typedef enum UART_Data_t UART_Data |
Alias for enum UART_Data_t representing UART receive status.
| typedef enum UART_Error_t UART_Error |
Alias for enum UART_Error_t representing UART error status.
| typedef enum UART_Handshake_t UART_Handshake |
Alias for enum UART_Handshake_t representing flow control status.
| enum UART_Data_t |
UART receive buffer status indicators.
This enumeration represents the state of the UART receive operation:
| Enumerator | |
|---|---|
| UART_Empty | No data available in receive buffer |
| UART_Received | Valid data byte successfully received |
| UART_Fault | Receive operation failed (error condition) |
| enum UART_Error_t |
UART frame error codes.
This enumeration defines specific error conditions detected during UART reception: Corresponds to USART status register error flags (FE, DOR, UPE).
| Enumerator | |
|---|---|
| UART_None | No UART error detected |
| UART_Frame | Framing error (invalid stop bit) |
| UART_Overrun | Data overrun (RX buffer overflow) |
| UART_Parity | Parity error (invalid parity bit) |
| enum UART_Handshake_t |
UART hardware/software flow control states.
This enumeration represents the flow control/handshake status between communicating devices: Used for RTS/CTS hardware handshake or XON/XOFF software flow control.
| Enumerator | |
|---|---|
| UART_Status | Initial/unknown handshake state |
| UART_Ready | Ready to send/receive data |
| UART_Pause | Pause transmission (flow control active) |