Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10924081092408 Device Functions Anchor11132061113206Most device access functions can return any of the following device errors: Anchor11132071113207

FS_ERR_DEV_INVALID_LOW_FMT

...

...

classWebWorks_Indent_2

...

Device needs to be low-level formatted.

Anchor11132081113208FS_ERR_DEV

...

...

Device access error.

...

FS_ERR_DEV_IO

...

classWebWorks_Indent_2

...

Device I/O error.

...

1113210FS_ERR_DEV_NOT_OPEN

...

classWebWorks_Indent_2

...

Device is not open.

Anchor11132111113211FS_ERR_DEV_NOT_PRESENT

...

...

Device is not present.

...

FS_ERR_DEV_TIMEOUT

...

classWebWorks_Indent_2

...

...

Device timeout error.

...


1113213Each of these indicates that the state of the device is not suitable for the intended operation. Anchor11877921187792  

...

void

...

FSDev_AccessLock       (CPU_CHAR            *name_dev,

...

                        CPU_INT32U           timeout,
                        FS_ERR              *p_err);

...

 
void

...

FSDev_AccessUnlock     (CPU_CHAR            *name_dev,

...

                        FS_ERR              *p_err);

...

...

void

...

FSDev_Close            (CPU_CHAR            *name_dev,

...

                        FS_ERR              *p_err);

...

rowspan3

...

...

FS_PARTITION_NBR

...

FSDev_GetNbrPartitions (CPU_CHAR            *name_dev,

...

                        FS_ERR              *p_err);

...

rowspan3

...

void  
FSDev_GetDevName       (FS_QTY               dev_nbr,

...

                        CPU_CHAR            *name_dev);

...

...

rowspan2
FS_QTY

...

  
FSDev_GetDevCnt        (void);

...

...

rowspan2
FS_QTY

...

  
FSDev_GetDevCntMax     (void);

...

void  
FSDev_Invalidate       (CPU_CHAR            *name_dev,

...

                        FS_ERR              *p_err);

...

rowspan4

...

void

...

FSDev_Open             (CPU_CHAR            *name_dev,

...

                        void                *p_dev_cfg,

...

                        FS_ERR              *p_err);

...

rowspan4

...

...

FS_PARTITION_NBR

...

  
FSDev_PartitionAdd     (CPU_CHAR            *name_dev,

...

                        FS_SEC_QTY           partition_size,

...

                        FS_ERR              *p_err);

...

...

void  
FSDev_PartitionFind    (CPU_CHAR            *name_dev,

...

                        FS_PARTITION_NBR     partition_nbr,

...

                        FS_PARTITION_ENTRY   *p_partition_entry,

...

                        FS_ERR              *p_err);

...

rowspan4

...

void  
FSDev_PartitionInit    (CPU_CHAR            *name_dev,

...

                        FS_SEC_QTY           partition_size,

...

                        FS_ERR              *p_err);

...

rowspan4

...

void  
FSDev_Query            (CPU_CHAR            *name_dev,

...

                        FS_DEV_INFO         *p_info,

...

                        FS_ERR              *p_err);

...

rowspan6

...

void  
FSDev_Rd               (CPU_CHAR            *name_dev,

...

                        void                *p_dest,

...

                        FS_SEC_NBR

...

           start,
                        FS_SEC_QTY

...

           cnt,
                        FS_ERR              *p_err);

...

...

rowspan3
CPU_BOOLEAN

...

  
FSDev_Refresh          (CPU_CHAR            *name_dev,

...

                        FS_ERR              *p_err);

...

...

void  
FSDev_Wr               (CPU_CHAR            *name_dev,

...

                        void                *p_src,

...

                        FS_SEC_NBR

...

           start,
                        FS_SEC_QTY

...

           cnt,
                        FS_ERR              *p_err);

...