APM:Libraries
Public Member Functions | Private Attributes | List of all members
AP_HMC5843_BusDriver_Auxiliary Class Reference

#include <AP_Compass_HMC5843.h>

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

Public Member Functions

 AP_HMC5843_BusDriver_Auxiliary (AP_InertialSensor &ins, uint8_t backend_id, uint8_t addr)
 
virtual ~AP_HMC5843_BusDriver_Auxiliary ()
 
bool block_read (uint8_t reg, uint8_t *buf, uint32_t size) override
 
bool register_read (uint8_t reg, uint8_t *val) override
 
bool register_write (uint8_t reg, uint8_t val) override
 
AP_HAL::Semaphoreget_semaphore () override
 
bool configure () override
 
bool start_measurements () override
 
AP_HAL::Device::PeriodicHandle register_periodic_callback (uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
 
void set_device_type (uint8_t devtype) override
 
uint32_t get_bus_id (void) const override
 
- Public Member Functions inherited from AP_HMC5843_BusDriver
virtual ~AP_HMC5843_BusDriver ()
 
virtual void set_retries (uint8_t retries)
 

Private Attributes

AuxiliaryBus_bus
 
AuxiliaryBusSlave_slave
 
bool _started
 

Detailed Description

Definition at line 127 of file AP_Compass_HMC5843.h.

Constructor & Destructor Documentation

◆ AP_HMC5843_BusDriver_Auxiliary()

AP_HMC5843_BusDriver_Auxiliary::AP_HMC5843_BusDriver_Auxiliary ( AP_InertialSensor ins,
uint8_t  backend_id,
uint8_t  addr 
)

◆ ~AP_HMC5843_BusDriver_Auxiliary()

virtual AP_HMC5843_BusDriver_Auxiliary::~AP_HMC5843_BusDriver_Auxiliary ( )
virtual

Member Function Documentation

◆ block_read()

bool AP_HMC5843_BusDriver_Auxiliary::block_read ( uint8_t  reg,
uint8_t *  buf,
uint32_t  size 
)
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ configure()

bool AP_HMC5843_BusDriver_Auxiliary::configure ( )
overridevirtual

Reimplemented from AP_HMC5843_BusDriver.

◆ get_bus_id()

uint32_t AP_HMC5843_BusDriver_Auxiliary::get_bus_id ( void  ) const
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ get_semaphore()

AP_HAL::Semaphore* AP_HMC5843_BusDriver_Auxiliary::get_semaphore ( )
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ register_periodic_callback()

AP_HAL::Device::PeriodicHandle AP_HMC5843_BusDriver_Auxiliary::register_periodic_callback ( uint32_t  period_usec,
AP_HAL::Device::PeriodicCb   
)
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ register_read()

bool AP_HMC5843_BusDriver_Auxiliary::register_read ( uint8_t  reg,
uint8_t *  val 
)
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ register_write()

bool AP_HMC5843_BusDriver_Auxiliary::register_write ( uint8_t  reg,
uint8_t  val 
)
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ set_device_type()

void AP_HMC5843_BusDriver_Auxiliary::set_device_type ( uint8_t  devtype)
overridevirtual

Implements AP_HMC5843_BusDriver.

◆ start_measurements()

bool AP_HMC5843_BusDriver_Auxiliary::start_measurements ( )
overridevirtual

Reimplemented from AP_HMC5843_BusDriver.

Member Data Documentation

◆ _bus

AuxiliaryBus* AP_HMC5843_BusDriver_Auxiliary::_bus
private

Definition at line 152 of file AP_Compass_HMC5843.h.

◆ _slave

AuxiliaryBusSlave* AP_HMC5843_BusDriver_Auxiliary::_slave
private

Definition at line 153 of file AP_Compass_HMC5843.h.

◆ _started

bool AP_HMC5843_BusDriver_Auxiliary::_started
private

Definition at line 154 of file AP_Compass_HMC5843.h.


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