APM:Libraries
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
AuxiliaryBusSlave Class Referenceabstract

#include <AuxiliaryBus.h>

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

Public Member Functions

virtual ~AuxiliaryBusSlave ()
 
virtual int passthrough_read (uint8_t reg, uint8_t *buf, uint8_t size)=0
 
virtual int passthrough_write (uint8_t reg, uint8_t val)=0
 
virtual int read (uint8_t *buf)=0
 

Protected Member Functions

 AuxiliaryBusSlave (AuxiliaryBus &bus, uint8_t addr, uint8_t instance)
 

Protected Attributes

AuxiliaryBus_bus
 
uint8_t _addr = 0
 
uint8_t _instance = 0
 
uint8_t _sample_reg_start = 0
 
uint8_t _sample_size = 0
 
bool _registered = false
 

Friends

class AuxiliaryBus
 

Detailed Description

Definition at line 30 of file AuxiliaryBus.h.

Constructor & Destructor Documentation

◆ ~AuxiliaryBusSlave()

AuxiliaryBusSlave::~AuxiliaryBusSlave ( )
virtual

Definition at line 15 of file AuxiliaryBus.cpp.

◆ AuxiliaryBusSlave()

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

Definition at line 7 of file AuxiliaryBus.cpp.

Member Function Documentation

◆ passthrough_read()

virtual int AuxiliaryBusSlave::passthrough_read ( uint8_t  reg,
uint8_t *  buf,
uint8_t  size 
)
pure virtual

◆ passthrough_write()

virtual int AuxiliaryBusSlave::passthrough_write ( uint8_t  reg,
uint8_t  val 
)
pure virtual

◆ read()

virtual int AuxiliaryBusSlave::read ( uint8_t *  buf)
pure virtual

Friends And Related Function Documentation

◆ AuxiliaryBus

friend class AuxiliaryBus
friend

Definition at line 32 of file AuxiliaryBus.h.

Member Data Documentation

◆ _addr

uint8_t AuxiliaryBusSlave::_addr = 0
protected

Definition at line 86 of file AuxiliaryBus.h.

Referenced by AP_Invensense_AuxiliaryBusSlave::_set_passthrough().

◆ _bus

AuxiliaryBus& AuxiliaryBusSlave::_bus
protected

◆ _instance

uint8_t AuxiliaryBusSlave::_instance = 0
protected

Definition at line 87 of file AuxiliaryBus.h.

Referenced by AuxiliaryBus::register_periodic_read().

◆ _registered

bool AuxiliaryBusSlave::_registered = false
protected

◆ _sample_reg_start

uint8_t AuxiliaryBusSlave::_sample_reg_start = 0
protected

Definition at line 89 of file AuxiliaryBus.h.

Referenced by AuxiliaryBus::register_periodic_read().

◆ _sample_size

uint8_t AuxiliaryBusSlave::_sample_size = 0
protected

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