The DlnSpiMasterReadWriteSS() function selects the specified SS line, transmits data via SPI bus and releases the SS line.
DlnSpiMasterReadWriteSS()
DLN_RESULT DlnSpiMasterReadWriteSS( HDLN handle, uint8_t port,
uint8_t ss, uint16_t size, uint8_t *writeBuffer, uint8_t *readBuffer );
A handle to the DLN-series adapter.
A number of the selected SPI master port.
The value on the SS lines. This value can include only one zero bit.
The size of the message buffer. This parameter is specified in bytes.
A pointer to an array of unsigned 8-bit integers that receives data to be sent to a slave.
A pointer to an array of unsigned 8-bit integers that receives data from the slave.
The function successfully transmitted data.
The port number is not valid. Use the DlnSpiMasterGetPortCount() function to find the maximum possible port number.
The SPI master port is disabled. Use the DlnSpiMasterEnable() function to activate the SPI master port.
The DlnSpiMasterReadWriteSS() function is defined in dln_spi_master.h file.
dln_spi_master.h