Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
HMC5883L Class Reference

Public Member Functions

 HMC5883L (uint8_t address)
 
void initialize ()
 
bool testConnection ()
 
uint8_t getSampleAveraging ()
 
void setSampleAveraging (uint8_t averaging)
 
uint8_t getDataRate ()
 
void setDataRate (uint8_t rate)
 
uint8_t getMeasurementBias ()
 
void setMeasurementBias (uint8_t bias)
 
uint8_t getGain ()
 
void setGain (uint8_t gain)
 
uint8_t getMode ()
 
void setMode (uint8_t mode)
 
void getHeading (int16_t *x, int16_t *y, int16_t *z)
 
int16_t getHeadingX ()
 
int16_t getHeadingY ()
 
int16_t getHeadingZ ()
 
bool getLockStatus ()
 
bool getReadyStatus ()
 
uint8_t getIDA ()
 
uint8_t getIDB ()
 
uint8_t getIDC ()