#include <INA260PowerSensor.hpp>
|
| AdafruitINA260 (int address, int bus=1) |
|
| AdafruitINA260 (const AdafruitINA260 &other)=delete |
|
AdafruitINA260 & | operator= (const AdafruitINA260 &other)=delete |
|
bool | begin () |
|
void | reset () |
|
double | readCurrent () |
|
double | readPower () |
|
double | readBusVoltage () |
|
void | setMode (int mode) |
|
int | getMode () |
|
void | setAveragingCount (int count) |
|
int | getAveragingCount () |
|
void | setCurrentConversionTime (int time) |
|
int | getCurrentConversionTime () |
|
void | setVoltageConversionTime (int time) |
|
int | getVoltageConversiontime () |
|
bool | conversionReady () |
|
|
static const int | MODE_SHUTDOWN |
|
static const int | MODE_TRIGGERED |
|
static const int | MODE_CONTINUOUS |
|
static const int | TIME_140_US |
|
static const int | TIME_204_US |
|
static const int | TIME_332_US |
|
static const int | TIME_558_US |
|
static const int | TIME_1_1_MS |
|
static const int | TIME_2_116_MS |
|
static const int | TIME_4_156_MS |
|
static const int | TIME_8_244_MS |
|
static const int | COUNT_1 |
|
static const int | COUNT_2 |
|
static const int | COUNT_16 |
|
static const int | COUNT_64 |
|
static const int | COUNT_128 |
|
static const int | COUNT_256 |
|
static const int | COUNT_512 |
|
static const int | COUNT_1024 |
|
Adafruit INA260 module internal driver
◆ AdafruitINA260()
arpirobot::internal::AdafruitINA260::AdafruitINA260 |
( |
int |
address, |
|
|
int |
bus = 1 |
|
) |
| |
- Parameters
-
address | Address for the INA260 (I2C) |
bus | I2C bus |
The documentation for this class was generated from the following file: