#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.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.