SPI Transport for Icm20948
#include <icm20948.h>
◆ Icm20948SpiTransport()
daisy::Icm20948SpiTransport::Icm20948SpiTransport |
( |
| ) |
|
|
inline |
◆ ~Icm20948SpiTransport()
daisy::Icm20948SpiTransport::~Icm20948SpiTransport |
( |
| ) |
|
|
inline |
◆ GetError()
bool daisy::Icm20948SpiTransport::GetError |
( |
| ) |
|
|
inline |
◆ Init()
void daisy::Icm20948SpiTransport::Init |
( |
Config |
config | ) |
|
|
inline |
◆ Read()
◆ Read8()
Reads an 8 bit value
- Parameters
-
reg | the register address to read from |
- Returns
- the data uint8_t read from the device
◆ ReadReg()
Read from a reg address a defined number of bytes
◆ Write()
◆ Write16()
Writes a 16 bit value MSB first
- Parameters
-
reg | the register address to write to |
value | the value to write to the register |
◆ Write8()
Writes an 8 bit value
- Parameters
-
reg | the register address to write to |
value | the value to write to the register |
The documentation for this class was generated from the following file: