usart.c File Reference

Go to the source code of this file.

Defines

#define _IOLBF   0x01
#define _IONBF   0x02

Functions

int UsartInit (NUTDEVICE *dev)
 Initialize the USART device.
int UsartRead (NUTFILE *fp, void *buffer, int size)
 Read from device.
int UsartWrite (NUTFILE *fp, CONST void *buffer, int len)
 Write a device or file.
int UsartWrite_P (NUTFILE *fp, PGM_P buffer, int len)
 Write a device or file.
int UsartClose (NUTFILE *fp)
 Close an USART device.
NUTFILE * UsartOpen (NUTDEVICE *dev, CONST char *name, int mode, int acc)
 Open an USART device.
int UsartIOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform USART control functions.
long UsartSize (NUTFILE *fp)
 Retrieves the number of characters in input buffer.

Define Documentation

#define _IOLBF   0x01

Definition at line 89 of file usart.c.

#define _IONBF   0x02

Definition at line 90 of file usart.c.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/