__SDIO_GET_FLAG macro
Checks whether the specified SDIO flag is set or not.
Syntax
#define __SDIO_GET_FLAG(__INSTANCE__, __FLAG__) (((__INSTANCE__)->STA &(__FLAG__)) != 0U) Arguments
__INSTANCE__
Pointer to SDIO register base
__FLAG__
specifies the flag to check. This parameter can be one of the following values: @arg SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed) @arg SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed) @arg SDIO_FLAG_CTIMEOUT: Command response timeout @arg SDIO_FLAG_DTIMEOUT: Data timeout @arg SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error @arg SDIO_FLAG_RXOVERR: Received FIFO overrun error @arg SDIO_FLAG_CMDREND: Command response received (CRC check passed) @arg SDIO_FLAG_CMDSENT: Command sent (no response required) @arg SDIO_FLAG_DATAEND: Data end (data counter, DATACOUNT, is zero) @arg SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed) @arg SDIO_FLAG_CMDACT: Command transfer in progress @arg SDIO_FLAG_TXACT: Data transmit in progress @arg SDIO_FLAG_RXACT: Data receive in progress @arg SDIO_FLAG_TXFIFOHE: Transmit FIFO Half Empty @arg SDIO_FLAG_RXFIFOHF: Receive FIFO Half Full @arg SDIO_FLAG_TXFIFOF: Transmit FIFO full @arg SDIO_FLAG_RXFIFOF: Receive FIFO full @arg SDIO_FLAG_TXFIFOE: Transmit FIFO empty @arg SDIO_FLAG_RXFIFOE: Receive FIFO empty @arg SDIO_FLAG_TXDAVL: Data available in transmit FIFO @arg SDIO_FLAG_RXDAVL: Data available in receive FIFO @arg SDIO_FLAG_SDIOIT: SDIO interrupt received
Return value
The new state of SDIO_FLAG (SET or RESET).