Class daisy::Icm20948I2CTransport¶
ClassList > daisy > Icm20948I2CTransport
#include <icm20948.h>
Classes¶
| Type | Name |
|---|---|
| struct | Config |
Public Functions¶
| Type | Name |
|---|---|
| bool | GetError () |
| Icm20948I2CTransport () |
|
| void | Init (Config config) |
| void | Read (uint8_t * data, uint16_t size) |
| uint8_t | Read8 (uint8_t reg) |
| void | ReadReg (uint8_t reg, uint8_t * buff, uint8_t size) |
| void | Write (uint8_t * data, uint16_t size) |
| void | Write16 (uint8_t reg, uint16_t value) |
| void | Write8 (uint8_t reg, uint8_t value) |
| ~Icm20948I2CTransport () |
Detailed Description¶
I2C Transport for Icm20948
Public Functions Documentation¶
function GetError¶
function Icm20948I2CTransport¶
function Init¶
function Read¶
function Read8¶
Reads an 8 bit value
Parameters:
regthe register address to read from
Returns:
the 16 bit data value read from the device
function ReadReg¶
Read from a reg address a defined number of bytes
function Write¶
function Write16¶
Writes a 16 bit value MSB first
Parameters:
regthe register address to write tovaluethe value to write to the register
function Write8¶
Writes an 8 bit value
Parameters:
regthe register address to write tovaluethe value to write to the register
function ~Icm20948I2CTransport¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/icm20948.h