Adafruit INA237 and INA238 Arduino Library
|
#include <Adafruit_INA2xx.h>
Go to the source code of this file.
Classes | |
class | Adafruit_INA237 |
Class that stores state and functions for interacting with INA237/INA238 Current and Power Sensors. More... | |
Macros | |
#define | INA237_I2CADDR_DEFAULT 0x40 |
INA237/INA238 default i2c address. | |
#define | INA237_DEVICE_ID 0x238 |
INA237 device ID. | |
#define | INA238_DEVICE_ID 0x238 |
INA238 device ID (identical to INA237) | |
Typedefs | |
typedef enum _ina237_alert_type | INA237_AlertType |
Alert trigger options specific to INA237/INA238. More... | |
Enumerations | |
enum | _ina237_alert_type { INA237_ALERT_CONVERSION_READY = 0x1, INA237_ALERT_OVERTEMPERATURE = 0x2, INA237_ALERT_OVERPOWER = 0x4, INA237_ALERT_UNDERVOLTAGE = 0x8, INA237_ALERT_OVERVOLTAGE = 0x10, INA237_ALERT_UNDERSHUNT = 0x20, INA237_ALERT_OVERSHUNT = 0x40, INA237_ALERT_NONE = 0x0 } |
Alert trigger options specific to INA237/INA238. More... | |
I2C Driver for INA237/INA238 Current and Power sensors
Note: INA237 and INA238 are functionally identical devices with different part numbers. This class implements all functionality for both chips.
This is a library for the Adafruit INA237/INA238 breakouts: http://www.adafruit.com/products/xxxx
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
MIT license (see license.txt)
typedef enum _ina237_alert_type INA237_AlertType |
Alert trigger options specific to INA237/INA238.
Allowed values for setAlertType.
enum _ina237_alert_type |
Alert trigger options specific to INA237/INA238.
Allowed values for setAlertType.