APM:Libraries
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
AP_Invensense_AuxiliaryBusSlave Class Reference

#include <AP_InertialSensor_Invensense.h>

Inheritance diagram for AP_Invensense_AuxiliaryBusSlave:
[legend]
Collaboration diagram for AP_Invensense_AuxiliaryBusSlave:
[legend]

Public Member Functions

int passthrough_read (uint8_t reg, uint8_t *buf, uint8_t size) override
 
int passthrough_write (uint8_t reg, uint8_t val) override
 
int read (uint8_t *buf) override
 
- Public Member Functions inherited from AuxiliaryBusSlave
virtual ~AuxiliaryBusSlave ()
 

Protected Member Functions

 AP_Invensense_AuxiliaryBusSlave (AuxiliaryBus &bus, uint8_t addr, uint8_t instance)
 
int _set_passthrough (uint8_t reg, uint8_t size, uint8_t *out=nullptr)
 
- Protected Member Functions inherited from AuxiliaryBusSlave
 AuxiliaryBusSlave (AuxiliaryBus &bus, uint8_t addr, uint8_t instance)
 

Private Attributes

const uint8_t _mpu_addr
 
const uint8_t _mpu_reg
 
const uint8_t _mpu_ctrl
 
const uint8_t _mpu_do
 
uint8_t _ext_sens_data = 0
 

Friends

class AP_Invensense_AuxiliaryBus
 

Additional Inherited Members

- Protected Attributes inherited from AuxiliaryBusSlave
AuxiliaryBus_bus
 
uint8_t _addr = 0
 
uint8_t _instance = 0
 
uint8_t _sample_reg_start = 0
 
uint8_t _sample_size = 0
 
bool _registered = false
 

Detailed Description

Definition at line 161 of file AP_InertialSensor_Invensense.h.

Constructor & Destructor Documentation

◆ AP_Invensense_AuxiliaryBusSlave()

AP_Invensense_AuxiliaryBusSlave::AP_Invensense_AuxiliaryBusSlave ( AuxiliaryBus bus,
uint8_t  addr,
uint8_t  instance 
)
protected

Definition at line 844 of file AP_InertialSensor_Invensense.cpp.

Member Function Documentation

◆ _set_passthrough()

int AP_Invensense_AuxiliaryBusSlave::_set_passthrough ( uint8_t  reg,
uint8_t  size,
uint8_t *  out = nullptr 
)
protected

Definition at line 854 of file AP_InertialSensor_Invensense.cpp.

Referenced by AP_Invensense_AuxiliaryBus::_configure_periodic_read(), passthrough_read(), and passthrough_write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ passthrough_read()

int AP_Invensense_AuxiliaryBusSlave::passthrough_read ( uint8_t  reg,
uint8_t *  buf,
uint8_t  size 
)
overridevirtual

Implements AuxiliaryBusSlave.

Definition at line 877 of file AP_InertialSensor_Invensense.cpp.

Here is the call graph for this function:

◆ passthrough_write()

int AP_Invensense_AuxiliaryBusSlave::passthrough_write ( uint8_t  reg,
uint8_t  val 
)
overridevirtual

Implements AuxiliaryBusSlave.

Definition at line 906 of file AP_InertialSensor_Invensense.cpp.

Here is the call graph for this function:

◆ read()

int AP_Invensense_AuxiliaryBusSlave::read ( uint8_t *  buf)
overridevirtual

Implements AuxiliaryBusSlave.

Definition at line 929 of file AP_InertialSensor_Invensense.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ AP_Invensense_AuxiliaryBus

friend class AP_Invensense_AuxiliaryBus
friend

Definition at line 163 of file AP_InertialSensor_Invensense.h.

Member Data Documentation

◆ _ext_sens_data

uint8_t AP_Invensense_AuxiliaryBusSlave::_ext_sens_data = 0
private

◆ _mpu_addr

const uint8_t AP_Invensense_AuxiliaryBusSlave::_mpu_addr
private

Definition at line 176 of file AP_InertialSensor_Invensense.h.

Referenced by _set_passthrough().

◆ _mpu_ctrl

const uint8_t AP_Invensense_AuxiliaryBusSlave::_mpu_ctrl
private

◆ _mpu_do

const uint8_t AP_Invensense_AuxiliaryBusSlave::_mpu_do
private

Definition at line 179 of file AP_InertialSensor_Invensense.h.

Referenced by _set_passthrough().

◆ _mpu_reg

const uint8_t AP_Invensense_AuxiliaryBusSlave::_mpu_reg
private

Definition at line 177 of file AP_InertialSensor_Invensense.h.

Referenced by _set_passthrough().


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