TB2026-YDS Firmware
Toggle main menu visibility
Loading...
Searching...
No Matches
sink_i2s_dac.h
Go to the documentation of this file.
1
13
#pragma once
14
15
#include "esp_err.h"
16
#include <stdbool.h>
17
#include "
audio_sink.h
"
18
29
esp_err_t
sink_i2s_dac_init
(
void
);
30
36
const
audio_sink_t
*
sink_i2s_dac_get
(
void
);
37
46
esp_err_t
sink_i2s_dac_output_enable
(
bool
enable);
47
56
esp_err_t
sink_i2s_dac_amp_enable
(
bool
enable);
audio_sink.h
sink_i2s_dac_output_enable
esp_err_t sink_i2s_dac_output_enable(bool enable)
Enable or mute the DAC analog output via the PCM5242 XSMT pin.
Definition
sink_i2s_dac.c:20
sink_i2s_dac_get
const audio_sink_t * sink_i2s_dac_get(void)
Get the wired-DAC sink (I2S → PCM5242 → MAX97220 → jack).
Definition
sink_i2s_dac.c:85
sink_i2s_dac_init
esp_err_t sink_i2s_dac_init(void)
Bring up the wired path's I2S bus; the sink owns the channel handle.
Definition
sink_i2s_dac.c:32
sink_i2s_dac_amp_enable
esp_err_t sink_i2s_dac_amp_enable(bool enable)
Enable or shut down the MAX97220 headphone amplifier via its SHDN pin.
Definition
sink_i2s_dac.c:26
audio_sink_t
A PCM output backend (wired I2S DAC or Bluetooth A2DP).
Definition
audio_sink.h:33
components
services
audio
sink_i2s_dac.h
Generated by
1.17.0