Core2 for AWS IoT EduKit BSP 1.5.1
speaker.h
Go to the documentation of this file.
1
6#pragma once
7#include "stdint.h"
8
24/* @[declare_speaker_init] */
25esp_err_t Speaker_Init();
26/* @[declare_speaker_init] */
27
56/* @[declare_speaker_writebuff] */
57esp_err_t Speaker_WriteBuff(uint8_t* buff, uint32_t len, uint32_t timeout);
58/* @[declare_speaker_writebuff] */
59
65/* @[declare_speaker_deinit] */
66esp_err_t Speaker_Deinit();
67/* @[declare_speaker_deinit] */
esp_err_t Speaker_WriteBuff(uint8_t *buff, uint32_t len, uint32_t timeout)
Plays buffer through the speaker.
Definition: speaker.c:48
esp_err_t Speaker_Deinit()
De-initializes the speaker.
Definition: speaker.c:53
esp_err_t Speaker_Init()
Initializes the speaker over I2S. The I2S bus is initialized for output with a sample rate of 44100Hz...
Definition: speaker.c:12