Versions Compared

Key

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

...

void  FSDev_NOR_PhyRd (CPU_CHAR    *name_dev,

...

                       void        *p_dest,

...

                       CPU_INT32U   start,

...

                       CPU_INT32U   cnt,

...

                       FS_ERR      *p_err);

...

File

...

...

Called from

...

Code enabled by

...

...

fs_dev_nor.c

...

...

Application

...

...

N/A

Anchor11893641189364Read from a NOR device and store data in buffer. Anchor11893651189365

Arguments

Anchor11893661189366name_dev Anchor11893671189367

Device name (see Note).

Anchor11893681189368p_destanchor11893691189369

Pointer to destination buffer.

...

start Anchor11893711189371

Start address of read (relative to start of device).

...

1189372cnt Anchor11893731189373

Number of octets to read.

Anchor11893741189374p_err Anchor11893751189375

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

...

...

FS_ERR_NONE

...

...

Octets read successfully.

...

classWebWorks_Indent_1

...

FS_ERR_NAME_NULL

...

classWebWorks_Indent_2

...

...

Argument name_dev passed a NULL pointer.

...

...

FS_ERR_NULL_PTR

...

classWebWorks_Indent_2

...

...

Argument p_dest passed a NULL pointer.

...

classWebWorks_Indent_1

...

FS_ERR_DEV_INVALID

...

classWebWorks_Indent_2

...

Argument name_dev specifies an invalid device.

...

classWebWorks_Indent_1

...

FS_ERR_DEV_NOT_OPEN

...

...

Device is not open.

...

classWebWorks_Indent_1

...

...

FS_ERR_DEV_NOT_PRESENT

...

classWebWorks_Indent_2

...

Device is not present.

...

...

FS_ERR_DEV_INVALID_LOW_FMT

...

classWebWorks_Indent_2

...

Device needs to be low-level formatted.

...

classWebWorks_Indent_1

...

...

FS_ERR_DEV_IO

...

classWebWorks_Indent_2

...

Device I/O error.

...

...

classWebWorks_Indent_1

...

FS_ERR_DEV_TIMEOUT

...

classWebWorks_Indent_2

...

Device timeout.

...

...

Returned Value

Anchor11893951189395None. Anchor11893961189396

Notes/Warnings

...

The device must be a NOR device (e.g., “nornor:0:”).