Mathematical conversion and volume scaling utilities for the TLV320DAC3100.
Summary
Functions
Converts a digital dB volume to its corresponding 8-bit register representation.
Finds the 7-bit hex index (0..127) matching the target dB attenuation using table lookup.
Splits a net dB target into a valid {gain_db, attenuation_db} pair,
prioritizing the lowest possible analog gain from gain_options.
Functions
Converts a digital dB volume to its corresponding 8-bit register representation.
Finds the 7-bit hex index (0..127) matching the target dB attenuation using table lookup.
Splits a net dB target into a valid {gain_db, attenuation_db} pair,
prioritizing the lowest possible analog gain from gain_options.