21 #ifndef COSA_HMC5883L_HH 22 #define COSA_HMC5883L_HH 66 } __attribute__((packed));
76 } __attribute__((packed));
83 } __attribute__((packed));
97 } __attribute__((packed));
106 } __attribute__((packed));
255 __attribute__((always_inline))
259 return (current.
ready);
277 __attribute__((always_inline))
296 __attribute__((always_inline))
329 } __attribute__((packed));
uint8_t GN
Gain configuration bits.
IOStream & operator<<(IOStream &outs, HMC5883L &compass)
Output data register X, Y, Z.
Table 5: Data Output Rates.
static const uint16_t s_gain[]
uint8_t MS
Measurement configuration bits.
Number of averaged samples per output.
uint8_t MA
Number of samples to average.
uint8_t DO
Data output rate.
bool sample_heading_request()
void heading(data_t &data) const
bool read_heading(data_t &data)
static void sleep(uint8_t mode=POWER_SLEEP_MODE)
HMC5883L(uint8_t mode=SLEEP_MODE_IDLE)
Table 6: Measurement Modes.
Configuration register A, B.
bool read_status(status_t &status)
void await_mode(uint8_t mode)
void output_rate(Rate rate)
void samples_avg(Avg avg)