Adafruit INA260 Arduino Library
|
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Adafruit_I2CRegister.h>
#include <Wire.h>
Go to the source code of this file.
Classes | |
class | Adafruit_INA260 |
Class that stores state and functions for interacting with INA260 Current and Power Sensor. More... | |
Macros | |
#define | INA260_I2CADDR_DEFAULT 0x40 |
INA260 default i2c address. | |
#define | INA260_REG_CONFIG 0x00 |
Configuration register. | |
#define | INA260_REG_CURRENT 0x01 |
Current measurement register (signed) in mA. | |
#define | INA260_REG_BUSVOLTAGE 0x02 |
Bus voltage measurement register in mV. | |
#define | INA260_REG_POWER 0x03 |
Power calculation register in mW. | |
#define | INA260_REG_MASK_ENABLE 0x06 |
Interrupt/Alert setting and checking register. | |
#define | INA260_REG_ALERT_LIMIT 0x07 |
Alert limit value register. | |
#define | INA260_REG_MFG_UID 0xFE |
Manufacturer ID Register. | |
#define | INA260_REG_DIE_UID 0xFF |
Die ID and Revision Register. | |
Typedefs | |
typedef enum _mode | INA260_MeasurementMode |
Mode options. More... | |
typedef enum _conversion_time | INA260_ConversionTime |
Conversion Time options. More... | |
typedef enum _count | INA260_AveragingCount |
Averaging Count options. More... | |
typedef enum _alert_type | INA260_AlertType |
Alert trigger options. More... | |
typedef enum _alert_polarity | INA260_AlertPolarity |
Alert pin polarity options. More... | |
typedef enum _alert_latch | INA260_AlertLatch |
Alert pin latch options. More... | |
I2C Driver for INA260 Current and Power sensor
This is a library for the Adafruit INA260 breakout: http://www.adafruit.com/products/4226
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
BSD license (see license.txt)
typedef enum _mode INA260_MeasurementMode |
Mode options.
Allowed values for setMode.
typedef enum _conversion_time INA260_ConversionTime |
Conversion Time options.
Allowed values for setCurrentConversionTime and setVoltageConversionTime.
typedef enum _count INA260_AveragingCount |
Averaging Count options.
Allowed values forsetAveragingCount.
typedef enum _alert_type INA260_AlertType |
Alert trigger options.
Allowed values for setAlertType.
typedef enum _alert_polarity INA260_AlertPolarity |
Alert pin polarity options.
Allowed values for setAlertPolarity.
typedef enum _alert_latch INA260_AlertLatch |
Alert pin latch options.
Allowed values for setAlertLatch.
enum _mode |
Mode options.
Allowed values for setMode.
enum _conversion_time |
Conversion Time options.
Allowed values for setCurrentConversionTime and setVoltageConversionTime.
enum _count |
Averaging Count options.
Allowed values forsetAveragingCount.
enum _alert_type |
Alert trigger options.
Allowed values for setAlertType.
enum _alert_polarity |
enum _alert_latch |