MCSPI channel object.
Data Fields | |
MCSPI_ChConfig | chCfg |
uint32_t | isOpen |
uint32_t | csDisable |
uint32_t | csEnable |
const uint8_t * | curTxBufPtr |
uint8_t * | curRxBufPtr |
uint32_t | curTxWords |
uint32_t | curRxWords |
uint8_t | bufWidthShift |
uint32_t | dataWidthBitMask |
uint32_t | effTxFifoDepth |
uint32_t | effRxFifoDepth |
uint32_t | intrMask |
MCSPI_DmaChConfig | dmaChCfg |
uint32_t | chConfRegVal |
uint32_t | chCtrlRegVal |
uint32_t | systRegVal |
MCSPI_ChConfig MCSPI_ChObject::chCfg |
Channel configuration as provided by user
uint32_t MCSPI_ChObject::isOpen |
Flag to indicate whether the instance is opened already
uint32_t MCSPI_ChObject::csDisable |
Flag to indicate disable chip select
uint32_t MCSPI_ChObject::csEnable |
Flag to indicate enable chip select
const uint8_t* MCSPI_ChObject::curTxBufPtr |
Current TX buffer pointer
uint8_t* MCSPI_ChObject::curRxBufPtr |
Current RX buffer pointer
uint32_t MCSPI_ChObject::curTxWords |
Number of words transmitted. We need seperate counters for TX/RX because when FIFO in enabled, TX writes happen in advance where as RX will happen on actual received data.
uint32_t MCSPI_ChObject::curRxWords |
Number of words received
uint8_t MCSPI_ChObject::bufWidthShift |
Width of buffer in bytes - used for accessing the TX/RX buffer. When dataWidth <= 8, bufWidth = uint8_t (1 byte - 0 shift) When dataWidth > 8 && <= 16, bufWidth = uint16_t (2 bytes - 1 shift) When dataWidth > 16 && <= 32, bufWidth = uint32_t (4 bytes - 2 shift)
uint32_t MCSPI_ChObject::dataWidthBitMask |
Data width mask depending on SPI word size
uint32_t MCSPI_ChObject::effTxFifoDepth |
Effective TX FIFO depth in words - depends on dataWidth
uint32_t MCSPI_ChObject::effRxFifoDepth |
Effective RX FIFO depth in words - depends on dataWidth
uint32_t MCSPI_ChObject::intrMask |
Interrupt mask to be used for enabling / checking interrupts.
MCSPI_DmaChConfig MCSPI_ChObject::dmaChCfg |
Channel Config Register Value.
uint32_t MCSPI_ChObject::chConfRegVal |
Channel Control Register Value.
uint32_t MCSPI_ChObject::chCtrlRegVal |
SYST Register Value.
uint32_t MCSPI_ChObject::systRegVal |