|
HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
|
Board NTC thermistor wiring: which TMC9660 ADC input it is on and how the handler is set up. More...
#include <cstddef>#include <cstdint>#include "core/hf-core-drivers/internal/hf-pincfg/src/hf_functional_pin_config_vortex_v1.hpp"#include "handlers/ntc/NtcTemperatureHandler.h"Go to the source code of this file.
Namespaces | |
| namespace | vortex |
| namespace | vortex::config |
Functions | |
| constexpr uint8_t | vortex::config::BoardNtcHwChannel () noexcept |
| Hardware channel id of the board NTC on the shared TMC9660 ADC wrapper, from the pin map. | |
| ntc_temp_handler_config_t | vortex::config::MakeBoardNtcConfig () noexcept |
| NTC handler configuration for the board thermistor. | |
Variables | |
| constexpr HfFunctionalAdcChannel | vortex::config::kBoardNtcAdcChannel = HfFunctionalAdcChannel::TMC9660_AIN3 |
| Functional ADC channel the board NTC is wired to. | |
| constexpr float | vortex::config::kBoardNtcLowThresholdC = 0.0f |
| Over-temperature window the board NTC reports against (degrees Celsius). | |
| constexpr float | vortex::config::kBoardNtcHighThresholdC = 85.0f |
Board NTC thermistor wiring: which TMC9660 ADC input it is on and how the handler is set up.
The board NTC sits on TMC9660 AIN3 (ADC_TMC9660_AIN3 in the pin map). Every TMC9660 ADC channel is served by one shared Tmc9660AdcWrapper, which routes by hardware channel id at read time, so the NTC handler must be told the channel explicitly: the handler's default (adc_channel = 0) would read AIN0. The channel here is read from the pin map, not repeated.
Ownership: constants only. Thread safety: none needed. MCU-free.