PX4 Firmware
PX4 Autopilot Software http://px4.io
BMI055 Class Reference

#include <BMI055.hpp>

Inheritance diagram for BMI055:
Collaboration diagram for BMI055:

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
 

Detailed Description

Definition at line 52 of file BMI055.hpp.

Constructor & Destructor Documentation

◆ BMI055() [1/2]

BMI055::BMI055 ( const BMI055 )
protected

◆ BMI055() [2/2]

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.

◆ ~BMI055()

virtual BMI055::~BMI055 ( )
virtualdefault

Member Function Documentation

◆ operator=()

BMI055 BMI055::operator= ( const BMI055 )
protected

◆ read_reg()

uint8_t BMI055::read_reg ( unsigned  reg)
protected

Read a register from the BMI055.

Parameters
Theregister to read.
Returns
The value that was 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().

Here is the caller graph for this function:

◆ read_reg16()

uint16_t BMI055::read_reg16 ( unsigned  reg)
protected

Definition at line 316 of file bmi055_main.cpp.

References DIR_READ.

◆ write_reg()

void BMI055::write_reg ( unsigned  reg,
uint8_t  value 
)
protected

Write a register in the BMI055.

Parameters
regThe register to write.
valueThe 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().

Here is the caller graph for this function:

Member Data Documentation

◆ _checked_next

uint8_t BMI055::_checked_next
protected

◆ _register_wait

uint8_t BMI055::_register_wait
protected

◆ _reset_wait

uint64_t BMI055::_reset_wait
protected

◆ _rotation

enum Rotation BMI055::_rotation
protected

Definition at line 62 of file BMI055.hpp.

◆ _whoami

uint8_t BMI055::_whoami
protected

Definition at line 57 of file BMI055.hpp.

Referenced by BMI055_gyro::probe(), and BMI055_accel::probe().


The documentation for this class was generated from the following files: