#include <BSdio.h>
|
| BSdio () |
|
BError | init (BUInt8 sysdev, BUInt speedKHz=400) |
| Initialise the device. More...
|
|
BError | getInfo (BUInt32 dev, BUInt32 &nBlocks, BUInt32 &blockSize, BUInt32 &eraseBlockSize) |
|
BError | read (BUInt32 dev, BUInt32 blockNumber, void *data, BUInt32 nBlocks) |
| Read data from card. More...
|
|
BError | write (BUInt32 dev, BUInt32 blockNumber, const void *data, BUInt32 nBlocks) |
| Write data to card. More...
|
|
BError | trim (BUInt32 dev, BUInt32 blockNumber, BUInt32 num) |
| Mark blocks as free. More...
|
|
BError | erase (BUInt32 dev, BUInt32 blockNumber, BUInt32 num, Bool now) |
| Erase blocks. More...
|
|
BSdioDevice::CardType | getCardType (BUInt32 dev) |
| returns the card type More...
|
|
BError | backgroundEnable (BUInt32 dev, Bool on) |
|
BError | sync (BUInt32 dev) |
|
void | printStatus () |
| Debug print of status. More...
|
|
void | interrupt () |
|
| BBlockDevice () |
|
virtual | ~BBlockDevice () |
|
virtual BError | init () |
|
virtual BError | close () |
|
virtual BUInt32 | numDevices () |
|
virtual BError | status (BUInt32 dev) |
|
virtual BError | erase (BUInt32 dev, BUInt32 block, BUInt32 nBlocks) |
|
◆ ResponseType
Enumerator |
---|
ResponseNone | |
ResponseShort | |
ResponseLong | |
◆ BSdio()
◆ backgroundEnable()
◆ busFullSpeed()
BError BSdio::busFullSpeed | ( | | ) | | | protected |
◆ cardInit()
◆ erase()
◆ getCardType()
◆ getInfo()
◆ getStatus()
◆ init()
◆ interrupt()
void BSdio::interrupt | ( | | ) | |
◆ printStatus()
void BSdio::printStatus | ( | | ) | |
◆ read()
◆ select()
Select a particular card.
◆ sendCmd()
◆ sync()
◆ trim()
◆ write()
◆ ocard
◆ ocards
◆ odma
◆ oend
End of transaction semaphore.
◆ olock
Lock for multi-threadded access.
◆ osdmmc
SDIO_TypeDef* BSdio::osdmmc | | protected |
◆ ospeed
The documentation for this class was generated from the following files: