JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/Core/IMUi2c.H>
IMU with I2C interface shared with camera sensor, such as ICM20948 on JeVois-A33 AR0135 camera sensor board.
Public Member Functions | |
IMUi2c (std::shared_ptr< Camera > cam) | |
Constructor. | |
virtual | ~IMUi2c () |
Destructor. | |
virtual bool | isSPI () const override |
Returns true if we use SPI for transfers. Used when ICM20948_REG_USER_CTRL is written to. | |
Access functions for IMU registers | |
void | writeRegister (unsigned short reg, unsigned char val) override |
Write a value to one of the IMU registers. | |
unsigned char | readRegister (unsigned short reg) override |
Read a value from one of the camera's IMU registers. | |
void | writeRegisterArray (unsigned short reg, unsigned char const *vals, size_t num) override |
Write an array of values to the camera's IMU registers. | |
void | readRegisterArray (unsigned short reg, unsigned char *vals, size_t num) override |
Read an array of values from the camera's IMU registers. | |
Public Member Functions inherited from jevois::IMU | |
IMU () | |
Constructor. | |
virtual | ~IMU () |
Destructor. | |
void | loadDMPfirmware (bool verify=false, bool errthrow=false) |
Load the DMP firmware. | |
void | writeDMPregister (unsigned short reg, unsigned short val) |
Write a value to a DMP register. | |
unsigned short | readDMPregister (unsigned short reg) |
Read a value from a DMP register. | |
void | writeDMPregisterArray (unsigned short reg, unsigned char const *vals, size_t num) |
Write an array of values to DMP registers. | |
void | readDMPregisterArray (unsigned short reg, unsigned char *vals, size_t num) |
Read an array of values from DMP registers. | |
jevois::IMUi2c::IMUi2c | ( | std::shared_ptr< Camera > | cam | ) |
|
overridevirtual |
Returns true if we use SPI for transfers. Used when ICM20948_REG_USER_CTRL is written to.
Implements jevois::IMU.
|
overridevirtual |
Read a value from one of the camera's IMU registers.
See base class jevois::IMU for full docs.
Implements jevois::IMU.
|
overridevirtual |
Read an array of values from the camera's IMU registers.
See base class jevois::IMU for full docs.
Implements jevois::IMU.
|
overridevirtual |
Write a value to one of the IMU registers.
See base class jevois::IMU for full docs.
Implements jevois::IMU.
|
overridevirtual |
Write an array of values to the camera's IMU registers.
See base class jevois::IMU for full docs.
Implements jevois::IMU.