Function Adxl345TransportImpl_doTransmitReceiveFrameImpl(const union Adxl345Transport_TxFrame *, union Adxl345Transport_RxFrame *, uint8_t)
Defined in File adxl345_transport_impl.c
Function Documentation
-
int Adxl345TransportImpl_doTransmitReceiveFrameImpl(const union Adxl345Transport_TxFrame *txFrame, union Adxl345Transport_RxFrame *rxFrame, uint8_t numBytesReceive)
Transmits and receives frames (read transaction).
Note: This automatically sets nCS before TX and clears nCS after completed RX.
- Parameters:
txFrame – data to send
rxFrame – receive data
numBytesReceive – expected size of received data
- Returns:
-EINVAL if invalid args, -EIO on TX/RX error, 0 otherwise