32 #define MCP9808_REG_CONFIG 0x01 33 #define MCP9808_REG_AMBIENT_TEMP 0x05 34 #define MCP9808_REG_MANUF_ID 0x06 35 #define MCP9808_REG_DEVICE_ID 0x07 36 #define MCP9808_REG_RESOLUTION 0x08 37 #define MCP9808_CONFIG_SHUTDOWN 0x0001 38 #define MCP9808_CONFIG_CRITLOCKED 0x8000 39 #define MCP9808_CONFIG_WINLOCKED 0x4000 40 #define MCP9808_CONFIG_INTCLR 0x2000 42 namespace mraa {
class I2c;}
160 MCP9808 (
int bus, uint8_t address = 0x18);
185 void shutDown(
bool sleep =
true);
259 void clearInterrupt(
void);
268 void setAlertMode(uint16_t command);
273 void clearAlertMode(
void);
286 float getHysteresis();
303 float getResolution();
308 uint16_t getManufacturer();
314 uint16_t getDevicedId();
329 float getTempValue(uint16_t value);
330 void updateConfigRegister(uint16_t update,
bool on =
true);
331 uint16_t swapWord(uint16_t value);
bool isTupper()
Definition: mcp9808.hpp:222
MCP9808_RESOLUTION
uint8_t enum containing the four possible values for MCP9808 resolution register. ...
Definition: mcp9808.hpp:107
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setMode(bool celsius=true)
Definition: mcp9808.hpp:193
Definition: ads1x15.hpp:30
MCP9808_REG
uint8_t enum containing register addresses used for setting temp thresholds for MCP9808 ...
Definition: mcp9808.hpp:90
std::string name()
Definition: mcp9808.hpp:170
API for MCP9808 precision temprature sensor.
Definition: mcp9808.hpp:78
bool isTlower()
Definition: mcp9808.hpp:232
bool isTcrit()
Definition: mcp9808.hpp:212
bool isCelsius(void)
Definition: mcp9808.hpp:202
MCP9808_CONFIG
uint16_t enum containing alert and hysteresis options for config register.
Definition: mcp9808.hpp:141