|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 25 of file electrical.hpp.
Public Member Functions | |
| constexpr float | counts_max () const |
| constexpr float | counts_per_volt () const |
| constexpr uint16_t | encode (float volts) const |
| constexpr float | decode (uint16_t counts) const |
| constexpr uint16_t | midpoint () const |
Public Attributes | |
| float | lo_v |
| float | hi_v |
| uint8_t | bits |
| bool | inverted |
|
inlineconstexpr |
Definition at line 31 of file electrical.hpp.
|
inlineconstexpr |
Definition at line 33 of file electrical.hpp.
|
inlineconstexpr |
Code for a voltage at the jack, clamped to the converter's rails.
Definition at line 36 of file electrical.hpp.
References hi_v, inverted, and lo_v.
Referenced by midpoint().
|
inlineconstexpr |
Voltage at the jack for a code.
Definition at line 52 of file electrical.hpp.
|
inlineconstexpr |
Code that reads as 0 V - the bipolar midpoint. Clamps if 0 V is out of range.
Definition at line 61 of file electrical.hpp.
References encode().
Referenced by sbl::control::input::CvConditioning::from().
| float sbl::hal::adc::Electrical::lo_v |
Voltage at code 0 (or at full scale, if inverted)
Definition at line 26 of file electrical.hpp.
| float sbl::hal::adc::Electrical::hi_v |
Voltage at full scale (or at code 0, if inverted)
Definition at line 27 of file electrical.hpp.
| uint8_t sbl::hal::adc::Electrical::bits |
Converter resolution
Definition at line 28 of file electrical.hpp.
| bool sbl::hal::adc::Electrical::inverted |
+V at the jack reads as a lower code
Definition at line 29 of file electrical.hpp.
Referenced by decode(), encode(), and sbl::control::input::CvConditioning::from().