PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <BMI088.hpp>
Public Member Functions | |
BMI088 (const char *name, const char *devname, int bus, uint32_t device, enum spi_mode_e mode, uint32_t frequency, enum Rotation rotation) | |
virtual | ~BMI088 ()=default |
Protected Member Functions | |
virtual uint8_t | read_reg (unsigned reg) |
Read a register from the BMI088. More... | |
virtual uint16_t | read_reg16 (unsigned reg) |
void | write_reg (unsigned reg, uint8_t value) |
Write a register in the BMI088. More... | |
BMI088 (const BMI088 &) | |
BMI088 | operator= (const BMI088 &) |
Protected Attributes | |
uint8_t | _whoami |
uint8_t | _register_wait |
whoami result More... | |
uint64_t | _reset_wait |
enum Rotation | _rotation |
uint8_t | _checked_next |
Definition at line 53 of file BMI088.hpp.
|
protected |
BMI088::BMI088 | ( | const char * | name, |
const char * | devname, | ||
int | bus, | ||
uint32_t | device, | ||
enum spi_mode_e | mode, | ||
uint32_t | frequency, | ||
enum Rotation | rotation | ||
) |
Definition at line 295 of file bmi088_main.cpp.
|
virtualdefault |
|
protectedvirtual |
Read a register from the BMI088.
The | register to read. |
Reimplemented in BMI088_accel.
Definition at line 307 of file bmi088_main.cpp.
References DIR_READ.
Referenced by BMI088_gyro::check_registers(), BMI088_gyro::modify_reg(), BMI088_gyro::print_info(), BMI088_gyro::print_registers(), BMI088_gyro::probe(), and BMI088_gyro::reset().
|
protectedvirtual |
|
protected |
Write a register in the BMI088.
reg | The register to write. |
value | The new value to write. |
Definition at line 327 of file bmi088_main.cpp.
References DIR_WRITE.
Referenced by BMI088_gyro::check_registers(), BMI088_accel::check_registers(), BMI088_gyro::reset(), BMI088_accel::reset(), BMI088_gyro::test_error(), BMI088_accel::test_error(), BMI088_gyro::write_checked_reg(), and BMI088_accel::write_checked_reg().
|
protected |
Definition at line 65 of file BMI088.hpp.
Referenced by BMI088_gyro::check_registers(), BMI088_accel::check_registers(), BMI088_gyro::print_info(), and BMI088_accel::print_info().
|
protected |
whoami result
Definition at line 60 of file BMI088.hpp.
Referenced by BMI088_gyro::check_registers(), BMI088_accel::check_registers(), BMI088_gyro::measure(), and BMI088_accel::measure().
|
protected |
Definition at line 61 of file BMI088.hpp.
Referenced by BMI088_gyro::check_registers(), BMI088_accel::check_registers(), BMI088_gyro::measure(), and BMI088_accel::measure().
|
protected |
Definition at line 63 of file BMI088.hpp.
|
protected |
Definition at line 58 of file BMI088.hpp.
Referenced by BMI088_gyro::probe(), and BMI088_accel::probe().