![]() |
Qwiic_9DoF_IMU_ICM20948_Py
2.0.0-4-gd37eebc
Python for SFE Qwiic ICM20948
|
Public Member Functions | |
| def | __init__ (self, address=None, i2c_driver=None) |
| def | isConnected (self) |
| Determine if a ICM20948 device is conntected to the system. More... | |
| def | setBank (self, bank) |
| Sets the bank register of the ICM20948 module. More... | |
| def | swReset (self) |
| Performs a software reset on the ICM20948 module. More... | |
| def | sleep (self, on) |
| Sets the ICM20948 module in or out of sleep mode. More... | |
| def | lowPower (self, on) |
| Sets the ICM20948 module in or out of low power mode. More... | |
| def | setSampleMode (self, sensors, mode) |
| Sets the sample mode of the ICM90248 module. More... | |
| def | setFullScaleRangeAccel (self, mode) |
| Sets the full scale range for the accel in the ICM20948 module. More... | |
| def | setFullScaleRangeGyro (self, mode) |
| Sets the full scale range for the gyro in the ICM20948 module. More... | |
| def | setDLPFcfgAccel (self, dlpcfg) |
| Sets the digital low pass filter for the accel in the ICM20948 module. More... | |
| def | setDLPFcfgGyro (self, dlpcfg) |
| Sets the digital low pass filter for the gyro in the ICM20948 module. More... | |
| def | enableDlpfAccel (self, on) |
| Enables or disables the accelerometer DLPF of the ICM90248 module. More... | |
| def | enableDlpfGyro (self, on) |
| Enables or disables the Gyro DLPF of the ICM90248 module. More... | |
| def | dataReady (self) |
| Returns status of RAW_DATA_0_RDY_INT the ICM90248 module. More... | |
| def | ToSignedInt (self, input) |
| Takes an input data of 16 bits, and returns the signed 32 bit int version of this data. More... | |
| def | getAgmt (self) |
| Reads and updates raw values from accel, gyro, mag and temp of the ICM90248 module. More... | |
| def | i2cMasterPassthrough (self, passthrough) |
| Enables or disables I2C Master Passthrough. More... | |
| def | i2cMasterEnable (self, enable) |
| Enables or disables I2C Master. More... | |
| def | ICM_20948_i2c_master_slv4_txn (self, addr, reg, data, Rw, send_reg_addr) |
| def | i2cMasterSingleW (self, addr, reg, data) |
| def | writeMag (self, reg, data) |
| def | i2cMasterSingleR (self, addr, reg) |
| def | readMag (self, reg) |
| def | magWhoIAm (self) |
| Checks to see that the Magnatometer returns the correct ID value. More... | |
| def | i2cMasterReset (self) |
| Resets I2C Master Module. More... | |
| def | i2cMasterConfigureSlave (self, slave, addr, reg, len, Rw, enable, data_only, grp, swap) |
| Configures Master/slave settings for the ICM20948 as master, and slave in slots 0-3. More... | |
| def | startupMagnetometer (self) |
| Initialize the magnotometer with default values. More... | |
| def | begin (self) |
| Initialize the operation of the ICM20948 module. More... | |
Public Attributes | |
| address | |
| axRaw | |
| ayRaw | |
| azRaw | |
| gxRaw | |
| gyRaw | |
| gzRaw | |
| tmpRaw | |
| magStat1 | |
| mxRaw | |
| myRaw | |
| mzRaw | |
| magStat2 | |
Properties | |
| connected = property(isConnected) | |
| address | The I2C address to use for the device. If not provided, the default address is used. |
| i2c_driver | An existing i2c driver object. If not provided a driver object is created. |
| def qwiic_icm20948.QwiicIcm20948.__init__ | ( | self, | |
address = None, |
|||
i2c_driver = None |
|||
| ) |
| def qwiic_icm20948.QwiicIcm20948.begin | ( | self | ) |
Initialize the operation of the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.dataReady | ( | self | ) |
Returns status of RAW_DATA_0_RDY_INT the ICM90248 module.
| def qwiic_icm20948.QwiicIcm20948.enableDlpfAccel | ( | self, | |
| on | |||
| ) |
Enables or disables the accelerometer DLPF of the ICM90248 module.
| def qwiic_icm20948.QwiicIcm20948.enableDlpfGyro | ( | self, | |
| on | |||
| ) |
Enables or disables the Gyro DLPF of the ICM90248 module.
| def qwiic_icm20948.QwiicIcm20948.getAgmt | ( | self | ) |
Reads and updates raw values from accel, gyro, mag and temp of the ICM90248 module.
| def qwiic_icm20948.QwiicIcm20948.i2cMasterConfigureSlave | ( | self, | |
| slave, | |||
| addr, | |||
| reg, | |||
| len, | |||
| Rw, | |||
| enable, | |||
| data_only, | |||
| grp, | |||
| swap | |||
| ) |
Configures Master/slave settings for the ICM20948 as master, and slave in slots 0-3.
| def qwiic_icm20948.QwiicIcm20948.i2cMasterEnable | ( | self, | |
| enable | |||
| ) |
Enables or disables I2C Master.
| def qwiic_icm20948.QwiicIcm20948.i2cMasterPassthrough | ( | self, | |
| passthrough | |||
| ) |
Enables or disables I2C Master Passthrough.
| def qwiic_icm20948.QwiicIcm20948.i2cMasterReset | ( | self | ) |
Resets I2C Master Module.
| def qwiic_icm20948.QwiicIcm20948.i2cMasterSingleR | ( | self, | |
| addr, | |||
| reg | |||
| ) |
| def qwiic_icm20948.QwiicIcm20948.i2cMasterSingleW | ( | self, | |
| addr, | |||
| reg, | |||
| data | |||
| ) |
| def qwiic_icm20948.QwiicIcm20948.ICM_20948_i2c_master_slv4_txn | ( | self, | |
| addr, | |||
| reg, | |||
| data, | |||
| Rw, | |||
| send_reg_addr | |||
| ) |
| def qwiic_icm20948.QwiicIcm20948.isConnected | ( | self | ) |
Determine if a ICM20948 device is conntected to the system.
| def qwiic_icm20948.QwiicIcm20948.lowPower | ( | self, | |
| on | |||
| ) |
Sets the ICM20948 module in or out of low power mode.
| def qwiic_icm20948.QwiicIcm20948.magWhoIAm | ( | self | ) |
Checks to see that the Magnatometer returns the correct ID value.
| def qwiic_icm20948.QwiicIcm20948.readMag | ( | self, | |
| reg | |||
| ) |
| def qwiic_icm20948.QwiicIcm20948.setBank | ( | self, | |
| bank | |||
| ) |
Sets the bank register of the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.setDLPFcfgAccel | ( | self, | |
| dlpcfg | |||
| ) |
Sets the digital low pass filter for the accel in the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.setDLPFcfgGyro | ( | self, | |
| dlpcfg | |||
| ) |
Sets the digital low pass filter for the gyro in the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.setFullScaleRangeAccel | ( | self, | |
| mode | |||
| ) |
Sets the full scale range for the accel in the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.setFullScaleRangeGyro | ( | self, | |
| mode | |||
| ) |
Sets the full scale range for the gyro in the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.setSampleMode | ( | self, | |
| sensors, | |||
| mode | |||
| ) |
Sets the sample mode of the ICM90248 module.
| def qwiic_icm20948.QwiicIcm20948.sleep | ( | self, | |
| on | |||
| ) |
Sets the ICM20948 module in or out of sleep mode.
| def qwiic_icm20948.QwiicIcm20948.startupMagnetometer | ( | self | ) |
Initialize the magnotometer with default values.
| def qwiic_icm20948.QwiicIcm20948.swReset | ( | self | ) |
Performs a software reset on the ICM20948 module.
| def qwiic_icm20948.QwiicIcm20948.ToSignedInt | ( | self, | |
| input | |||
| ) |
Takes an input data of 16 bits, and returns the signed 32 bit int version of this data.
| def qwiic_icm20948.QwiicIcm20948.writeMag | ( | self, | |
| reg, | |||
| data | |||
| ) |
| qwiic_icm20948.QwiicIcm20948.address |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| qwiic_icm20948.QwiicIcm20948.axRaw |
| qwiic_icm20948.QwiicIcm20948.ayRaw |
| qwiic_icm20948.QwiicIcm20948.azRaw |
|
static |
| qwiic_icm20948.QwiicIcm20948.gxRaw |
| qwiic_icm20948.QwiicIcm20948.gyRaw |
| qwiic_icm20948.QwiicIcm20948.gzRaw |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| qwiic_icm20948.QwiicIcm20948.magStat1 |
| qwiic_icm20948.QwiicIcm20948.magStat2 |
| qwiic_icm20948.QwiicIcm20948.mxRaw |
| qwiic_icm20948.QwiicIcm20948.myRaw |
| qwiic_icm20948.QwiicIcm20948.mzRaw |
|
static |
| qwiic_icm20948.QwiicIcm20948.tmpRaw |
|
static |