#include <hmc5883l.h>
Public Member Functions | |
void | cb (uint8_t result) |
bool | init (I2C *i2c_drv) |
bool | is_initialized () |
bool | present () |
bool | read (float mag_data[]) |
void | update () |
Private Attributes | |
volatile float | data_ [3] |
I2C * | i2c_ {nullptr} |
uint8_t | i2c_buf_ [6] |
uint32_t | last_update_ms_ |
bool | mag_present_ {false} |
uint32_t | next_update_ms_ |
Definition at line 83 of file hmc5883l.h.
void HMC5883L::cb | ( | uint8_t | result | ) |
Definition at line 85 of file hmc5883l.cpp.
bool HMC5883L::init | ( | I2C * | i2c_drv | ) |
Definition at line 37 of file hmc5883l.cpp.
|
inline |
Definition at line 91 of file hmc5883l.h.
bool HMC5883L::present | ( | ) |
Definition at line 69 of file hmc5883l.cpp.
bool HMC5883L::read | ( | float | mag_data[] | ) |
Definition at line 100 of file hmc5883l.cpp.
void HMC5883L::update | ( | ) |
Definition at line 76 of file hmc5883l.cpp.
|
private |
Definition at line 96 of file hmc5883l.h.
|
private |
Definition at line 94 of file hmc5883l.h.
|
private |
Definition at line 95 of file hmc5883l.h.
|
private |
Definition at line 97 of file hmc5883l.h.
|
private |
Definition at line 99 of file hmc5883l.h.
|
private |
Definition at line 98 of file hmc5883l.h.