ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
arpirobot::internal::AdafruitINA260 Class Reference

#include <INA260PowerSensor.hpp>

Inheritance diagram for arpirobot::internal::AdafruitINA260:
arpirobot::IoDevice

Public Member Functions

 AdafruitINA260 (int address, int bus=1)
 
 AdafruitINA260 (const AdafruitINA260 &other)=delete
 
AdafruitINA260operator= (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 Public Attributes

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
 

Protected Member Functions

void close () override
 

Detailed Description

Adafruit INA260 module internal driver

Constructor & Destructor Documentation

◆ AdafruitINA260()

arpirobot::internal::AdafruitINA260::AdafruitINA260 ( int  address,
int  bus = 1 
)
Parameters
addressAddress for the INA260 (I2C)
busI2C bus

The documentation for this class was generated from the following file: