nut/include/sys/device.h File Reference


Detailed Description

Nut/OS device definitions.

#include <sys/file.h>

Data Structures

struct  _IFSTREAM
 Stream interface information structure. More...
struct  _NUTDEVICE
 Device structure. More...
struct  _NUTVIRTUALDEVICE
 Virtual device structure. More...

Defines

#define IFTYP_CAN   6
 CAN device.
#define IFTYP_CHAR   5
 Character stream device.
#define IFTYP_FS   16
 file system device
#define IFTYP_NET   3
 Net device.
#define IFTYP_RAM   0
 RAM device.
#define IFTYP_ROM   1
 ROM device.
#define IFTYP_STREAM   2
 Stream device.
#define IFTYP_TCPSOCK   4
 TCP socket.
#define WAIT100   100
#define WAIT250   250
#define WAIT5   5
#define WAIT50   50
#define WAIT500   500

Typedefs

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

Functions

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

Variables

NUTDEVICEnutDeviceList
 Linked list of all registered devices.


Generated on Tue Jan 23 21:12:26 2007 for BTnut System Software by doxygen 1.4.7