{ \
} \
}
uint8_t tpa6130_dac_get_volume(void)
Returns the current volume of the DAC. The volume is in the range 0 - 255.
Definition: tpa6130.c:573
void tpa6130_dac_mute(bool mute)
No more audio if input is true.
Definition: tpa6130.c:513
bool tpa6130_dac_output(void *sample_buffer, size_t sample_length)
Outputs a sample buffer to the DACs. The input requires a sample buffer that consists of words (32-bi...
Definition: tpa6130.c:467
void tpa6130_dac_increase_volume(void)
Increases the output volume of the amplifier by one step. Stops at the maximum volume and thus does n...
Definition: tpa6130.c:595
void tpa6130_dac_start(uint32_t sample_rate_hz, uint8_t num_channels, uint8_t bits_per_sample, bool swap_channels, void(*callback)(uint32_t arg), uint32_t callback_opt, uint32_t pba_hz)
Starts the ABDAC.
Definition: tpa6130.c:355
bool tpa6130_dac_is_volume_boosted(void)
Returns the state of the boost mode of the DAC.
Definition: tpa6130.c:565
void tpa6130_dac_flush(void)
Flushes the sample buffer being output to the ABDAC.
Definition: tpa6130.c:617
void tpa6130_dac_decrease_volume(void)
Decreases the output volume of the amplifier by one step.
Definition: tpa6130.c:607
void tpa6130_dac_setup(uint32_t sample_rate_hz, uint8_t num_channels, uint8_t bits_per_sample, bool swap_channels, void(*callback)(uint32_t arg), uint32_t callback_opt, uint32_t pba_hz)
Sets the DACs up with new settings.
Definition: tpa6130.c:393
bool tpa6130_dac_is_volume_muted(void)
Returns the state of the mute mode of the DAC.
Definition: tpa6130.c:508
void tpa6130_dac_stop(void)
Stops the ABDAC and puts the amplifier in low power mode. Additionally it sets all used pins to the G...
Definition: tpa6130.c:636
void tpa6130_dac_set_volume(uint8_t volume)
Set the volume of the DAC.
Definition: tpa6130.c:586