Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

device.h File Reference


Detailed Description

Nut/OS device definitions.


Defines

#define WAIT5   5
#define WAIT50   50
#define WAIT100   100
#define WAIT250   250
#define WAIT500   500
#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 IFTYP_TCPSOCK   4
 TCP socket.
#define IFTYP_CHAR   5
 Character stream device.
#define IFTYP_CAN   6
 CAN device.
#define IFTYP_FS   16
 file system device

Typedefs

typedef _NUTDEVICE NUTDEVICE
 Device structure type.
typedef _NUTVIRTUALDEVICE NUTVIRTUALDEVICE
 Device structure type.
typedef _IFSTREAM IFSTREAM
 Stream interface type.

Functions

int NutRegisterDevice (NUTDEVICE *dev, uptr_t base, u_char irq)
 Register and initialize a device.
NUTDEVICENutDeviceLookup (CONST char *name)
 Find device entry by name.

Variables

NUTDEVICEnutDeviceList
 Linked list of all registered devices.


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