Versions Compared

Key

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


...

Code Block
languagecpp
void  FSDev_NOR_PhyRd (CPU_CHAR    *name_dev,

...

File Called from Code enabled by

                       void        *p_dest,
                       CPU_INT32U   start,
                       CPU_INT32U   cnt,
                       FS_ERR      *p_err);
HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
11893521189352
Table Cell (td)
Anchor
11893541189354
Table Cell (td)
Anchor
11893561189356
Table Row (tr)
Table Cell (td)
Anchor
11893581189358


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

...

11893661189366name_dev Anchor11893671189367

Device name (see Note #1).

...

p_dest Anchor11893691189369

Pointer to destination buffer.

Anchor11893701189370start Anchor11893711189371

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

Anchor11893721189372cntanchor11893731189373

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

...

...

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.

...

...

classWebWorks_Indent_1

...

FS_ERR_DEV_INVALID_LOW_FMT

...

...

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

...

...

Device timeout.

...

Returned Value

...

1189395None. Anchor11893961189396

Notes/Warnings

...

  1. The device must be a NOR device (e.g.,

...

  1. nor:0:”).