PIDUINO
Loading...
Searching...
No Matches
Piduino::Max1161x::Info

Structure containing information about the Max1161x converter. More...

#include <max1161x.h>

Collaboration diagram for Piduino::Max1161x::Info:

Public Member Functions

 Info (MaxIndex id=Max11615, int busId=I2cDev::Info::defaultBus().id())
 Default constructor for Info.
 
 Info (MaxIndex id, int addr, int nchan, double intref, double fsr)
 Constructs an Info object with the specified parameters.
 
void setId (MaxIndex id)
 Sets the Max1161x model ID.
 

Public Attributes

MaxIndex id
 The Max1161x model ID (12, 13, 14, 15, 16, or 17).
 
int addr
 The I2C address of the converter.
 
int nchan
 The number of channels configured for the converter.
 
double intref
 The internal reference voltage value.
 
double fsr
 The full-scale range value.
 
int busId
 The I2C bus ID used for communication.
 

Detailed Description

Structure containing information about the Max1161x converter.

Definition at line 108 of file max1161x.h.

Constructor & Destructor Documentation

◆ Info() [1/2]

Piduino::Max1161x::Info::Info ( MaxIndex  id = Max11615,
int  busId = I2cDev::Info::defaultBus().id() 
)

Default constructor for Info.

Parameters
idThe Max1161x model ID (default is Max11615).
Note
This constructor initializes all fields to the values corresponding to the Max11615 model.

◆ Info() [2/2]

Piduino::Max1161x::Info::Info ( MaxIndex  id,
int  addr,
int  nchan,
double  intref,
double  fsr 
)

Constructs an Info object with the specified parameters.

Parameters
idThe Max1161x model ID.
addrThe I2C address of the converter.
nchanThe number of channels configured for the converter.
intrefThe internal reference voltage value.
fsrThe full-scale range value.

Member Function Documentation

◆ setId()

void Piduino::Max1161x::Info::setId ( MaxIndex  id)

Sets the Max1161x model ID.

Parameters
idThe Max1161x model ID to set.
Note
This function updates the ID and all other fields to the values corresponding to the specified model.

Member Data Documentation

◆ addr

int Piduino::Max1161x::Info::addr

The I2C address of the converter.

Definition at line 110 of file max1161x.h.

◆ busId

int Piduino::Max1161x::Info::busId

The I2C bus ID used for communication.

Definition at line 114 of file max1161x.h.

◆ fsr

double Piduino::Max1161x::Info::fsr

The full-scale range value.

Definition at line 113 of file max1161x.h.

◆ id

MaxIndex Piduino::Max1161x::Info::id

The Max1161x model ID (12, 13, 14, 15, 16, or 17).

Definition at line 109 of file max1161x.h.

◆ intref

double Piduino::Max1161x::Info::intref

The internal reference voltage value.

Definition at line 112 of file max1161x.h.

◆ nchan

int Piduino::Max1161x::Info::nchan

The number of channels configured for the converter.

Definition at line 111 of file max1161x.h.