VoltageReference
Arduino voltage reference library
Public Member Functions | List of all members
VoltageReference Class Reference

Public Member Functions

void begin (uint32_t reference=DEFAULT_REFERENCE_CALIBRATION)
 
void begin (uint8_t hi, uint8_t mid, uint8_t low)
 
uint16_t readVcc ()
 
uint32_t calibrate (uint16_t milliVolt)
 
uint16_t internalValue ()
 

Member Function Documentation

◆ begin() [1/2]

void VoltageReference::begin ( uint32_t  reference = DEFAULT_REFERENCE_CALIBRATION)

Initializes the library by setting the calibration value for the 1.1V reference either to the provided value or to its default

◆ begin() [2/2]

void VoltageReference::begin ( uint8_t  hi,
uint8_t  mid,
uint8_t  low 
)

Initializes the library by setting the calibration value for the 1.1V reference from a three bytes representation

◆ calibrate()

uint32_t VoltageReference::calibrate ( uint16_t  milliVolt)

Returns the calibration value to be used for the specified input voltage

◆ internalValue()

uint16_t VoltageReference::internalValue ( )

The calibrated internal reference voltage

◆ readVcc()

uint16_t VoltageReference::readVcc ( )

Reads the input voltage value applying any necessary calibration


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