File nut/crt/funopen.c


Included Files


Typedef USERDEVIF

typedef struct _USERDEVIF USERDEVIF
See: Type struct _USERDEVIF

Type struct _USERDEVIF

struct _USERDEVIF
struct _USERDEVIF  
   {  
      int (*ifc_read)(void*,char*,int);  
      int (*ifc_write)(void*,const char*,int);  
      long (*ifc_seek)(void*,long,int);  
      int (*ifc_close)(void*);  
   }  

Global Function funopen()

FILE* funopen ( void* cookie, int (*readfn)(void*,char*,int), int (*writefn)(void*,const char*,int), long (*seekfn)(void*,long,int), int (*closefn)(void*) )
Prototyped in: nut/include/stdio.h
Calls: calloc(), free(), malloc()
References Functions: UserDevClose() nut/crt/funopen.c
  UserDevIoCtl() nut/crt/funopen.c
  UserDevRead() nut/crt/funopen.c
  UserDevWrite() nut/crt/funopen.c
References Variables: __fds

Local Function UserDevClose()

static int UserDevClose ( NUTFILE* nfp )
Calls: free()
Used in: funopen() nut/crt/funopen.c

Local Function UserDevIoCtl()

static int UserDevIoCtl ( NUTDEVICE* dev, int req, void* conf )
Used in: funopen() nut/crt/funopen.c

Local Function UserDevRead()

static int UserDevRead ( NUTFILE* nfp, void* buffer, int size )
Used in: funopen() nut/crt/funopen.c

Local Function UserDevWrite()

static int UserDevWrite ( NUTFILE* nfp, const void* buffer, int len )
Used in: funopen() nut/crt/funopen.c