Function tlx493d_transfer
Defined in File CommunicationInterface.h
Function Documentation
-
bool tlx493d_transfer(TLx493D_t *sensor, uint8_t *txBuffer, uint8_t txLen, uint8_t *rxBuffer, uint8_t rxLen)
The function
tlx493d_transferis a generic function to transfer data. It is implemented for each communication interface offered by the different senors (SPI, I2C, etc.).- Parameters:
sensor – [inout] A pointer to a TLx493D_t struct, which represents the TLx493D sensor.
txBuffer – [inout] Buffer for the data that should be transferred.
txLen – [in] Length of the transfer buffer.
rxBuffer – [inout] Buffer for the data that should be received.
rxLen – [in] Length of the receive buffer.
- Return values:
false – Error.
true – Transfer of the data was successful.
- Returns:
The function
tlx493d_transferis returning a boolean value.