DlnSpiMasterReadWrite16() Function
DLN_RESULT DlnSpiMasterReadWrite16(
HDLN handle,
uint8_t port,
uint16_t count,
uint16_t* writeBuffer,
uint16_t* readBuffer
);
The DlnSpiMasterReadWrite16() function sends and receives 2-byte frames via SPI.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the SPI master port.
- count
- The number of 2-byte array elements.
- writeBuffer
- A pointer to an array of unsigned 16-bit integer. This array must be filled with data to be sent to slave during the function execution.
- readBuffer
- A pointer to an array unsigned 16-bit integer. This array will be filled with data received from slave during the function execution.
This function is defined in the dln_spi_master.h file.
2006-2012