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

sys/device.h File Reference

Nut/OS device definitions. More...


Data Structures

struct  _NUTDEVICE
 Device structure. More...

struct  _NUTVIRTUALDEVICE
 Virtual 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 IFTYP_TCPSOCK
 TCP socket.

#define IFTYP_CHAR
 Character stream device.


Typedefs

typedef _NUTDEVICE NUTDEVICE
 Device structure type.

typedef _NUTVIRTUALDEVICE NUTVIRTUALDEVICE
 Device structure type.


Functions

int NutRegisterDevice (NUTDEVICE *dev, u_short base, u_char irq)
 Register and initialize a device.

NUTDEVICENutDeviceLookup (CONST char *name)
 Find device entry by name.

NUTDEVICENutDeviceOpen (CONST char *name)
 Open a device by name.

int NutDeviceClose (NUTDEVICE *dev)
 Closes a previously opened stream device.

int NutDeviceRead (NUTDEVICE *dev, void *data, int size)
 Read up to a specified number of bytes from a device.

int NutDeviceReadTran (NUTDEVICE *dev, void *data, int size)
 Read up to a specified number of bytes from a device translating non printables.

int NutDeviceGetLine (NUTDEVICE *dev, void *data, int size)
 Get a line from a specified device.

int NutDeviceWrite (NUTDEVICE *dev, CONST void *data, int len)
 Write a buffer to a specified device.

int NutDeviceWriteTran (NUTDEVICE *dev, CONST void *data)
 Write a buffer to a specified device using character translation for non printables.

int NutDeviceWrite_P (NUTDEVICE *dev, PGM_P data, int len)
 Write a buffer in program space to a specified device.

int NutDeviceIOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform device specific control functions.


Variables

NUTDEVICEnutDeviceList
 Linked list of all registered devices.


Detailed Description

Nut/OS device definitions.


Variable Documentation

NUTDEVICE* nutDeviceList  
 

Linked list of all registered devices.


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