Nut/OS  4.10.3
API Reference
uartavr.c File Reference
#include <string.h>
#include <sys/atom.h>
#include <sys/heap.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/device.h>
#include <dev/irqreg.h>
#include <dev/uartavr.h>
#include <fcntl.h>
Include dependency graph for uartavr.c:

Go to the source code of this file.


#define _IOFBF   0x00
#define _IOLBF   0x01
#define _IONBF   0x02


int UartAvrInput (NUTDEVICE *dev)
 Wait for input.
int UartAvrOutput (NUTDEVICE *dev)
 Initiate output.
int UartAvrFlush (NUTDEVICE *dev)
 Wait for output buffer empty.
int UartAvrIOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform on-chip UART control functions.
int UartAvrInit (NUTDEVICE *dev)
 Initialize on chip uart device.
int UartAvrRead (NUTFILE *fp, void *buffer, int size)
 Read from device.
int UartAvrPut (NUTDEVICE *dev, CONST void *buffer, int len, int pflg)
 Write to device.
int UartAvrWrite (NUTFILE *fp, CONST void *buffer, int len)
int UartAvrWrite_P (NUTFILE *fp, PGM_P buffer, int len)
NUTFILEUartAvrOpen (NUTDEVICE *dev, CONST char *name, int mode, int acc)
 Open a device or file.
int UartAvrClose (NUTFILE *fp)
 Close a device or file.
long UartAvrSize (NUTFILE *fp)
 Request file size.

Define Documentation

#define _IOFBF   0x00

Definition at line 107 of file uartavr.c.

#define _IOLBF   0x01

Definition at line 108 of file uartavr.c.

#define _IONBF   0x02

Definition at line 109 of file uartavr.c.