PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <BMI055.hpp>
Public Member Functions | |
BMI055 (const char *name, const char *devname, int bus, uint32_t device, enum spi_mode_e mode, uint32_t frequency, enum Rotation rotation) | |
virtual | ~BMI055 ()=default |
Protected Member Functions | |
uint8_t | read_reg (unsigned reg) |
Read a register from the BMI055. More... | |
uint16_t | read_reg16 (unsigned reg) |
void | write_reg (unsigned reg, uint8_t value) |
Write a register in the BMI055. More... | |
BMI055 (const BMI055 &) | |
BMI055 | operator= (const BMI055 &) |
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 52 of file BMI055.hpp.
|
protected |
BMI055::BMI055 | ( | 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 294 of file bmi055_main.cpp.
|
virtualdefault |
|
protected |
Read a register from the BMI055.
The | register to read. |
Definition at line 306 of file bmi055_main.cpp.
References DIR_READ.
Referenced by BMI055_gyro::check_registers(), BMI055_accel::check_registers(), BMI055_gyro::measure(), BMI055_gyro::modify_reg(), BMI055_accel::modify_reg(), BMI055_gyro::print_info(), BMI055_accel::print_info(), BMI055_gyro::print_registers(), BMI055_accel::print_registers(), BMI055_gyro::probe(), BMI055_accel::probe(), BMI055_gyro::reset(), and BMI055_accel::reset().
|
protected |
Definition at line 316 of file bmi055_main.cpp.
References DIR_READ.
|
protected |
Write a register in the BMI055.
reg | The register to write. |
value | The new value to write. |
Definition at line 326 of file bmi055_main.cpp.
References DIR_WRITE.
Referenced by BMI055_gyro::check_registers(), BMI055_accel::check_registers(), BMI055_gyro::reset(), BMI055_accel::reset(), BMI055_gyro::test_error(), BMI055_accel::test_error(), BMI055_gyro::write_checked_reg(), and BMI055_accel::write_checked_reg().
|
protected |
Definition at line 64 of file BMI055.hpp.
Referenced by BMI055_gyro::check_registers(), BMI055_accel::check_registers(), BMI055_gyro::print_info(), and BMI055_accel::print_info().
|
protected |
whoami result
Definition at line 59 of file BMI055.hpp.
Referenced by BMI055_gyro::check_registers(), BMI055_accel::check_registers(), BMI055_gyro::measure(), and BMI055_accel::measure().
|
protected |
Definition at line 60 of file BMI055.hpp.
Referenced by BMI055_gyro::check_registers(), BMI055_accel::check_registers(), BMI055_gyro::measure(), and BMI055_accel::measure().
|
protected |
Definition at line 62 of file BMI055.hpp.
|
protected |
Definition at line 57 of file BMI055.hpp.
Referenced by BMI055_gyro::probe(), and BMI055_accel::probe().