Base class Analog EasyC Hall Effect Sensor.
More...
#include <Hall-Effect-Analog-easyC-SOLDERED.h>
Inherits EasyC.
|
| | HallEffect_Analog_EasyC () |
| |
| uint16_t | getRawReading () |
| | Reads hall effect raw sensor value via easyC.
|
| |
| float | getMilliTeslas () |
| | Reads hall effect calculated milli Teslas value via easyC.
|
| |
| | EasyC () |
| | Main constructor for easyC version.
|
| |
| void | begin () |
| | Initializes sensors on native or easyC on default address.
|
| |
| void | begin (uint8_t _address) |
| | Initializes sensors on supplied i2c address.
|
| |
| int | sendAddress (char regAddr) |
| | Private function to send a single byte to sensor.
|
| |
| int | readData (char a[], int n) |
| | Private function to read n bytes over i2c.
|
| |
| int | readRegister (char regAddr, char a[], size_t n) |
| | Private function to send over i2c and then read n bytes.
|
| |
| int | sendData (const uint8_t *a, int n) |
| | Private function to write n bytes over i2c.
|
| |
Base class Analog EasyC Hall Effect Sensor.
◆ HallEffect_Analog_EasyC()
| HallEffect_Analog_EasyC::HallEffect_Analog_EasyC |
( |
| ) |
|
|
inline |
◆ getMilliTeslas()
| float HallEffect_Analog_EasyC::getMilliTeslas |
( |
| ) |
|
Reads hall effect calculated milli Teslas value via easyC.
- Returns
- Returns calculated milli Teslas
◆ getRawReading()
| uint16_t HallEffect_Analog_EasyC::getRawReading |
( |
| ) |
|
Reads hall effect raw sensor value via easyC.
- Returns
- Returns raw reading as a float
◆ initializeNative()
| void HallEffect_Analog_EasyC::initializeNative |
( |
| ) |
|
|
inlineprotectedvirtual |
The documentation for this class was generated from the following files: