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 4 Next »

void  FSDev_SD_Card_BSP_CmdDataWr (FS_QTY               unit_nbr,
                                   FS_DEV_SD_CARD_CMD  *p_cmd,
                                   void                *p_src,

FS_DEV_SD_CARD_ERR *p_err);

File

Called from

Code enabled by

fs_dev_sd_card_bsp.c

FSDev_SD_Card_WrData()

N/A

Write data following a command.

Arguments

unit_nbr

Unit number of SD/MMC card.

p_cmd

Pointer to command that was started.

p_src

Pointer to source buffer.

p_err

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

FS_DEV_SD_CARD_ERR_NONE

No error.

FS_DEV_SD_CARD_ERR_NO_CARD

No card present.

FS_DEV_SD_CARD_ERR_UNKNOWN

Unknown or other error.

FS_DEV_SD_CARD_ERR_WAIT_TIMEOUT

Timeout in waiting for data.

FS_DEV_SD_CARD_ERR_DATA_UNDERRUN

Data underrun.

FS_DEV_SD_CARD_ERR_DATA_CHKSUM

Error in data checksum.

FS_DEV_SD_CARD_ERR_DATA_START_BIT

Data start bit error.

FS_DEV_SD_CARD_ERR_DATA

Other data error.

Returned Value

None.

Notes/Warnings

None.

Example

The implementation of FSDev_SD_Card_BSP_CmdDataWr() in Listing C-10 is targeted for the same host controller as the other listings in this chapter; for more information, see FSDev_SD_Card_BSP_CmdStart().

  • No labels