AVR UART Device Driver
[Device Driver API.Serial communication devices.]


Detailed Description

Device driver for ATmega On-Chip UART.

This device driver writes data to and reads data from the UART on the ATmega128/103 chip. Both, input and output data is buffered and send resp. transmitted by interrupt routines.

Not all ioctl() function are fully implemented. New applications should use the USART device driver.


Modules

 ATmega On-Chip UART Devices
 UART Device Structures.

Data Structures

struct  _UARTDCB
 UART device control block structure. More...
struct  _UARTDCB
 UART device control block structure. More...

Defines

#define HDLC_SF_ESCAPED   0x00002000UL
#define HDLC_SF_FLUSH   0x00001000UL
#define UART_HS_DCEFULL   0x0000001FUL
#define UART_HS_DCERTSCTS   0x00000003UL
#define UART_HS_DTEFULL   0x000003E0UL
#define UART_HS_DTERTSCTS   0x00000060UL
#define UART_HS_XONXOFF   0x00000400UL
#define UART_MF_BUFFERMASK   0x00300000UL
#define UART_MF_CONTROLMASK   0x00BC
#define UART_MF_COOKEDMODE   0x00020000UL
#define UART_MF_CTSCONTROL   0x00000002UL
#define UART_MF_CTSSENSE   0x00000040UL
#define UART_MF_DCDCONTROL   0x00000010UL
#define UART_MF_DCDSENSE   0x00000200UL
#define UART_MF_DSRCONTROL   0x00000008UL
#define UART_MF_DSRSENSE   0x00000100UL
#define UART_MF_DTRCONTROL   0x00000080UL
#define UART_MF_DTRSENSE   0x00000004UL
#define UART_MF_LINEBUFFER   0x00200000UL
#define UART_MF_LOCALECHO   0x00010000UL
#define UART_MF_NOBUFFER   0x00100000UL
#define UART_MF_RAWMODE   0x00400000UL
#define UART_MF_RTSCONTROL   0x00000020UL
#define UART_MF_RTSSENSE   0x00000001UL
#define UART_MF_SENSEMASK   0x0345
#define UART_MF_XONXOFF   0x00000400UL
#define UART_SF_CTSOFF   0x00000002UL
#define UART_SF_DCDOFF   0x00000010UL
#define UART_SF_DSROFF   0x00000008UL
#define UART_SF_DTROFF   0x00000004UL
#define UART_SF_RTSOFF   0x00000001UL
#define UART_SF_RXDISABLED   0x00000080UL
#define UART_SF_TXDISABLED   0x00000040UL

Typedefs

typedef _UARTDCB UARTDCB


Define Documentation

#define HDLC_SF_ESCAPED   0x00002000UL

Next character escaped.

#define HDLC_SF_FLUSH   0x00001000UL

Waiting for next HDLC flag.

#define UART_HS_DCEFULL   0x0000001FUL

Full DCE handshake.

#define UART_HS_DCERTSCTS   0x00000003UL

RTS/CTS DCE handshake.

#define UART_HS_DTEFULL   0x000003E0UL

Full DTE handshake.

#define UART_HS_DTERTSCTS   0x00000060UL

RTS/CTS DTE handshake.

#define UART_HS_XONXOFF   0x00000400UL

Software handshake.

#define UART_MF_BUFFERMASK   0x00300000UL

Masks buffering mode flags.

#define UART_MF_CONTROLMASK   0x00BC

Handshake control mask.

#define UART_MF_COOKEDMODE   0x00020000UL

Should be used in stream, not device.

#define UART_MF_CTSCONTROL   0x00000002UL

DCE output.

#define UART_MF_CTSSENSE   0x00000040UL

DTE input.

#define UART_MF_DCDCONTROL   0x00000010UL

DCE output.

#define UART_MF_DCDSENSE   0x00000200UL

DTE input.

#define UART_MF_DSRCONTROL   0x00000008UL

DCE output.

#define UART_MF_DSRSENSE   0x00000100UL

DTE input.

#define UART_MF_DTRCONTROL   0x00000080UL

DTE output.

#define UART_MF_DTRSENSE   0x00000004UL

DCE input.

#define UART_MF_LINEBUFFER   0x00200000UL

Line buffered.

#define UART_MF_LOCALECHO   0x00010000UL

Should be used in stream, not device.

#define UART_MF_NOBUFFER   0x00100000UL

No buffering.

#define UART_MF_RAWMODE   0x00400000UL

Send data as raw, disables data encapsulation for device.

#define UART_MF_RTSCONTROL   0x00000020UL

DTE output.

#define UART_MF_RTSSENSE   0x00000001UL

DCE input, low on port bit is +12V, which means ON.

#define UART_MF_SENSEMASK   0x0345

Handshake sense mask.

#define UART_MF_XONXOFF   0x00000400UL

Software handshake.

#define UART_SF_CTSOFF   0x00000002UL

Set CTS line is off.

#define UART_SF_DCDOFF   0x00000010UL

Set DCD line is off.

#define UART_SF_DSROFF   0x00000008UL

Set DSR line is off.

#define UART_SF_DTROFF   0x00000004UL

Set DTR line is off.

#define UART_SF_RTSOFF   0x00000001UL

Set RTS line is off.

#define UART_SF_RXDISABLED   0x00000080UL

Receiver disabled.

#define UART_SF_TXDISABLED   0x00000040UL

Transmitter disabled.


Typedef Documentation

typedef struct _UARTDCB UARTDCB

UART device control block type.


Generated on Tue Jan 23 21:12:26 2007 for BTnut System Software by doxygen 1.4.7