![]() |
Imt.Base C++ API V4.1.1.0
|
SD Error status enumeration Structure definition. More...
#include <Imt.Base.HAL.STM32F769/Peripherals/SDMMCTypes.h>
Public Types | |
enum | Id { CMD_CRC_FAIL = 1 << 0 , DATA_CRC_FAIL = 1 << 1 , CMD_RSP_TIMEOUT = 1 << 2 , DATA_TIMEOUT = 1 << 3 , TX_UNDERRUN = 1 << 4 , RX_OVERRUN = 1 << 5 , ADDR_MISALIGNED = 1 << 6 , BLOCK_LEN_ERR = 1 << 7 , ERASE_SEQ_ERR = 1 << 8 , BAD_ERASE_PARAM = 1 << 9 , WRITE_PROT_VIOLATION = 1 << 10 , LOCK_UNLOCK_FAILED = 1 << 11 , COM_CRC_FAILED = 1 << 12 , ILLEGAL_CMD = 1 << 13 , CARD_ECC_FAILED = 1 << 14 , CC_ERR = 1 << 15 , GENERAL_UNKNOWN_ERR = 1 << 16 , STREAM_READ_UNDERRUN = 1 << 17 , STREAM_WRITE_OVERRUN = 1 << 18 , CID_CSD_OVERWRITE = 1 << 19 , WP_ERASE_SKIP = 1 << 20 , CARD_ECC_DISABLED = 1 << 21 , ERASE_RESET = 1 << 22 , AKE_SEQ_ERR = 1 << 23 , INVALID_VOLTRANGE = 1 << 24 , ADDR_OUT_OF_RANGE = 1 << 25 , REQUEST_NOT_APPLICABLE = 1 << 26 , INVALID_PARAMETER = 1 << 27 , UNSUPPORTED_FEATURE = 1 << 28 , BUSY = 1 << 29 , DMA = 1 << 30 , TIMEOUT = 1 << 31 } |
Public Member Functions | |
Error () | |
Error & | operator|= (Error const &other) |
void | set (Id flag) |
bool | get (Id flag) |
void | clearAll () |
bool | isErr () const |
SD Error status enumeration Structure definition.
Definition at line 24 of file SDMMCTypes.h.
Enumerator | |
---|---|
CMD_CRC_FAIL | Command response received (but CRC check failed) |
DATA_CRC_FAIL | Data block sent/received (CRC check failed) |
CMD_RSP_TIMEOUT | Command response timeout. |
DATA_TIMEOUT | Data timeout. |
TX_UNDERRUN | Transmit FIFO underrun. |
RX_OVERRUN | Receive FIFO overrun. |
ADDR_MISALIGNED | Misaligned address. |
BLOCK_LEN_ERR | Transferred block length is not allowed for the card or the number of transferred bytes does not match the block length. |
ERASE_SEQ_ERR | An error in the sequence of erase command occurs. |
BAD_ERASE_PARAM | An invalid selection for erase groups. |
WRITE_PROT_VIOLATION | Attempt to program a write protect block. |
LOCK_UNLOCK_FAILED | Sequence or password error has been detected in unlock command or if there was an attempt to access a locked card. |
COM_CRC_FAILED | CRC check of the previous command failed. |
ILLEGAL_CMD | Command is not legal for the card state. |
CARD_ECC_FAILED | Card internal ECC was applied but failed to correct the data. |
CC_ERR | Internal card controller error. |
GENERAL_UNKNOWN_ERR | General or unknown error. |
STREAM_READ_UNDERRUN | The card could not sustain data reading in stream rmode. |
STREAM_WRITE_OVERRUN | The card could not sustain data programming in stream mode. |
CID_CSD_OVERWRITE | CID/CSD overwrite error. |
WP_ERASE_SKIP | Only partial address space was erased. |
CARD_ECC_DISABLED | Command has been executed without using internal ECC. |
ERASE_RESET | Erase sequence was cleared before executing because an out of erase sequence command was received. |
AKE_SEQ_ERR | Error in sequence of authentication. |
INVALID_VOLTRANGE | Error in case of invalid voltage range. |
ADDR_OUT_OF_RANGE | Error when addressed block is out of range. |
REQUEST_NOT_APPLICABLE | Error when command request is not applicable. |
INVALID_PARAMETER | the used parameter is not valid |
UNSUPPORTED_FEATURE | Error when feature is not insupported. |
BUSY | Error when transfer process is busy. |
DMA | |
TIMEOUT | Timeout error. |
Definition at line 33 of file SDMMCTypes.h.
|
inline |
Definition at line 25 of file SDMMCTypes.h.
|
inline |
Definition at line 80 of file SDMMCTypes.h.
Definition at line 71 of file SDMMCTypes.h.
|
inline |
Definition at line 85 of file SDMMCTypes.h.
|
inline |
Definition at line 28 of file SDMMCTypes.h.
|
inline |
Definition at line 68 of file SDMMCTypes.h.