#include <breezystm32.h>
#include <math.h>
Go to the source code of this file.
◆ HMC58X3_ADDR
#define HMC58X3_ADDR 0x1E |
◆ HMC58X3_CRA
◆ HMC58X3_CRA_AVG_2_MEAS
#define HMC58X3_CRA_AVG_2_MEAS 0x20 |
◆ HMC58X3_CRA_AVG_4_MEAS
#define HMC58X3_CRA_AVG_4_MEAS 0x40 |
◆ HMC58X3_CRA_AVG_8_MEAS
#define HMC58X3_CRA_AVG_8_MEAS 0x60 |
◆ HMC58X3_CRA_DO_0_75
#define HMC58X3_CRA_DO_0_75 0x00 |
◆ HMC58X3_CRA_DO_15
#define HMC58X3_CRA_DO_15 0x10 |
◆ HMC58X3_CRA_DO_1_5
#define HMC58X3_CRA_DO_1_5 0x04 |
◆ HMC58X3_CRA_DO_3
#define HMC58X3_CRA_DO_3 0x08 |
◆ HMC58X3_CRA_DO_30
#define HMC58X3_CRA_DO_30 0x14 |
◆ HMC58X3_CRA_DO_75
#define HMC58X3_CRA_DO_75 0x18 |
◆ HMC58X3_CRA_DO_7_5
#define HMC58X3_CRA_DO_7_5 0x0C |
◆ HMC58X3_CRA_MEAS_MODE_NEG_BIAS
#define HMC58X3_CRA_MEAS_MODE_NEG_BIAS 0x02 |
◆ HMC58X3_CRA_MEAS_MODE_NORMAL
#define HMC58X3_CRA_MEAS_MODE_NORMAL 0x00 |
◆ HMC58X3_CRA_MEAS_MODE_POS_BIAS
#define HMC58X3_CRA_MEAS_MODE_POS_BIAS 0x01 |
◆ HMC58X3_CRA_NO_AVG
#define HMC58X3_CRA_NO_AVG 0x00 |
◆ HMC58X3_CRB
◆ HMC58X3_CRB_GN_1090
#define HMC58X3_CRB_GN_1090 0x20 |
◆ HMC58X3_CRB_GN_1370
#define HMC58X3_CRB_GN_1370 0x00 |
◆ HMC58X3_CRB_GN_230
#define HMC58X3_CRB_GN_230 0xE0 |
◆ HMC58X3_CRB_GN_330
#define HMC58X3_CRB_GN_330 0xC0 |
◆ HMC58X3_CRB_GN_390
#define HMC58X3_CRB_GN_390 0xA0 |
◆ HMC58X3_CRB_GN_440
#define HMC58X3_CRB_GN_440 0x80 |
◆ HMC58X3_CRB_GN_660
#define HMC58X3_CRB_GN_660 0x60 |
◆ HMC58X3_CRB_GN_820
#define HMC58X3_CRB_GN_820 0x40 |
◆ HMC58X3_DATA
#define HMC58X3_DATA 0x03 |
◆ HMC58X3_ID1
◆ HMC58X3_ID2
◆ HMC58X3_ID3
◆ HMC58X3_MODE
#define HMC58X3_MODE 0x02 |
◆ HMC58X3_MODE_CONTINUOUS
#define HMC58X3_MODE_CONTINUOUS 0x00 |
◆ HMC58X3_MODE_HS
#define HMC58X3_MODE_HS 0x80 |
◆ HMC58X3_MODE_IDLE
#define HMC58X3_MODE_IDLE 0x02 |
◆ HMC58X3_MODE_SINGLE
#define HMC58X3_MODE_SINGLE 0x01 |
◆ HMC58X3_SR_LOCK
#define HMC58X3_SR_LOCK 0x02 |
◆ HMC58X3_SR_RDY
#define HMC58X3_SR_RDY 0x01 |
◆ HMC58X3_STATUS
#define HMC58X3_STATUS 0x09 |
◆ HMC58X3_TIMEOUT
#define HMC58X3_TIMEOUT 30000 |
◆ hmc5883l_async_read()
void hmc5883l_async_read |
( |
float * |
mag_data | ) |
|
◆ hmc5883l_present()
bool hmc5883l_present |
( |
| ) |
|
◆ hmc5883l_request_async_update()
void hmc5883l_request_async_update |
( |
| ) |
|
◆ hmc5883lInit()
◆ read_cb()
void read_cb |
( |
uint8_t |
result | ) |
|
|
static |
◆ cmd
◆ data_
◆ i2c_buf_
◆ last_update_ms_
◆ mag_present_
◆ next_update_ms_