PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Public Member Functions | |
ICM20948_SPI (int bus, uint32_t device) | |
~ICM20948_SPI () override=default | |
int | read (unsigned address, void *data, unsigned count) override |
int | write (unsigned address, void *data, unsigned count) override |
Protected Member Functions | |
int | probe () override |
Private Member Functions | |
void | set_bus_frequency (unsigned ®_speed_reg_out) |
Definition at line 64 of file icm20948_spi.cpp.
ICM20948_SPI::ICM20948_SPI | ( | int | bus, |
uint32_t | device | ||
) |
Definition at line 92 of file icm20948_spi.cpp.
References DRV_DEVTYPE_ICM20948.
|
overridedefault |
|
overrideprotected |
Definition at line 163 of file icm20948_spi.cpp.
References ICM_WHOAMI_20948, MPUREG_WHOAMI, OK, and read().
|
override |
Definition at line 127 of file icm20948_spi.cpp.
References data, DIR_READ, OK, and set_bus_frequency().
Referenced by probe().
|
private |
Definition at line 99 of file icm20948_spi.cpp.
References ICM20948_HIGH_SPI_BUS_SPEED, ICM20948_IS_HIGH_SPEED, ICM20948_LOW_SPI_BUS_SPEED, and ICM20948_REG.
Referenced by read(), and write().
|
override |
Definition at line 109 of file icm20948_spi.cpp.
References DIR_WRITE, and set_bus_frequency().