82 uint8_t *aInputBuf, uint16_t aInputBufLen,
83 uint16_t aTransactionLength);
164 uint16_t aInputBufLen,
bool aRequestTransactionFlag);
175 #endif // SPI_SLAVE_H_ This file defines the types and structures used in the OpenThread library API.
otError otPlatSpiSlaveEnable(otPlatSpiSlaveTransactionCompleteCallback aCompleteCallback, otPlatSpiSlaveTransactionProcessCallback aProcessCallback, void *aContext)
Initialize the SPI slave interface.
void(* otPlatSpiSlaveTransactionProcessCallback)(void *aContext)
Invoked after a transaction complete callback is called and returns TRUE to do any further processing...
Definition: spi-slave.h:94
void otPlatSpiSlaveDisable(void)
Shutdown and disable the SPI slave interface.
bool(* otPlatSpiSlaveTransactionCompleteCallback)(void *aContext, uint8_t *aOutputBuf, uint16_t aOutputBufLen, uint8_t *aInputBuf, uint16_t aInputBufLen, uint16_t aTransactionLength)
Indicates that a SPI transaction has completed with the given length.
Definition: spi-slave.h:81
otError otPlatSpiSlavePrepareTransaction(uint8_t *aOutputBuf, uint16_t aOutputBufLen, uint8_t *aInputBuf, uint16_t aInputBufLen, bool aRequestTransactionFlag)
Prepare data for the next SPI transaction.
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107