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

#include <AP_Compass_AK8963.h>

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

Public Member Functions

 AP_AK8963_BusDriver_Auxiliary (AP_InertialSensor &ins, uint8_t backend_id, uint8_t backend_instance, uint8_t addr)
 
 ~AP_AK8963_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::Device::PeriodicHandle register_periodic_callback (uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
 
AP_HAL::Semaphoreget_semaphore () override
 
bool configure ()
 
bool start_measurements ()
 
void set_device_type (uint8_t devtype) override
 
uint32_t get_bus_id (void) const override
 
- Public Member Functions inherited from AP_AK8963_BusDriver
virtual ~AP_AK8963_BusDriver ()
 

Private Attributes

AuxiliaryBus_bus
 
AuxiliaryBusSlave_slave
 
bool _started
 

Detailed Description

Definition at line 116 of file AP_Compass_AK8963.h.

Constructor & Destructor Documentation

◆ AP_AK8963_BusDriver_Auxiliary()

AP_AK8963_BusDriver_Auxiliary::AP_AK8963_BusDriver_Auxiliary ( AP_InertialSensor ins,
uint8_t  backend_id,
uint8_t  backend_instance,
uint8_t  addr 
)

Definition at line 337 of file AP_Compass_AK8963.cpp.

Here is the call graph for this function:

◆ ~AP_AK8963_BusDriver_Auxiliary()

AP_AK8963_BusDriver_Auxiliary::~AP_AK8963_BusDriver_Auxiliary ( )

Definition at line 352 of file AP_Compass_AK8963.cpp.

Member Function Documentation

◆ block_read()

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

Implements AP_AK8963_BusDriver.

Definition at line 360 of file AP_Compass_AK8963.cpp.

◆ configure()

bool AP_AK8963_BusDriver_Auxiliary::configure ( )
virtual

Reimplemented from AP_AK8963_BusDriver.

Definition at line 393 of file AP_Compass_AK8963.cpp.

◆ get_bus_id()

uint32_t AP_AK8963_BusDriver_Auxiliary::get_bus_id ( void  ) const
overridevirtual

Implements AP_AK8963_BusDriver.

Definition at line 424 of file AP_Compass_AK8963.cpp.

◆ get_semaphore()

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

Implements AP_AK8963_BusDriver.

Definition at line 388 of file AP_Compass_AK8963.cpp.

◆ register_periodic_callback()

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

Implements AP_AK8963_BusDriver.

Definition at line 412 of file AP_Compass_AK8963.cpp.

◆ register_read()

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

Implements AP_AK8963_BusDriver.

Definition at line 378 of file AP_Compass_AK8963.cpp.

◆ register_write()

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

Implements AP_AK8963_BusDriver.

Definition at line 383 of file AP_Compass_AK8963.cpp.

◆ set_device_type()

void AP_AK8963_BusDriver_Auxiliary::set_device_type ( uint8_t  devtype)
overridevirtual

Implements AP_AK8963_BusDriver.

Definition at line 418 of file AP_Compass_AK8963.cpp.

◆ start_measurements()

bool AP_AK8963_BusDriver_Auxiliary::start_measurements ( )
virtual

Reimplemented from AP_AK8963_BusDriver.

Definition at line 401 of file AP_Compass_AK8963.cpp.

Member Data Documentation

◆ _bus

AuxiliaryBus* AP_AK8963_BusDriver_Auxiliary::_bus
private

Definition at line 141 of file AP_Compass_AK8963.h.

◆ _slave

AuxiliaryBusSlave* AP_AK8963_BusDriver_Auxiliary::_slave
private

Definition at line 142 of file AP_Compass_AK8963.h.

◆ _started

bool AP_AK8963_BusDriver_Auxiliary::_started
private

Definition at line 143 of file AP_Compass_AK8963.h.


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