Struct Adxl345_Handle

Struct Documentation

struct Adxl345_Handle

The HW handle pointing to the underlying SPI communication implementation.

Public Members

int (*const doTransmitFrameImpl)(const union Adxl345Transport_TxFrame*, uint8_t, enum Adxl345Spi_Cs, enum Adxl345Spi_RwFlags)

Sending payload to SPI bus.

Context: main() and interrupts

Return:

int (*const doTransmitReceiveFrameImpl)(const union Adxl345Transport_TxFrame*, union Adxl345Transport_RxFrame*, uint8_t)

reading from sensor: send request to SPI then receive from SPI

Context: main() and interrupts