File nut/include/dev/serialflash.h


Included Files


Preprocessor definitions

#define _DEV_SERIALFLASH_H_

#define SERIALFLASH_MAX_UNITS 65535


Typedef sf_unit_t

typedef uint16_t sf_unit_t

Typedef sf_unit_fast_t

typedef uint_fast16_t sf_unit_fast_t

Typedef NUTSERIALFLASH

typedef struct _NUTSERIALFLASH NUTSERIALFLASH
See: Type struct _NUTSERIALFLASH

Type struct _NUTSERIALFLASH

struct _NUTSERIALFLASH
struct _NUTSERIALFLASH  
   {  
      NUTSPINODE* sf_node;  
      void* sf_info;  
      size_t sf_unit_size;  
      sf_unit_t sf_units;  
      sf_unit_t sf_rsvbot;  
      sf_unit_t sf_rsvtop;  
      int (*sf_init)(NUTSERIALFLASH*);  
      void (*sf_exit)(NUTSERIALFLASH*);  
      int (*sf_check)(NUTSERIALFLASH*,sf_unit_t,int);  
      int (*sf_read)(NUTSERIALFLASH*,sf_unit_t,int,void*,int);  
      int (*sf_compare)(NUTSERIALFLASH*,sf_unit_t,int,const void*,int);  
      int (*sf_used)(NUTSERIALFLASH*,sf_unit_t,int);  
      int (*sf_write)(NUTSERIALFLASH*,sf_unit_t,int,const void*,int);  
      int (*sf_copy)(NUTSERIALFLASH*,sf_unit_t,sf_unit_t);  
      int (*sf_commit)(NUTSERIALFLASH*,sf_unit_t);  
      int (*sf_erase)(NUTSERIALFLASH*,sf_unit_t,int);  
   }