LibDriver HMC5883L
Loading...
Searching...
No Matches
driver_hmc5883l_basic.h
Go to the documentation of this file.
1
37
38#ifndef DRIVER_HMC5883L_BASIC_H
39#define DRIVER_HMC5883L_BASIC_H
40
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
53
57#define HMC5883L_BASIC_DEFAULT_AVERAGE_SAMPLE HMC5883L_AVERAGE_SAMPLE_8
58#define HMC5883L_BASIC_DEFAULT_DATA_OUTPUT_RATE HMC5883L_DATA_OUTPUT_RATE_15
59#define HMC5883L_BASIC_DEFAULT_MODE HMC5883L_MODE_NORMAL
60#define HMC5883L_BASIC_DEFAULT_GAIN HMC5883L_GAIN_820
61
69uint8_t hmc5883l_basic_init(void);
70
78uint8_t hmc5883l_basic_deinit(void);
79
88uint8_t hmc5883l_basic_read(float m_gauss[3]);
89
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
driver hmc5883l interface header file
uint8_t hmc5883l_basic_init(void)
basic example init
uint8_t hmc5883l_basic_deinit(void)
basic example deinit
uint8_t hmc5883l_basic_read(float m_gauss[3])
basic example read