#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | _NUTDEVICE |
Device structure. More... | |
Defines | |
#define | IFTYP_RAM 0 |
RAM device. | |
#define | IFTYP_ROM 1 |
ROM device. | |
#define | IFTYP_STREAM 2 |
Stream device. | |
#define | IFTYP_NET 3 |
Net device. | |
#define | UART_SETSPEED 0x0101 |
Set baudrate. | |
#define | UART_GETSPEED 0x0102 |
Query baudrate. | |
#define | UART_SETDATABITS 0x0103 |
Set number of data bits. | |
#define | UART_GETDATABITS 0x0104 |
Set number of data bits. | |
#define | UART_SETPARITY 0x0105 |
Set parity. | |
#define | UART_GETPARITY 0x0106 |
Query parity. | |
#define | UART_SETSTOPBITS 0x0107 |
Set number of stop bits. | |
#define | UART_GETSTOPBITS 0x0108 |
Query number of stop bits. | |
#define | UART_SETSTATUS 0x0109 |
Set status. | |
#define | UART_GETSTATUS 0x010a |
Query status. | |
#define | UART_SETREADTIMEOUT 0x010b |
Set read timeout. | |
#define | UART_GETREADTIMEOUT 0x010c |
Query read timeout. | |
#define | UART_SETWRITETIMEOUT 0x010d |
Set write timeout. | |
#define | UART_GETWRITETIMEOUT 0x010e |
Query write timeout. | |
#define | DIO_SETSTATUS 0x0209 |
Set digital output status. | |
#define | DIO_GETSTATUS 0x020a |
Query digital input status. | |
#define | DIO_WAITSTATUS 0x020b |
Wait for digital input status change. | |
#define | UART_FRAMINGERROR 0x00000001 |
Framing error. | |
#define | UART_OVERRUNERROR 0x00000002 |
Overrun error. | |
#define | UART_RXBUFFEREMPTY 0x00000004 |
Receiver buffer empty. | |
#define | UART_TXBUFFEREMPTY 0x00000008 |
Transmitter buffer empty. | |
Typedefs | |
typedef _NUTDEVICE | NUTDEVICE |
Device structure type. | |
Functions | |
int | NutRegisterDevice (NUTDEVICE *dev, u_short base, u_char irq) |
Register a device. | |
NUTDEVICE * | NutDeviceLookup (CONST char *name) |
Find device entry by name. | |
NUTDEVICE * | NutDeviceOpen (CONST char *name) |
Open a stream device by name. | |
int | NutDeviceClose (NUTDEVICE *dev) |
Closes a previously opened stream device. | |
int | NutDeviceRead (NUTDEVICE *dev, void *data, int size) |
Read up to a specified number of bytes from a device. | |
int | NutDeviceReadTran (NUTDEVICE *dev, void *data, int size) |
Read up to a specified number of bytes from a device translating non printables. | |
int | NutDeviceGetLine (NUTDEVICE *dev, void *data, int size) |
Get a line from a specified device. | |
int | NutDeviceWrite (NUTDEVICE *dev, CONST void *data, int len) |
Write a buffer to a specified device. | |
int | NutDeviceWriteTran (NUTDEVICE *dev, CONST void *data) |
Write a buffer to a specified device. | |
int | NutDeviceWrite_P (NUTDEVICE *dev, PGM_P data, int len) |
Write a buffer in program space to a specified device. | |
int | NutDeviceIOCtl (NUTDEVICE *dev, int req, void *conf) |
Perform device specific control functions. | |
Variables | |
NUTDEVICE * | nutDeviceList |
Linked list of all registered devices. |