48 #ifndef __DRV_SPEAKER_H__ 49 #define __DRV_SPEAKER_H__ 57 DRV_SPEAKER_EVT_FINISHED,
58 DRV_SPEAKER_EVT_BUFFER_WARNING,
59 DRV_SPEAKER_EVT_BUFFER_READY
uint32_t drv_speaker_init(drv_speaker_init_t *p_params)
Function for initializing the speaker driver.
Speaker driver initialization type.
Definition: drv_speaker.h:68
uint32_t drv_speaker_sample_play(uint8_t sample_id)
Function for playing one of the prestored samples. See sounds.h.
drv_speaker_evt_t
Speaker driver event types.
Definition: drv_speaker.h:55
uint32_t drv_speaker_ble_pcm_play(uint8_t *p_sound, uint32_t length)
Function for playing an 8-bit 8 kHz PCM encoded audio split into packages.
uint32_t drv_speaker_tone_start(uint16_t freq_hz, uint32_t duration_ms, uint8_t volume)
Function for playing a single tone through the speaker.
void(* drv_speaker_evt_handler_t)(drv_speaker_evt_t evt)
Speaker driver event handler callback type.
Definition: drv_speaker.h:64
uint32_t drv_speaker_flash_pcm_play(uint8_t const *const p_sound, uint32_t size)
Function for playing an 8-bit 8 kHz PCM encoded audio sample.