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()
| void daisy::Icm20948SpiTransport::Read |
( |
uint8_t * | data, |
|
|
uint16_t | size ) |
|
inline |
◆ Read8()
| uint8_t daisy::Icm20948SpiTransport::Read8 |
( |
uint8_t | reg | ) |
|
|
inline |
Reads an 8 bit value
- Parameters
-
| reg | the register address to read from |
- Returns
- the data uint8_t read from the device
◆ ReadReg()
| void daisy::Icm20948SpiTransport::ReadReg |
( |
uint8_t | reg, |
|
|
uint8_t * | buff, |
|
|
uint8_t | size ) |
|
inline |
Read from a reg address a defined number of bytes
◆ Write()
| void daisy::Icm20948SpiTransport::Write |
( |
uint8_t * | data, |
|
|
uint16_t | size ) |
|
inline |
◆ Write16()
| void daisy::Icm20948SpiTransport::Write16 |
( |
uint8_t | reg, |
|
|
uint16_t | value ) |
|
inline |
Writes a 16 bit value MSB first
- Parameters
-
| reg | the register address to write to |
| value | the value to write to the register |
◆ Write8()
| void daisy::Icm20948SpiTransport::Write8 |
( |
uint8_t | reg, |
|
|
uint8_t | value ) |
|
inline |
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: