|
DevLab_ICM20948 1.0.0
ICM-20948 9-Axis Motion Sensor Driver
|
#include <7Semi_SPI_Interface.h>
Public Member Functions | |
| bool | beginSPI (uint8_t csPin, SPIClass &spiPort, uint32_t spiSpeed, uint8_t sck=255, uint8_t miso=255, uint8_t mosi=255) override |
| bool | beginI2C (uint8_t, TwoWire &, uint32_t, uint8_t, uint8_t) override |
| int8_t | read (uint8_t reg, uint8_t *data, uint32_t len) override |
| int8_t | write (uint8_t reg, const uint8_t *data, uint32_t len) override |
Public Member Functions inherited from Interface_7Semi | |
| virtual | ~Interface_7Semi () |
Public Attributes | |
| SPIClass * | spi = nullptr |
| uint8_t | cs = 255 |
| uint32_t | speed = 1000000 |
Additional Inherited Members | |
Static Protected Member Functions inherited from Interface_7Semi | |
| static void | delay_us (uint32_t us) |
7Semi SPI Interface Implementation
Definition at line 7 of file 7Semi_SPI_Interface.h.
|
inlineoverridevirtual |
Returns:
Implements Interface_7Semi.
Definition at line 51 of file 7Semi_SPI_Interface.h.
|
inlineoverridevirtual |
Implements Interface_7Semi.
Definition at line 21 of file 7Semi_SPI_Interface.h.
|
inlineoverridevirtual |
Send register address (read)
Read data
Implements Interface_7Semi.
Definition at line 62 of file 7Semi_SPI_Interface.h.
|
inlineoverridevirtual |
Send register address (write)
Write data
Implements Interface_7Semi.
Definition at line 108 of file 7Semi_SPI_Interface.h.
| uint8_t SPI_Interface::cs = 255 |
Definition at line 12 of file 7Semi_SPI_Interface.h.
| uint32_t SPI_Interface::speed = 1000000 |
Definition at line 13 of file 7Semi_SPI_Interface.h.
| SPIClass* SPI_Interface::spi = nullptr |
Definition at line 11 of file 7Semi_SPI_Interface.h.