daisy::Icm20948I2CTransport¶
Module: External
#include <icm20948.h>
Public Classes¶
Name | |
---|---|
struct | Config |
Public Functions¶
Name | |
---|---|
Icm20948I2CTransport() | |
~Icm20948I2CTransport() | |
void | Init(Config config) |
void | Write(uint8_t * data, uint16_t size) |
void | Read(uint8_t * data, uint16_t size) |
void | Write8(uint8_t reg, uint8_t value) |
void | Write16(uint8_t reg, uint16_t value) |
void | ReadReg(uint8_t reg, uint8_t * buff, uint8_t size) |
uint8_t | Read8(uint8_t reg) |
bool | GetError() |
Detailed Description¶
I2C Transport for Icm20948
Public Functions Documentation¶
function Icm20948I2CTransport¶
function ~Icm20948I2CTransport¶
function Init¶
function Write¶
function Read¶
function Write8¶
Parameters:
- reg the register address to write to
- value the value to write to the register
Writes an 8 bit value
function Write16¶
Parameters:
- reg the register address to write to
- value the value to write to the register
Writes a 16 bit value MSB first
function ReadReg¶
Read from a reg address a defined number of bytes
function Read8¶
Parameters:
- reg the register address to read from
Return: the 16 bit data value read from the device
Reads an 8 bit value
function GetError¶
---¶
Updated on 2024-01-03 at 19:41:01 +0000