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

#include <AP_Compass_HMC5843.h>

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

Public Member Functions

 AP_HMC5843_BusDriver_HALDevice (AP_HAL::OwnPtr< AP_HAL::Device > dev)
 
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
 
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
 
void set_retries (uint8_t retries) override
 
- Public Member Functions inherited from AP_HMC5843_BusDriver
virtual ~AP_HMC5843_BusDriver ()
 
virtual bool configure ()
 
virtual bool start_measurements ()
 

Private Attributes

AP_HAL::OwnPtr< AP_HAL::Device_dev
 

Detailed Description

Definition at line 96 of file AP_Compass_HMC5843.h.

Constructor & Destructor Documentation

◆ AP_HMC5843_BusDriver_HALDevice()

AP_HMC5843_BusDriver_HALDevice::AP_HMC5843_BusDriver_HALDevice ( AP_HAL::OwnPtr< AP_HAL::Device dev)

Member Function Documentation

◆ block_read()

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

Implements AP_HMC5843_BusDriver.

◆ get_bus_id()

uint32_t AP_HMC5843_BusDriver_HALDevice::get_bus_id ( void  ) const
inlineoverridevirtual

Implements AP_HMC5843_BusDriver.

Definition at line 115 of file AP_Compass_HMC5843.h.

◆ get_semaphore()

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

Implements AP_HMC5843_BusDriver.

◆ register_periodic_callback()

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

Implements AP_HMC5843_BusDriver.

◆ register_read()

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

Implements AP_HMC5843_BusDriver.

◆ register_write()

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

Implements AP_HMC5843_BusDriver.

◆ set_device_type()

void AP_HMC5843_BusDriver_HALDevice::set_device_type ( uint8_t  devtype)
inlineoverridevirtual

Implements AP_HMC5843_BusDriver.

Definition at line 110 of file AP_Compass_HMC5843.h.

◆ set_retries()

void AP_HMC5843_BusDriver_HALDevice::set_retries ( uint8_t  retries)
inlineoverridevirtual

Reimplemented from AP_HMC5843_BusDriver.

Definition at line 119 of file AP_Compass_HMC5843.h.

Member Data Documentation

◆ _dev

AP_HAL::OwnPtr<AP_HAL::Device> AP_HMC5843_BusDriver_HALDevice::_dev
private

Definition at line 124 of file AP_Compass_HMC5843.h.


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