Voltage Reference framework
|
yasimavr
|
Loading...
Searching...
No Matches
Voltage Reference framework
Classes | |
| class | VREF |
| Generic model for managing VREF for analog peripherals (ADC, analog comparator) More... | |
| class | ArchAVR_VREF |
| Implementation of a Voltage Reference controller for AVR series. More... | |
| struct | ArchXT_VREFConfig |
| Configuration structure for ArchXT_VREF. More... | |
| class | ArchXT_VREF |
| Implementation of a voltage reference controller for XT core series. More... | |
Controller requests definition for VREF | |
| #define | AVR_CTLREQ_VREF_GET (AVR_CTLREQ_BASE + 1) |
| #define | AVR_CTLREQ_VREF_SET (AVR_CTLREQ_BASE + 2) |
Detailed Description
Macro Definition Documentation
◆ AVR_CTLREQ_VREF_GET
| #define AVR_CTLREQ_VREF_GET (AVR_CTLREQ_BASE + 1) |
Request to interrogate the VREF controller and obtain a reference value.
The index shall be set to the required source (one of VREF::Source enum values)
For Internal references, data shall be set to the required channel, as an unsigned integer.
On return, data is set to the reference value as a double. Except for VCC, all values are relative to VCC.
◆ AVR_CTLREQ_VREF_SET
| #define AVR_CTLREQ_VREF_SET (AVR_CTLREQ_BASE + 2) |
Request to set VCC or AREF reference values.
The index shall be set to the required source (one of VREF::Source enum values but only VCC and VREF are accepted)
data shall be set to the required value as a double.
VCC shall be an absolute value in Volts, AREF shall be relative to VCC and contrainted to the range [0; 1].
Generated by