79 #include <stm32f4xx.h>
295 I2S_InitStruct.
I2S_CPOL = I2S_CPOL_Low;
296 I2S_InitStruct.
I2S_Mode = I2S_Mode_MasterTx;
void I2S_Cmd(SPI_TypeDef *SPIx, FunctionalState NewState)
Enables or disables the specified SPI peripheral (in I2S mode).
#define PCMB_MIXER_VOLUME_CONTROL
void CS42L51_WriteReg(uint8_t reg, uint8_t data)
Write a byte to a register of the cs42l51 codec.
#define LIMITER_THRESHOLD
#define PCMA_MIXER_VOLUME_CONTROL
#define INTERFACE_CONTROL
void I2S_Init(SPI_TypeDef *SPIx, I2S_InitTypeDef *I2S_InitStruct)
Initializes the SPIx peripheral according to the specified parameters in the I2S_InitStruct.
#define PCM_CHANNEL_MIXER
#define AOUTA_VOLUME_CONTROL
uint8_t CS42L51_Init(int8_t Volume)
Codec CS42L51 low-layer and register initialization.
#define MIC_POWER_AND_SPEED
void I2S_FullDuplexConfig(SPI_TypeDef *I2Sxext, I2S_InitTypeDef *I2S_InitStruct)
Configures the full duplex mode for the I2Sx peripheral using its extension I2Sxext according to the ...
I2S Init structure definition.
ERROR_CODES CARME_I2C_Read(I2C_TypeDef *I2Cx, uint8_t addr, uint16_t reg, uint8_t twoByte, uint8_t *pdata, uint16_t count)
Read data from an I2C slave device on a specific register address.
uint8_t CS42L51_Status(void)
Get the status of the cs42l51 codec.
void CS42L51_CtrlInterface_Init(void)
Codec CS42L51 ctrl line configuration and register initialization.
I2S board support package for the CARME-M4 module.
void CARME_I2C_Init(I2C_TypeDef *I2Cx)
I2C initialization.
void CS42L51_Mute(uint8_t on)
Mute the CS42L51 output.
void SPI_I2S_DeInit(SPI_TypeDef *SPIx)
De-initialize the SPIx peripheral registers to their default reset values.
void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
Enables or disables the Low Speed APB (APB1) peripheral clock.
CS42L51 codec support functions.
#define ALCA_AND_PGAA_CONTROL
void CARME_I2S_GPIO_Init(void)
I2S GPIO initialization.
ERROR_CODES CARME_I2C_Write(I2C_TypeDef *I2Cx, uint8_t addr, uint16_t reg, uint8_t twoByte, uint8_t *pdata, uint16_t count)
Write data to an I2C slave device on a specific register address.
void CS42L51_AudioInterface_Init(void)
Codec CS42L51 audio line configuration.
#define DAC_OUTPUT_CONTROL
uint8_t CS42L51_ReadReg(uint8_t reg)
Read a byte from a register of the cs42l51 codec.
void SPI_Cmd(SPI_TypeDef *SPIx, FunctionalState NewState)
Enables or disables the specified SPI peripheral.
#define ALCB_AND_PGAB_CONTROL
#define AOUTB_VOLUME_CONTROL
void CS42L51_VolumeOutCtrl(int8_t Volume)
Codec CS42L51 output volume control.
I2C board support package for the CARME module.