Public Member Functions | Private Attributes | List of all members
HMC5883L Class Reference

#include <hmc5883l.h>

Public Member Functions

void cb (uint8_t result)
 
bool init (I2C *i2c_drv)
 
bool present ()
 
bool read (float mag_data[])
 
void update ()
 

Private Attributes

volatile float data_ [3]
 
I2Ci2c_
 
uint8_t i2c_buf_ [6]
 
uint32_t last_update_ms_
 
bool mag_present_
 
uint32_t next_update_ms_
 

Detailed Description

Definition at line 84 of file hmc5883l.h.

Member Function Documentation

void HMC5883L::cb ( uint8_t  result)

Definition at line 84 of file hmc5883l.cpp.

bool HMC5883L::init ( I2C i2c_drv)

Definition at line 38 of file hmc5883l.cpp.

bool HMC5883L::present ( )

Definition at line 68 of file hmc5883l.cpp.

bool HMC5883L::read ( float  mag_data[])

Definition at line 99 of file hmc5883l.cpp.

void HMC5883L::update ( )

Definition at line 75 of file hmc5883l.cpp.

Member Data Documentation

volatile float HMC5883L::data_[3]
private

Definition at line 96 of file hmc5883l.h.

I2C* HMC5883L::i2c_
private

Definition at line 94 of file hmc5883l.h.

uint8_t HMC5883L::i2c_buf_[6]
private

Definition at line 95 of file hmc5883l.h.

uint32_t HMC5883L::last_update_ms_
private

Definition at line 97 of file hmc5883l.h.

bool HMC5883L::mag_present_
private

Definition at line 99 of file hmc5883l.h.

uint32_t HMC5883L::next_update_ms_
private

Definition at line 98 of file hmc5883l.h.


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


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:24