RL-ARM User's Guide

MCI Driver Routines

MCI driver routines provide operations to communicate with a memory card in SD-Native mode. The MCI interface routines are not reentrant.

RoutineDescription
InitInitializes the MCI controller.
UnInitUninitializes the MCI controller.
DelayDelays a program execution in the driver.
BusModeSets the bus mode to push-pull or open-drain.
BusWidthSets the bus width to 1-bit or 4-bit bus.
BusSpeedSet the desired baud rate speed for the MCI interface.
CommandSends SD/MMC command.
ReadBlockReads data from SD/MMC memory card.
WriteBlockWrites data to SD/MMC memory card.
SetDmaSets the DMA for data transfer.
CheckMediaChecks the SD/MMC media status (Card Inserted, Write Protected).