Sygaldry
|
Driver component for the analog-digital converter. More...
Public Types | |
using | outputs_t = OneshotAdcOutputs |
Public Member Functions | |
void | init () |
Configure the ADC1 channel for the given gpio_num in oneshot read mode. | |
void | main () |
Poll the current value of the given ADC1 channel. | |
Public Attributes | |
outputs_t | outputs |
detail::OneshotAdcImpl | pimpl |
Additional Inherited Members | |
Static Public Member Functions inherited from sygaldry::name_<"ESP32 Oneshot ADC"> | |
static _consteval auto | name () |
Static Public Member Functions inherited from sygaldry::author_<"Travis J. West"> | |
static _consteval auto | author () |
Static Public Member Functions inherited from sygaldry::copyright_<"Copyright 2023 Sygaldry Contributors"> | |
static _consteval auto | copyright () |
Static Public Member Functions inherited from sygaldry::license_<"SPDX-License-Identifier: MIT"> | |
static _consteval auto | license () |
Driver component for the analog-digital converter.
OneshotAdc* configures analog-digital converter 1 (ADC1) to read in oneshot mode from the given GPIO pin and polls its current value in each loop.