Modules | |
ATmega On-Chip UART Device Driver | |
Serial communication device driver. | |
Realtek 8019AS device driver | |
Ethernet device driver. | |
Network Buffer | |
Network buffer support. | |
Interrupt Management | |
Interrupt registration and handling. | |
Formatted output functions. | |
Formatted character output. | |
Network Stream Device Driver | |
Virtual TCP socket stream device. | |
UART Device Status Flags | |
UART status flags. | |
UART I/O Control Functions | |
UART Ioctl commands. | |
Data Structures | |
struct | _NUTDEVICE |
Device structure. More... | |
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. | |
Typedefs | |
typedef struct _NUTDEVICE | NUTDEVICE |
Device structure type. | |
Functions | |
NUTDEVICE* | NutDeviceLookup (const char *name) |
Find device entry by name. More... | |
int | NutRegisterDevice (NUTDEVICE *dev, u_short base, u_char irq) |
Register a device. 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. |
|
Closes a previously opened device.
Waits until all buffered output data written and close device.
|
|
Reads a string from the specified device. Characters are read up to and including the first newline character, up to the end of the stream, or until the number of characters read is equal to the specified size, whichever comes first.
|
|
Perform device specific control functions.
|
|
Find device entry by name.
|
|
Open device by name.
Discards the input buffer. Any device settings are left unchanged.
|
|
Read up to a specified number of bytes from a device.
The function may read fewer than the given number of bytes.
|
|
Send network buffer contents to network device.
|
|
Write a buffer to a specified device.
This is a raw output without any character translation like EOL (end of line).
|
|
Write a buffer in program space to a specified device.
This is a raw output without any character translation like EOL (end of line).
|
|
Register a device.
Initializes the device and adds it to the system device list.
|