Data Structures | |
struct | _NUTDEVICE |
Device structure. More... | |
Defines | |
#define | IFTYP_RAM |
RAM device. | |
#define | IFTYP_ROM |
ROM device. | |
#define | IFTYP_STREAM |
Stream device. | |
#define | IFTYP_NET |
Net device. | |
#define | UART_SETSPEED |
Set baudrate. | |
#define | UART_GETSPEED |
Query baudrate. | |
#define | UART_SETDATABITS |
Set number of data bits. | |
#define | UART_GETDATABITS |
Set number of data bits. | |
#define | UART_SETPARITY |
Set parity. | |
#define | UART_GETPARITY |
Query parity. | |
#define | UART_SETSTOPBITS |
Set number of stop bits. | |
#define | UART_GETSTOPBITS |
Query number of stop bits. | |
#define | UART_SETSTATUS |
Set status. | |
#define | UART_GETSTATUS |
Query status. | |
#define | UART_FRAMINGERROR |
Framing error. | |
#define | UART_OVERRUNERROR |
Overrun error. | |
#define | UART_RXBUFFEREMPTY |
Receiver buffer empty. | |
#define | UART_TXBUFFEREMPTY |
Transmitter buffer empty. | |
Typedefs | |
typedef struct _NUTDEVICE | NUTDEVICE |
Device structure type. | |
Functions | |
int | NutRegisterDevice (NUTDEVICE *dev, u_short base, u_char irq) |
Register a device. More... | |
NUTDEVICE* | NutDeviceLookup (const char *name) |
Find device entry by name. More... | |
NUTDEVICE* | NutDeviceOpen (const char *name) |
Open device by name. More... | |
int | NutDeviceClose (NUTDEVICE *dev) |
Closes a previously opened device. More... | |
int | NutDeviceRead (NUTDEVICE *dev, void *data, int size) |
Read up to a specified number of bytes from a device. More... | |
int | NutDeviceGetLine (NUTDEVICE *dev, void *data, int size) |
int | NutDeviceWrite (NUTDEVICE *dev, const void *data, int len) |
Write a buffer to a specified device. More... | |
int | NutDeviceWrite_P (NUTDEVICE *dev, PGM_P data, int len) |
Write a buffer in program space to a specified device. More... | |
int | NutDeviceSend (NUTDEVICE *dev, NETBUF *nb, u_char flags) |
Send network buffer contents to network device. More... | |
int | NutDeviceIOCtl (NUTDEVICE *dev, int req, void *conf) |
Perform device specific control functions. More... | |
Variables | |
NUTDEVICE* | nutDeviceList |
Linked list of all registered devices. |