arduino-audio-driver
Loading...
Searching...
No Matches
Typedefs | Functions
audio_driver::tlv320aic3110_detail Namespace Reference

Typedefs

using RegAddr = uint16_t
 

Functions

constexpr RegAddr regAddr (uint8_t page, uint8_t reg)
 
constexpr uint8_t regAddrPage (RegAddr addr)
 
constexpr uint8_t regAddrReg (RegAddr addr)
 

Typedef Documentation

◆ RegAddr

using RegAddr = uint16_t

Page + register address pair, packed as (page << 8) | reg. A plain scalar (rather than a class type) so that the RegAddr constants below are never odr-used, which avoids requiring out-of-class definitions on pre-C++17 compilers (e.g. the ESP32 Arduino core's default -std=gnu++11). Defined at namespace scope (rather than as a static member function) so it is already complete when used in the static member initializers below.

Function Documentation

◆ regAddr()

constexpr RegAddr regAddr ( uint8_t  page,
uint8_t  reg 
)
constexpr

◆ regAddrPage()

constexpr uint8_t regAddrPage ( RegAddr  addr)
constexpr

◆ regAddrReg()

constexpr uint8_t regAddrReg ( RegAddr  addr)
constexpr