Account
| ArmsysApi 0.12.18 |
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BSdio1 Class Reference
#include <BSdio1.h>
Public Types | |
| enum | CardType { CardTypeNone, CardTypeSD, CardTypeSDHC, CardTypeEMMC } |
| enum | ResponseType { ResponseNone = 0x00, ResponseShort = 0x40, ResponseLong = 0xC0 } |
Public Member Functions | |
| BSdio1 () | |
| BError | init (BUInt8 dev, BUInt speedKHz=400) |
| CardType | getCardType () |
| BUInt32 | numBlocks () |
| BError | getStatus (BUInt32 &status) |
| BError | readBlocks (BUInt32 blockNumber, void *data, BUInt num) |
| Read data from card. More... | |
| BError | writeBlocks (BUInt32 blockNumber, void *data, BUInt num) |
| Write data to card. More... | |
| BError | trim (BUInt32 blockNumber, BUInt32 num) |
| Mark blocks as free. More... | |
| BError | erase (BUInt32 blockNumber, BUInt32 num, Bool now) |
| Erase blocks. More... | |
| void | backgroundEnable (Bool on) |
| void | sync () |
| BError | sendCmd (BUInt cmd, BUInt32 arg, ResponseType rType, Bool cpsm, Bool wait, BUInt32 *response) |
| void | interrupt () |
Protected Member Functions | |
| BError | cardInit () |
| BError | cardFullSpeed () |
Protected Attributes | |
| BMutex | olock |
| Lock for multi-threadded access. More... | |
| SDIO_TypeDef * | osdmmc |
| The SDMMC device. More... | |
| BUInt | ospeed |
| Clockrate of interface. More... | |
| CardType | ocardType |
| The card type. More... | |
| BUInt32 | onumBlocks |
| The number of 512 byte blocks. More... | |
| BUInt | orca |
| Cards relative address. More... | |
| BDma | odma |
| The DMAB. More... | |
| BUInt32 | ostatus |
| Interrupt status. More... | |
| BSemaphore | oint |
| Interrupt. More... | |
| BSemaphore | oend |
| End of transaction semaphore. More... | |
Member Enumeration Documentation
◆ CardType
| enum BSdio1::CardType |
◆ ResponseType
| enum BSdio1::ResponseType |
Constructor & Destructor Documentation
◆ BSdio1()
| BSdio1::BSdio1 | ( | ) |
Member Function Documentation
◆ backgroundEnable()
| void BSdio1::backgroundEnable | ( | Bool | on | ) |
◆ cardFullSpeed()
| protected |
◆ cardInit()
| protected |
◆ erase()
◆ getCardType()
| BSdio1::CardType BSdio1::getCardType | ( | ) |
◆ getStatus()
◆ init()
◆ interrupt()
| void BSdio1::interrupt | ( | ) |
◆ numBlocks()
| BUInt32 BSdio1::numBlocks | ( | ) |
◆ readBlocks()
◆ sendCmd()
| BError BSdio1::sendCmd | ( | BUInt | cmd, |
| BUInt32 | arg, | ||
| ResponseType | rType, | ||
| Bool | cpsm, | ||
| Bool | wait, | ||
| BUInt32 * | response | ||
| ) |
◆ sync()
| void BSdio1::sync | ( | ) |
◆ trim()
◆ writeBlocks()
Member Data Documentation
◆ ocardType
| protected |
The card type.
◆ odma
| protected |
The DMAB.
◆ oend
| protected |
End of transaction semaphore.
◆ oint
| protected |
Interrupt.
◆ olock
| protected |
Lock for multi-threadded access.
◆ onumBlocks
| protected |
The number of 512 byte blocks.
◆ orca
| protected |
Cards relative address.
◆ osdmmc
| protected |
The SDMMC device.
◆ ospeed
| protected |
Clockrate of interface.
◆ ostatus
| protected |
Interrupt status.
The documentation for this class was generated from the following files:
Generated by
1.8.15 