distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
Classes | |
class | Cid |
CID, card identification register. More... | |
class | Csd |
CSD, card-specific data register. More... | |
class | CsdV1 |
CSD version 1.0, card-specific data register. More... | |
class | CsdV2 |
CSD version 2.0, card-specific data register. More... | |
class | R1Response |
R1 response. More... | |
class | R2Response |
R2 response. More... | |
class | R3Response |
R3 response. More... | |
class | R6Response |
R6 response. More... | |
class | R7Response |
R7 response. More... | |
class | SdStatus |
SD status. More... | |
Typedefs | |
using | ShortResponse = std::array< uint32_t, 1 > |
alias for short response More... | |
using | LongResponse = std::array< uint32_t, 4 > |
alias for long response More... | |
using | Result = SdMmcCardBase::Result |
import SdMmcCardBase::Result as Result More... | |
Functions | |
void | executeCmdWithoutResponse (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument) |
Executes transaction with command that has no response. More... | |
std::pair< Result, ShortResponse > | executeCmdWithShortResponse (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has short response. More... | |
std::pair< Result, LongResponse > | executeCmdWithLongResponse (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has long response. More... | |
int | resultToErrorCode (const Result result) |
Converts result of transaction to error code. More... | |
std::pair< int, R1Response > | executeCmdWithR1Response (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has R1 response. More... | |
std::pair< int, R2Response > | executeCmdWithR2Response (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has R2 response. More... | |
std::pair< int, R3Response > | executeCmdWithR3Response (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has R3 response. More... | |
std::pair< int, R6Response > | executeCmdWithR6Response (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has R6 response. More... | |
std::pair< int, R7Response > | executeCmdWithR7Response (SynchronousSdMmcCardLowLevel &sdCard, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with command that has R7 response. More... | |
void | executeCmd0 (SynchronousSdMmcCardLowLevel &sdCard) |
Executes CMD0 command on SD card. More... | |
std::pair< int, Cid > | executeCmd2 (SynchronousSdMmcCardLowLevel &sdCard) |
Executes CMD2 command on SD card. More... | |
std::pair< int, R6Response > | executeCmd3 (SynchronousSdMmcCardLowLevel &sdCard) |
Executes CMD3 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd7 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca) |
Executes CMD7 command on SD card. More... | |
std::pair< int, bool > | executeCmd8 (SynchronousSdMmcCardLowLevel &sdCard) |
Executes CMD8 command on SD card. More... | |
std::pair< int, Csd > | executeCmd9 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca) |
Executes CMD9 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd12 (SynchronousSdMmcCardLowLevel &sdCard) |
Executes CMD12 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd13 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca) |
Executes CMD13 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd16 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t blockLength) |
Executes CMD16 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd17 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t address, const SdMmcCardLowLevel::ReadTransfer readTransfer) |
Executes CMD17 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd18 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t address, const SdMmcCardLowLevel::ReadTransfer readTransfer) |
Executes CMD18 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd24 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t address, const SdMmcCardLowLevel::WriteTransfer writeTransfer) |
Executes CMD24 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd25 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t address, const SdMmcCardLowLevel::WriteTransfer writeTransfer) |
Executes CMD25 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd32 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t address) |
Executes CMD32 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd33 (SynchronousSdMmcCardLowLevel &sdCard, const uint32_t address) |
Executes CMD33 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd38 (SynchronousSdMmcCardLowLevel &sdCard) |
Executes CMD38 command on SD card. More... | |
std::pair< int, R1Response > | executeCmd55 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca) |
Executes CMD55 command on SD card. More... | |
std::pair< int, R1Response > | executeAcmdWithR1Response (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with application command (ACMD) that has R1 response. More... | |
std::pair< int, R3Response > | executeAcmdWithR3Response (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const uint8_t command, const uint32_t argument, const SdMmcCardLowLevel::Transfer transfer) |
Executes transaction with application command (ACMD) that has R3 response. More... | |
std::pair< int, R1Response > | executeAcmd6 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const bool _4BitBusMode) |
Executes ACMD6 command on SD card. More... | |
std::tuple< int, R1Response, SdStatus > | executeAcmd13 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const uint16_t timeoutMs) |
Executes ACMD13 command on SD card. More... | |
std::pair< int, R1Response > | executeAcmd23 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const uint32_t blocksCount) |
Executes ACMD23 command on SD card. More... | |
std::pair< int, R3Response > | executeAcmd41 (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const bool hcs, const bool xpc, const bool s18r, const uint32_t vddVoltageWindow) |
Executes ACMD41 command on SD card. More... | |
int | waitForTransferState (SynchronousSdMmcCardLowLevel &sdCard, const uint16_t rca, const TickClock::time_point timePoint) |
Waits until card goes back to transfer (tran) state. More... | |
using distortos::devices::anonymous_namespace{SdCard.cpp}::LongResponse = typedef std::array<uint32_t, 4> |
alias for long response
using distortos::devices::anonymous_namespace{SdCard.cpp}::Result = typedef SdMmcCardBase::Result |
import SdMmcCardBase::Result as Result
using distortos::devices::anonymous_namespace{SdCard.cpp}::ShortResponse = typedef std::array<uint32_t, 1> |
alias for short response
|
strong |
state of the card
|
strong |
R1 response errors.
std::tuple<int, R1Response, SdStatus> distortos::devices::anonymous_namespace{SdCard.cpp}::executeAcmd13 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const uint16_t | timeoutMs | ||
) |
Executes ACMD13 command on SD card.
This is SD_STATUS command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | timeoutMs | is the timeout of read transfer, milliseconds |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeAcmd23 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const uint32_t | blocksCount | ||
) |
Executes ACMD23 command on SD card.
This is SET_WR_BLK_ERASE_COUNT command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | blocksCount | is the number of blocks to pre-erase with next multi-block write command |
std::pair<int, R3Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeAcmd41 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const bool | hcs, | ||
const bool | xpc, | ||
const bool | s18r, | ||
const uint32_t | vddVoltageWindow | ||
) |
Executes ACMD41 command on SD card.
This is SD_SEND_OP_COND command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | hcs | is the value of HCS (host capacity support) bit, which selects whether host supports SDHC and SDXC cards |
[in] | xpc | is the value of XPC (SDXC power control) bit, which selects whether card should operate in power saving (false) or maximum performance (true) mode |
[in] | s18r | is the value of S18R (switching to 1.8 V request) bit, which selects whether current signal voltage (false) or 1.8 V signal voltage should be used |
[in] | vddVoltageWindow | is the value of VDD voltage window field |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeAcmd6 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const bool | _4BitBusMode | ||
) |
Executes ACMD6 command on SD card.
This is SET_BUS_WIDTH command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | _4BitBusMode | selects whether 1-bit (false) or 4-bit (true) bus mode will be selected |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeAcmdWithR1Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with application command (ACMD) that has R1 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
std::pair<int, R3Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeAcmdWithR3Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with application command (ACMD) that has R3 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
void distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd0 | ( | SynchronousSdMmcCardLowLevel & | sdCard | ) |
Executes CMD0 command on SD card.
This is GO_IDLE_STATE command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd12 | ( | SynchronousSdMmcCardLowLevel & | sdCard | ) |
Executes CMD12 command on SD card.
This is STOP_TRANSMISSION command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd13 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca | ||
) |
Executes CMD13 command on SD card.
This is SEND_STATUS command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd16 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | blockLength | ||
) |
Executes CMD16 command on SD card.
This is SET_BLOCKLEN command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | blockLength | is the length of read/write block, bytes |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd17 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | address, | ||
const SdMmcCardLowLevel::ReadTransfer | readTransfer | ||
) |
Executes CMD17 command on SD card.
This is READ_SINGLE_BLOCK command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | address | is the address from which data will be read, bytes or blocks |
[in,out] | readTransfer | is the read transfer associated with transaction |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd18 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | address, | ||
const SdMmcCardLowLevel::ReadTransfer | readTransfer | ||
) |
Executes CMD18 command on SD card.
This is READ_MULTIPLE_BLOCK command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | address | is the address from which data will be read, bytes or blocks |
[in,out] | readTransfer | is the read transfer associated with transaction |
std::pair<int, Cid> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd2 | ( | SynchronousSdMmcCardLowLevel & | sdCard | ) |
Executes CMD2 command on SD card.
This is ALL_SEND_CID command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd24 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | address, | ||
const SdMmcCardLowLevel::WriteTransfer | writeTransfer | ||
) |
Executes CMD24 command on SD card.
This is WRITE_BLOCK command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | address | is the address to which data will be written, bytes or blocks |
[in] | writeTransfer | is the write transfer associated with transaction |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd25 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | address, | ||
const SdMmcCardLowLevel::WriteTransfer | writeTransfer | ||
) |
Executes CMD25 command on SD card.
This is WRITE_MULTIPLE_BLOCK command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | address | is the address to which data will be written, bytes or blocks |
[in] | writeTransfer | is the write transfer associated with transaction |
std::pair<int, R6Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd3 | ( | SynchronousSdMmcCardLowLevel & | sdCard | ) |
Executes CMD3 command on SD card.
This is SEND_RELATIVE_ADDR command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd32 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | address | ||
) |
Executes CMD32 command on SD card.
This is ERASE_WR_BLK_START_ADDR command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | address | is the address of first block marked for erase, bytes or blocks |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd33 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint32_t | address | ||
) |
Executes CMD33 command on SD card.
This is ERASE_WR_BLK_END_ADDR command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | address | is the address of last block marked for erase, bytes or blocks |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd38 | ( | SynchronousSdMmcCardLowLevel & | sdCard | ) |
Executes CMD38 command on SD card.
This is ERASE command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd55 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca | ||
) |
Executes CMD55 command on SD card.
This is APP_CMD command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd7 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca | ||
) |
Executes CMD7 command on SD card.
This is SELECT/DESELECT_CARD command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
std::pair<int, bool> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd8 | ( | SynchronousSdMmcCardLowLevel & | sdCard | ) |
Executes CMD8 command on SD card.
This is SEND_IF_COND command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
std::pair<int, Csd> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmd9 | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca | ||
) |
Executes CMD9 command on SD card.
This is SEND_CSD command.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
std::pair<Result, LongResponse> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithLongResponse | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has long response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
void distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithoutResponse | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument | ||
) |
Executes transaction with command that has no response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
std::pair<int, R1Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithR1Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has R1 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
std::pair<int, R2Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithR2Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has R2 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
std::pair<int, R3Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithR3Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has R3 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
std::pair<int, R6Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithR6Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has R6 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
std::pair<int, R7Response> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithR7Response | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has R7 response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
std::pair<Result, ShortResponse> distortos::devices::anonymous_namespace{SdCard.cpp}::executeCmdWithShortResponse | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint8_t | command, | ||
const uint32_t | argument, | ||
const SdMmcCardLowLevel::Transfer | transfer | ||
) |
Executes transaction with command that has short response.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | command | is the command that will be executed, [0; SdMmcCardLowLevel::maxCommand] |
[in] | argument | is the argument for command |
[in,out] | transfer | is the transfer associated with transaction |
int distortos::devices::anonymous_namespace{SdCard.cpp}::resultToErrorCode | ( | const Result | result | ) |
Converts result of transaction to error code.
[in] | result | is the result of transaction |
int distortos::devices::anonymous_namespace{SdCard.cpp}::waitForTransferState | ( | SynchronousSdMmcCardLowLevel & | sdCard, |
const uint16_t | rca, | ||
const TickClock::time_point | timePoint | ||
) |
Waits until card goes back to transfer (tran) state.
[in] | sdCard | is a reference to synchronous low-level SD/MMC card driver |
[in] | rca | is the relative card address |
[in] | timePoint | is the time point at which the wait will be terminated |