TB2026-YDS Firmware
Loading...
Searching...
No Matches
i2s_bus.h
Go to the documentation of this file.
1
9#pragma once
10
11#include <stdint.h>
12#include "esp_err.h"
13#include "driver/i2s_std.h"
14
21
31esp_err_t i2s_bus_init(i2s_chan_handle_t *out_tx_handle);
32
44esp_err_t i2s_bus_reconfig(i2s_chan_handle_t tx, uint32_t rate_hz, uint8_t bits);
45
esp_err_t i2s_bus_init(i2s_chan_handle_t *out_tx_handle)
Bring up I2S0 as master TX to the PCM5242.
Definition i2s_bus.c:43
esp_err_t i2s_bus_reconfig(i2s_chan_handle_t tx, uint32_t rate_hz, uint8_t bits)
Retune the TX channel for a track: disable, reconfigure clock + slot, re-enable.
Definition i2s_bus.c:63