Classes | Macros
hmc5883l.h File Reference
#include "i2c.h"
#include "system.h"
Include dependency graph for hmc5883l.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HMC5883L
 

Macros

#define HMC58X3_ADDR   0x1E
 
#define HMC58X3_CRA   0x00
 
#define HMC58X3_CRA_AVG_2_MEAS   0x20
 
#define HMC58X3_CRA_AVG_4_MEAS   0x40
 
#define HMC58X3_CRA_AVG_8_MEAS   0x60
 
#define HMC58X3_CRA_DO_0_75   0x00
 
#define HMC58X3_CRA_DO_15   0x10
 
#define HMC58X3_CRA_DO_1_5   0x04
 
#define HMC58X3_CRA_DO_3   0x08
 
#define HMC58X3_CRA_DO_30   0x14
 
#define HMC58X3_CRA_DO_75   0x18
 
#define HMC58X3_CRA_DO_7_5   0x0C
 
#define HMC58X3_CRA_MEAS_MODE_NEG_BIAS   0x02
 
#define HMC58X3_CRA_MEAS_MODE_NORMAL   0x00
 
#define HMC58X3_CRA_MEAS_MODE_POS_BIAS   0x01
 
#define HMC58X3_CRA_NO_AVG   0x00
 
#define HMC58X3_CRB   0x01
 
#define HMC58X3_CRB_GN_1090   0x20
 
#define HMC58X3_CRB_GN_1370   0x00
 
#define HMC58X3_CRB_GN_230   0xE0
 
#define HMC58X3_CRB_GN_330   0xC0
 
#define HMC58X3_CRB_GN_390   0xA0
 
#define HMC58X3_CRB_GN_440   0x80
 
#define HMC58X3_CRB_GN_660   0x60
 
#define HMC58X3_CRB_GN_820   0x40
 
#define HMC58X3_DATA   0x03
 
#define HMC58X3_ID1   0x0A
 
#define HMC58X3_ID2   0x0B
 
#define HMC58X3_ID3   0x0C
 
#define HMC58X3_MODE   0x02
 
#define HMC58X3_MODE_CONTINUOUS   0x00
 
#define HMC58X3_MODE_HS   0x80
 
#define HMC58X3_MODE_IDLE   0x02
 
#define HMC58X3_MODE_SINGLE   0x01
 
#define HMC58X3_SR_LOCK   0x02
 
#define HMC58X3_SR_RDY   0x01
 
#define HMC58X3_STATUS   0x09
 
#define HMC58X3_TIMEOUT   30000
 

Macro Definition Documentation

#define HMC58X3_ADDR   0x1E

Definition at line 37 of file hmc5883l.h.

#define HMC58X3_CRA   0x00

Definition at line 38 of file hmc5883l.h.

#define HMC58X3_CRA_AVG_2_MEAS   0x20

Definition at line 48 of file hmc5883l.h.

#define HMC58X3_CRA_AVG_4_MEAS   0x40

Definition at line 49 of file hmc5883l.h.

#define HMC58X3_CRA_AVG_8_MEAS   0x60

Definition at line 50 of file hmc5883l.h.

#define HMC58X3_CRA_DO_0_75   0x00

Definition at line 52 of file hmc5883l.h.

#define HMC58X3_CRA_DO_15   0x10

Definition at line 56 of file hmc5883l.h.

#define HMC58X3_CRA_DO_1_5   0x04

Definition at line 53 of file hmc5883l.h.

#define HMC58X3_CRA_DO_3   0x08

Definition at line 54 of file hmc5883l.h.

#define HMC58X3_CRA_DO_30   0x14

Definition at line 57 of file hmc5883l.h.

#define HMC58X3_CRA_DO_75   0x18

Definition at line 58 of file hmc5883l.h.

#define HMC58X3_CRA_DO_7_5   0x0C

Definition at line 55 of file hmc5883l.h.

#define HMC58X3_CRA_MEAS_MODE_NEG_BIAS   0x02

Definition at line 62 of file hmc5883l.h.

#define HMC58X3_CRA_MEAS_MODE_NORMAL   0x00

Definition at line 60 of file hmc5883l.h.

#define HMC58X3_CRA_MEAS_MODE_POS_BIAS   0x01

Definition at line 61 of file hmc5883l.h.

#define HMC58X3_CRA_NO_AVG   0x00

Definition at line 47 of file hmc5883l.h.

#define HMC58X3_CRB   0x01

Definition at line 39 of file hmc5883l.h.

#define HMC58X3_CRB_GN_1090   0x20

Definition at line 65 of file hmc5883l.h.

#define HMC58X3_CRB_GN_1370   0x00

Definition at line 64 of file hmc5883l.h.

#define HMC58X3_CRB_GN_230   0xE0

Definition at line 71 of file hmc5883l.h.

#define HMC58X3_CRB_GN_330   0xC0

Definition at line 70 of file hmc5883l.h.

#define HMC58X3_CRB_GN_390   0xA0

Definition at line 69 of file hmc5883l.h.

#define HMC58X3_CRB_GN_440   0x80

Definition at line 68 of file hmc5883l.h.

#define HMC58X3_CRB_GN_660   0x60

Definition at line 67 of file hmc5883l.h.

#define HMC58X3_CRB_GN_820   0x40

Definition at line 66 of file hmc5883l.h.

#define HMC58X3_DATA   0x03

Definition at line 41 of file hmc5883l.h.

#define HMC58X3_ID1   0x0A

Definition at line 43 of file hmc5883l.h.

#define HMC58X3_ID2   0x0B

Definition at line 44 of file hmc5883l.h.

#define HMC58X3_ID3   0x0C

Definition at line 45 of file hmc5883l.h.

#define HMC58X3_MODE   0x02

Definition at line 40 of file hmc5883l.h.

#define HMC58X3_MODE_CONTINUOUS   0x00

Definition at line 74 of file hmc5883l.h.

#define HMC58X3_MODE_HS   0x80

Definition at line 73 of file hmc5883l.h.

#define HMC58X3_MODE_IDLE   0x02

Definition at line 76 of file hmc5883l.h.

#define HMC58X3_MODE_SINGLE   0x01

Definition at line 75 of file hmc5883l.h.

#define HMC58X3_SR_LOCK   0x02

Definition at line 78 of file hmc5883l.h.

#define HMC58X3_SR_RDY   0x01

Definition at line 79 of file hmc5883l.h.

#define HMC58X3_STATUS   0x09

Definition at line 42 of file hmc5883l.h.

#define HMC58X3_TIMEOUT   30000

Definition at line 81 of file hmc5883l.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:50