E:/Projects/AvrLib/include/cio.h File Reference

#include <stdarg.h>
#include <task.h>

Include dependency graph for cio.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _iocb
struct  H_JVEC
struct  HTABS

Defines

#define CIO_MAX_DEV   (20)
#define CIO_ERROR_START   (-64)
#define CIO_DEVTABLE_FULL   (CIO_ERROR_START-0)
#define CIO_NO_DEVICE   (CIO_ERROR_START-1)
#define CIO_WRONLY   (CIO_ERROR_START-2)
#define CIO_RDONLY   (CIO_ERROR_START-3)
#define EOL   0x0a

Typedefs

typedef struct _iocb IOCB

Functions

int CioAddHandler (char *devname, H_JVEC *t)
IOCBCioOpen (char *devname, int mode)
int CioClose (IOCB *I)
int CioGetC (IOCB *I)
int CioRead (IOCB *I, char *b, int n)
int CioPutC (IOCB *I, int c)
int CioWrite (IOCB *I, char *b, int n)
int CioStatus (IOCB *I, int mode)
int CioXIO (IOCB *I, int cmd, void *d)
void CioInit (void)

Variables

IOCBPoolList
HTABS htabs []
int last_dev
ECBIOCBBlocker


Define Documentation

#define CIO_DEVTABLE_FULL   (CIO_ERROR_START-0)

Definition at line 80 of file cio.h.

Referenced by CioAddHandler().

#define CIO_ERROR_START   (-64)

Definition at line 79 of file cio.h.

#define CIO_MAX_DEV   (20)

Definition at line 11 of file cio.h.

Referenced by CioAddHandler().

#define CIO_NO_DEVICE   (CIO_ERROR_START-1)

Definition at line 81 of file cio.h.

#define CIO_RDONLY   (CIO_ERROR_START-3)

Definition at line 83 of file cio.h.

Referenced by CioPutC(), and CioWrite().

#define CIO_WRONLY   (CIO_ERROR_START-2)

Definition at line 82 of file cio.h.

Referenced by CioGetC(), and CioRead().

#define EOL   0x0a

Definition at line 85 of file cio.h.


Typedef Documentation

typedef struct _iocb IOCB


Function Documentation

int CioAddHandler ( char *  devname,
H_JVEC t 
)

Definition at line 101 of file cioopen.c.

References CIO_DEVTABLE_FULL, CIO_MAX_DEV, HTABS::dev_name, Disable(), Enable(), HTABS::HtabsEntry, and last_dev.

Referenced by RInit(), and xRInit().

int CioClose ( IOCB I  ) 

Definition at line 169 of file cioopen.c.

References H_JVEC::closv, FreeIOCB(), HTABS::HtabsEntry, and _iocb::ichid.

Referenced by _close().

int CioGetC ( IOCB I  ) 

Definition at line 36 of file cioread.c.

References CIO_WRONLY, FCNTL_RDONLY, H_JVEC::getv, htabs, HTABS::HtabsEntry, _iocb::ichid, and _iocb::mode.

Referenced by _get().

void CioInit ( void   ) 

Definition at line 39 of file cio.c.

References IOCBBlocker, last_dev, NewSemaphore(), and SEMAPHORE_MODE_BLOCKING.

IOCB* CioOpen ( char *  devname,
int  mode 
)

int CioPutC ( IOCB I,
int  c 
)

Definition at line 35 of file ciowrite.c.

References CIO_RDONLY, FCNTL_WRONLY, htabs, HTABS::HtabsEntry, _iocb::ichid, _iocb::mode, and H_JVEC::putv.

Referenced by _put().

int CioRead ( IOCB I,
char *  b,
int  n 
)

Definition at line 50 of file cioread.c.

References CIO_WRONLY, FCNTL_RDONLY, htabs, HTABS::HtabsEntry, _iocb::ichid, _iocb::mode, and H_JVEC::readv.

Referenced by _read().

int CioStatus ( IOCB I,
int  mode 
)

Definition at line 34 of file ciostatus.c.

References htabs, HTABS::HtabsEntry, _iocb::ichid, and H_JVEC::statv.

int CioWrite ( IOCB I,
char *  b,
int  n 
)

Definition at line 49 of file ciowrite.c.

References CIO_RDONLY, FCNTL_WRONLY, htabs, HTABS::HtabsEntry, _iocb::ichid, _iocb::mode, and H_JVEC::writev.

Referenced by _write().

int CioXIO ( IOCB I,
int  cmd,
void *  d 
)

Definition at line 35 of file cioxio.c.

References htabs, HTABS::HtabsEntry, _iocb::ichid, and H_JVEC::specv.

Referenced by _ioctl().


Variable Documentation

Definition at line 35 of file cioopen.c.

Referenced by CioGetC(), CioPutC(), CioRead(), CioStatus(), CioWrite(), and CioXIO().

Definition at line 37 of file cioopen.c.

Referenced by CioInit().

int last_dev

Definition at line 36 of file cioopen.c.

Referenced by CioAddHandler(), CioInit(), and dev_search().

Definition at line 34 of file cioopen.c.


Generated on Sun Aug 31 13:30:20 2008 for FrankenRTOS by  doxygen 1.5.6