Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

void  FSDev_Wr (CPU_CHAR    *name_dev,
                void        *p_src,
                FS_SEC_NBR   start,
                FS_SEC_QTY   cnt,
                FS_ERR      *p_err);

File

Called from

Code enabled by

fs_dev.c

Application

not FS_CFG_RD_ONLY_EN

Write data to device sector(s). See also section 7-4 “Raw Device IO”.

Arguments

name_dev

Device name.

p_src

Pointer to source buffer.

start

Start sector of write.

cnt

Number of sectors to write

p_err

Pointer to variable that will receive the return error code from this function

FS_ERR_NONE

Sector(s) written.

FS_ERR_NAME_NULL

Argument name_dev passed a NULL pointer.

FS_ERR_NULL_PTR

Argument p_src passed a NULL pointer.

Or device access error (see section B-4 “Device Error Codes”).

Returned Value

None.

Notes/Warnings

Device state change will result from device I/O, not present or timeout error.

  • No labels