Nut/OS  4.10.3
API Reference
device.h File Reference

Nut/OS device definitions. More...

#include <sys/file.h>
#include <stdint.h>
Include dependency graph for device.h:

Go to the source code of this file.

Data Structures

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

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_BLKIO   7
 Block I/O device.
#define IFTYP_FS   16
 file system device

Typedefs

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

Functions

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

Variables

NUTDEVICEnutDeviceList
 Linked list of all registered devices.

Detailed Description

Nut/OS device definitions.

Definition in file device.h.


Define Documentation

#define WAIT5   5

Definition at line 117 of file device.h.

#define WAIT50   50

Definition at line 118 of file device.h.

#define WAIT100   100

Definition at line 119 of file device.h.

#define WAIT250   250

Definition at line 120 of file device.h.

#define WAIT500   500

Definition at line 121 of file device.h.

Referenced by NicInit().