SPIMaster_InitTransfers Function
Header: #include <applibs/spi.h>
Initializes an array of SPIMaster_Transfer structs with the default SPI master transfer settings.
static inline int SPIMaster_InitTransfers(SPIMaster_Transfer *transfers, size_t transferCount);
Parameters
transfers
A pointer to the array of SPIMaster_Transfer structs to initialize.transferCount
The number of structs in thetransfers
array.
Return value
Returns 0 for success, or -1 for failure, in which case errno
will be set to the error value.
Application manifest requirements
To access individual SPI interfaces, your application must identify them in the SpiMaster field of the application manifest.