STM32F10x library
hmc5883l.h
1 #ifndef MAT_HMC8883L_H
2 #define MAT_HMC8883L_H
3 
4 uint8_t hmc_init(uint8_t cra, uint8_t crb, uint8_t mode);
5 uint8_t hmc_read(int16_t* x, int16_t* y, int16_t* z);
6 float hmc_heading(int16_t x, int16_t y);
7 uint8_t hmc_present(void);
8 
9 #endif
uint8_t hmc_present(void)
Check for HMC5883L presence on I2C.
Definition: hmc5883l.c:73
uint8_t hmc_read(int16_t *x, int16_t *y, int16_t *z)
Read acc. values.
Definition: hmc5883l.c:39
float hmc_heading(int16_t x, int16_t y)
Convert x,y to heading.
Definition: hmc5883l.c:60
uint8_t hmc_init(uint8_t cra, uint8_t crb, uint8_t mode)
Init HMC5883L.
Definition: hmc5883l.c:25