1.1.2.5 WDRV_WINC_SPISendReceive
C
bool WDRV_WINC_SPISendReceive
(
void* pTransmitData,
void* pReceiveData,
size_t size
);Description
This function sends and receives data from the module through the SPI bus.
Precondition
WDRV_WINC_SPIInitialize must have been called.
Parameters
| Parameters | Description |
|---|---|
| pTransmitData | Pointer to buffer containing data to send, or NULL. |
| pReceiveData | Pointer to buffer to receive data into, of NULL. |
| size | The input data size. |
Returns
true - Indicates success.
false - Indicates failure.
Remarks
Only half-duplex operation is required, so either pTransmitData or pReceiveData will be valid pointers while the other is set to NULL.
