Hello,
I am using the HALCoGen 3.06 drivers for mibSpi. I'm using mibSpi1 with a physical wrap from SIMO to SOMI. I have HALCoGen set up using buffer mode 4, trigger source disabled, trigger event always, and oneshot. After initialization, the receive buffer words have RXEMPTY set. I use mibspiSetData() to initialize the transmit buffers, and mibspiTransfer() once to initiate the transfer. The data is transferred correctly with all status bits of each receive buffer set to 0. I then use mibspiGetData() to read the receive buffers. I expected the RXEMPTY bits to be set in all receive buffers as if the data was read from SPIBUF in compatibility mode, but they are left at 0. When I run mibspiTransfer() again, the RXOVR flag is set in all receive buffers. I assume this is because the RXEMPTY flags were not set when the last transfer started.
Is this a correct interpretation? Is there a way automatically clear the RXEMPTY flags in the receive buffers when the data is read out?
Thanks, Charlie Johnston