MIBSPI_Transaction data structure is used with MIBSPI_transfer(). It indicates how many MIBSPI_FrameFormat frames are sent and received from the buffers pointed to txBuf and rxBuf.
Data Fields | |
| uint32_t | count |
| void * | txBuf |
| void * | rxBuf |
| void * | arg |
| MIBSPI_Status | status |
| uint8_t | peripheralIndex |
| uint32_t MIBSPI_Transaction::count |
Number of frames for this transaction
| void* MIBSPI_Transaction::txBuf |
void * to a buffer with data to be transmitted
| void* MIBSPI_Transaction::rxBuf |
void * to a buffer to receive data
| void* MIBSPI_Transaction::arg |
Argument to be passed to the callback function
| MIBSPI_Status MIBSPI_Transaction::status |
Status code set by SPI_transfer
| uint8_t MIBSPI_Transaction::peripheralIndex |
Index of the peripheral enabled for this transfer