Function Adxl345TransportImpl_doTransmitFrameImpl(const union Adxl345Transport_TxFrame *, uint8_t, enum Adxl345Spi_Cs, enum Adxl345Spi_RwFlags)
Defined in File adxl345_transport_impl.c
Function Documentation
-
int Adxl345TransportImpl_doTransmitFrameImpl(const union Adxl345Transport_TxFrame *frame, uint8_t numBytes, enum Adxl345Spi_Cs applyCs, enum Adxl345Spi_RwFlags rwFlag)
Sends one single frame to ADXL345 via SPI interface.
See also
Adxl345TransportImpl_transmitReceiveFrame(union Adxl345TP_TxFrame *, union Adxl345TP_RxFrame *, uint8_t)
- Parameters:
frame – the payload to send via SPI
numBytes – size of frame
applyCs – whether or not to set nCS before and clear nCS after transmission
rwFlag – flag to indicate whether this transaction is write or read
- Returns:
-EINVAL if invalid args, -EIO on TX error, 0 otherwise