Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
electrical.hpp File Reference

Electrical description of an analog port — the jack-to-converter circuit. More...

Detailed Description

Electrical description of an analog port — the jack-to-converter circuit.

Describes what sits between a jack and the ADC: the voltage span the full code range represents, the converter resolution, and whether the front end inverts. Instances are generated by sloth from the hardware manifests into sbl::hw::electrical (config/electrical.hpp); components derive their conditioning from them. Hand-written instances are for tests and one-offs.

Codes are right-aligned unsigned counts, 0 .. (2^bits - 1), as the ADC drivers deliver them (STM32H7: RM0433 Rev 8 §25.6.15, right-aligned by default).

Definition in file electrical.hpp.

#include <cstdint>

Go to the source code of this file.

Classes

struct  sbl::hal::adc::Electrical
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::hal
 Hardware abstraction: handles and convenience layers over the drivers.
 
namespace  sbl::hal::adc
 ADC channels, scans and DMA.