#include <file_config.h>
BOOL WriteBlock (
U32 bl, /* Absolute block (sector) address */
U8* buf, /* Location with data to write */
U32 cnt); /* Number of blocks to write */
Description
The function WriteBlock writes data blocks to a SD/MMC
Memory Card. The parameter bl specifies the
starting block to where data are written. The parameter buf is a pointer to the buffer that holds the data to be
written. The parameter cnt specifies the number of
blocks to be written.
The function is part of the MCI
Driver. The prototype is defined in the file
File_Config.h. Developers must customize the function.
To write data to a SD Memory Card, the following function sequence
is called:
SetDma - sets the DMA to send data.
This can be used if DMA must be set prior to sending an SD
command.
Command - sends a command WRITE_BLOCK or
WRITE_MULT_BLOCK to SD Memory Card.
WriteBlock - writes a block of data to SD Memory Card,
or simply waits for the DMA transfer to finish.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.