STM32L476G-Discovery board drivers V1.0.0
Dependents: DiscoLogger DISCO_L476VG_GlassLCD DISCO_L476VG_MicrophoneRecorder DISCO_L476VG_UART ... more
cs43l22.c File Reference
This file provides the CS43L22 Audio Codec driver. More...
Go to the source code of this file.
Functions | |
static uint8_t | CODEC_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value) |
Writes/Read a single data. | |
uint32_t | cs43l22_Init (uint16_t DeviceAddr, uint16_t OutputDevice, uint8_t Volume, uint32_t AudioFreq) |
Initializes the audio codec and the control interface. | |
void | cs43l22_DeInit (void) |
Deinitializes the audio codec. | |
uint32_t | cs43l22_ReadID (uint16_t DeviceAddr) |
Get the CS43L22 ID. | |
uint32_t | cs43l22_Play (uint16_t DeviceAddr, uint16_t *pBuffer, uint16_t Size) |
Start the audio Codec play feature. | |
uint32_t | cs43l22_Pause (uint16_t DeviceAddr) |
Pauses playing on the audio codec. | |
uint32_t | cs43l22_Resume (uint16_t DeviceAddr) |
Resumes playing on the audio codec. | |
uint32_t | cs43l22_Stop (uint16_t DeviceAddr, uint32_t CodecPdwnMode) |
Stops audio Codec playing. | |
uint32_t | cs43l22_SetVolume (uint16_t DeviceAddr, uint8_t Volume) |
Sets higher or lower the codec volume level. | |
uint32_t | cs43l22_SetFrequency (uint16_t DeviceAddr, uint32_t AudioFreq) |
Sets new frequency. | |
uint32_t | cs43l22_SetMute (uint16_t DeviceAddr, uint32_t Cmd) |
Enables or disables the mute feature on the audio codec. | |
uint32_t | cs43l22_SetOutputMode (uint16_t DeviceAddr, uint8_t Output) |
Switch dynamically (while audio file is played) the output target (speaker or headphone). | |
uint32_t | cs43l22_Reset (uint16_t DeviceAddr) |
Resets cs43l22 registers. |
Detailed Description
This file provides the CS43L22 Audio Codec driver.
- Attention:
© Copyright (c) 2015 STMicroelectronics. All rights reserved.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
Definition in file cs43l22.c.
Generated on Tue Jul 12 2022 18:37:21 by 1.7.2