Thin adapter: BaseAdc channel read in the shape expected by Mcp9700Thermistor<>.
More...
#include <Mcp9700TemperatureHandler.h>
Thin adapter: BaseAdc channel read in the shape expected by Mcp9700Thermistor<>.
◆ Mcp9700AdcAdapter()
| Mcp9700AdcAdapter::Mcp9700AdcAdapter |
( |
BaseAdc * |
adc | ) |
|
|
inlineexplicitnoexcept |
- Parameters
-
| adc | Host ADC; must outlive this adapter. |
◆ EnsureInitialized()
| bool Mcp9700AdcAdapter::EnsureInitialized |
( |
| ) |
|
|
inlinenoexcept |
◆ ReadChannelV()
| int Mcp9700AdcAdapter::ReadChannelV |
( |
uint8_t |
channel, |
|
|
float * |
voltage_v |
|
) |
| |
|
inlinenoexcept |
Read one ADC channel as volts for the thermistor conversion.
- Parameters
-
| channel | Logical ADC channel bound to this MCP9700. |
| voltage_v | Output voltage in volts. |
- Returns
- 0 on success (matches Mcp9700Thermistor<> driver template).
◆ adc_
| BaseAdc* Mcp9700AdcAdapter::adc_ |
|
private |
The documentation for this class was generated from the following file: