Home
last modified time | relevance | path

Searched refs:I2S_InitStruct (Results 1 – 25 of 32) sorted by relevance

12

/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/library/HT32F5xxxx_Driver/src/
A Dht32f5xxxx_i2s.c79 void I2S_Init(I2S_InitTypeDef* I2S_InitStruct) in I2S_Init() argument
82 Assert_Param(IS_I2S_MODE(I2S_InitStruct->I2S_Mode)); in I2S_Init()
83 Assert_Param(IS_I2S_FORMAT(I2S_InitStruct->I2S_Format)); in I2S_Init()
85 Assert_Param(IS_I2S_MCLK_DIV(I2S_InitStruct->I2S_X_Div, I2S_InitStruct->I2S_Y_Div)); in I2S_Init()
88 …HT_I2S->CR = I2S_InitStruct->I2S_Mode | I2S_InitStruct->I2S_Format | I2S_InitStruct->I2S_WordWidth; in I2S_Init()
90 if (I2S_InitStruct->I2S_BclkInv == ENABLE) in I2S_Init()
95 if (I2S_InitStruct->I2S_MclkInv == ENABLE) in I2S_Init()
100 if ((I2S_InitStruct->I2S_Mode & I2S_SLAVE) == RESET) in I2S_Init()
102 HT_I2S->CDR = (I2S_InitStruct->I2S_N_Div << 16) | (I2S_InitStruct->I2S_X_Div << 8) | in I2S_Init()
103 (I2S_InitStruct->I2S_Y_Div); in I2S_Init()
[all …]
/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/library/HT32F1xxxx_Driver/src/
A Dht32f1xxxx_i2s.c79 void I2S_Init(I2S_InitTypeDef* I2S_InitStruct) in I2S_Init() argument
82 Assert_Param(IS_I2S_MODE(I2S_InitStruct->I2S_Mode)); in I2S_Init()
83 Assert_Param(IS_I2S_FORMAT(I2S_InitStruct->I2S_Format)); in I2S_Init()
85 Assert_Param(IS_I2S_MCLK_DIV(I2S_InitStruct->I2S_X_Div, I2S_InitStruct->I2S_Y_Div)); in I2S_Init()
88 …HT_I2S->CR = I2S_InitStruct->I2S_Mode | I2S_InitStruct->I2S_Format | I2S_InitStruct->I2S_WordWidth; in I2S_Init()
90 if (I2S_InitStruct->I2S_BclkInv == ENABLE) in I2S_Init()
95 if (I2S_InitStruct->I2S_MclkInv == ENABLE) in I2S_Init()
100 if ((I2S_InitStruct->I2S_Mode & I2S_SLAVE) == RESET) in I2S_Init()
102 HT_I2S->CDR = (I2S_InitStruct->I2S_N_Div << 16) | (I2S_InitStruct->I2S_X_Div << 8) | in I2S_Init()
103 (I2S_InitStruct->I2S_Y_Div); in I2S_Init()
[all …]
/bsp/stm32/libraries/STM32L1xx_HAL/STM32L1xx_HAL_Driver/Src/
A Dstm32l1xx_ll_spi.c379 assert_param(IS_LL_I2S_MODE(I2S_InitStruct->Mode)); in LL_I2S_Init()
380 assert_param(IS_LL_I2S_STANDARD(I2S_InitStruct->Standard)); in LL_I2S_Init()
384 assert_param(IS_LL_I2S_CPOL(I2S_InitStruct->ClockPolarity)); in LL_I2S_Init()
399 I2S_InitStruct->Mode | I2S_InitStruct->Standard | in LL_I2S_Init()
400 I2S_InitStruct->DataFormat | I2S_InitStruct->ClockPolarity | in LL_I2S_Init()
412 if (I2S_InitStruct->AudioFreq != LL_I2S_AUDIOFREQ_DEFAULT) in LL_I2S_Init()
417 if (I2S_InitStruct->DataFormat != LL_I2S_DATAFORMAT_16B) in LL_I2S_Init()
476 void LL_I2S_StructInit(LL_I2S_InitTypeDef *I2S_InitStruct) in LL_I2S_StructInit() argument
479 I2S_InitStruct->Mode = LL_I2S_MODE_SLAVE_TX; in LL_I2S_StructInit()
481 I2S_InitStruct->DataFormat = LL_I2S_DATAFORMAT_16B; in LL_I2S_StructInit()
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_spi.c226 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
231 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
281 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
319 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
321 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
358 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() function
362 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
365 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
368 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
371 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_spi.c226 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
231 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
281 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
319 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
321 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
358 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() argument
362 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
365 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
368 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
371 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/
A Dn32g4fr_spi.c235 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
240 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
290 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
328 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
330 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
367 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() argument
371 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
374 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
377 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
380 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/
A Dn32wb452_spi.c235 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
240 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
290 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
328 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
330 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
367 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() function
371 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
374 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
377 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
380 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_spi.c226 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
231 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
281 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
319 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
321 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
358 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() function
362 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
365 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
368 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
371 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/
A Dn32g45x_spi.c235 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
240 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
290 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
328 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
330 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
367 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() function
371 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
374 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
377 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
380 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_spi.c235 assert_param(IS_I2S_MODE(I2S_InitStruct->I2sMode)); in I2S_Init()
240 assert_param(IS_I2S_CLKPOL(I2S_InitStruct->CLKPOL)); in I2S_Init()
290 if (I2S_InitStruct->MCLKEnable == I2S_MCLK_ENABLE) in I2S_Init()
328 | (uint16_t)(I2S_InitStruct->I2sMode in I2S_Init()
330 … | (uint16_t)(I2S_InitStruct->DataFormat | (uint16_t)I2S_InitStruct->CLKPOL)))); in I2S_Init()
367 void I2S_InitStruct(I2S_InitType* I2S_InitStruct) in I2S_InitStruct() function
371 I2S_InitStruct->I2sMode = I2S_MODE_SlAVE_TX; in I2S_InitStruct()
374 I2S_InitStruct->Standard = I2S_STD_PHILLIPS; in I2S_InitStruct()
377 I2S_InitStruct->DataFormat = I2S_DATA_FMT_16BITS; in I2S_InitStruct()
380 I2S_InitStruct->MCLKEnable = I2S_MCLK_DISABLE; in I2S_InitStruct()
[all …]
/bsp/airm2m/air32f103/libraries/AIR32F10xLib/src/
A Dair32f10x_spi.c203 assert_param(IS_I2S_MODE(I2S_InitStruct->I2S_Mode)); in I2S_Init()
208 assert_param(IS_I2S_CPOL(I2S_InitStruct->I2S_CPOL)); in I2S_Init()
295 … (uint16_t)(I2S_InitStruct->I2S_Standard | (uint16_t)(I2S_InitStruct->I2S_DataFormat | \ in I2S_Init()
296 (uint16_t)I2S_InitStruct->I2S_CPOL)))); in I2S_Init()
335 void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct) in I2S_StructInit() argument
339 I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; in I2S_StructInit()
342 I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; in I2S_StructInit()
345 I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; in I2S_StructInit()
348 I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; in I2S_StructInit()
351 I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; in I2S_StructInit()
[all …]
/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f10x_spi.c120 if(I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) in I2S_Init()
127 if(I2S_InitStruct->I2S_DataFormat == I2S_DataFormat_16b) in I2S_Init()
172 … (uint16_t)(I2S_InitStruct->I2S_Standard | (uint16_t)(I2S_InitStruct->I2S_DataFormat | \ in I2S_Init()
173 (uint16_t)I2S_InitStruct->I2S_CPOL)))); in I2S_Init()
203 void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct) in I2S_StructInit() argument
205 I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; in I2S_StructInit()
206 I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; in I2S_StructInit()
207 I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; in I2S_StructInit()
208 I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; in I2S_StructInit()
209 I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; in I2S_StructInit()
[all …]
/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f20x_spi.c120 if(I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) in I2S_Init()
127 if(I2S_InitStruct->I2S_DataFormat == I2S_DataFormat_16b) in I2S_Init()
172 … (uint16_t)(I2S_InitStruct->I2S_Standard | (uint16_t)(I2S_InitStruct->I2S_DataFormat | \ in I2S_Init()
173 (uint16_t)I2S_InitStruct->I2S_CPOL)))); in I2S_Init()
203 void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct) in I2S_StructInit() argument
205 I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; in I2S_StructInit()
206 I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; in I2S_StructInit()
207 I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; in I2S_StructInit()
208 I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; in I2S_StructInit()
209 I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; in I2S_StructInit()
[all …]
/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32v10x_spi.c117 void I2S_Init(SPI_TypeDef *SPIx, I2S_InitTypeDef *I2S_InitStruct) in I2S_Init() argument
128 if(I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) in I2S_Init()
135 if(I2S_InitStruct->I2S_DataFormat == I2S_DataFormat_16b) in I2S_Init()
180 … (uint16_t)(I2S_InitStruct->I2S_Standard | (uint16_t)(I2S_InitStruct->I2S_DataFormat | \ in I2S_Init()
217 void I2S_StructInit(I2S_InitTypeDef *I2S_InitStruct) in I2S_StructInit() argument
219 I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; in I2S_StructInit()
220 I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; in I2S_StructInit()
221 I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; in I2S_StructInit()
222 I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; in I2S_StructInit()
223 I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; in I2S_StructInit()
[all …]
/bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/src/
A Dhk32f0xx_spi.c273 void I2S_StructInit(I2S_InitTypeDef *I2S_InitStruct) in I2S_StructInit() argument
277 I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx; in I2S_StructInit()
280 I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips; in I2S_StructInit()
283 I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b; in I2S_StructInit()
286 I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable; in I2S_StructInit()
289 I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default; in I2S_StructInit()
292 I2S_InitStruct->I2S_CPOL = I2S_CPOL_Low; in I2S_StructInit()
318 assert_param(IS_I2S_MODE(I2S_InitStruct->I2S_Mode)); in I2S_Init()
323 assert_param(IS_I2S_CPOL(I2S_InitStruct->I2S_CPOL)); in I2S_Init()
334 if (I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) in I2S_Init()
[all …]
/bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/
A Dhal_spi.c557 void I2S_Init(SPI_TypeDef* spi, I2S_InitTypeDef* I2S_InitStruct) in I2S_Init() argument
566 if(I2S_InitStruct->I2S_AudioFreq == I2S_AudioFreq_Default) { in I2S_Init()
570 if(I2S_InitStruct->I2S_DataFormat == I2S_DataFormat_16b) { in I2S_Init()
584 if(I2S_InitStruct->I2S_MCLKOutput == I2S_MCLKOutput_Enable) { in I2S_Init()
587 if(yushu > (128 * (I2S_InitStruct->I2S_AudioFreq))) { in I2S_Init()
606 if(I2S_CPOL_High == I2S_InitStruct->I2S_CPOL) { in I2S_Init()
615 …if((I2S_InitStruct->I2S_Mode == I2S_Mode_MasterTx) || (I2S_InitStruct->I2S_Mode == I2S_Mode_Master… in I2S_Init()
621 …if((I2S_InitStruct->I2S_Mode == I2S_Mode_MasterTx) || (I2S_InitStruct->I2S_Mode == I2S_Mode_SlaveT… in I2S_Init()
636 (I2S_InitStruct->I2S_MCLKOutput) | \ in I2S_Init()
638 (I2S_InitStruct->I2S_Standard) | \ in I2S_Init()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/inc/
A Dn32l43x_spi.h432 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
434 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/inc/
A Dn32wb452_spi.h433 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
435 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/inc/
A Dn32l40x_spi.h432 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
434 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/inc/
A Dn32g4fr_spi.h433 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
435 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/inc/
A Dn32g45x_spi.h433 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
435 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/inc/
A Dn32g43x_spi.h432 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
434 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/inc/
A Dn32g45x_spi.h433 void I2S_Init(SPI_Module* SPIx, I2S_InitType* I2S_InitStruct);
435 void I2S_InitStruct(I2S_InitType* I2S_InitStruct);
/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/inc/
A Dch32f10x_spi.h192 void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct);
194 void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct);
/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/inc/
A Dch32f20x_spi.h192 void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct);
194 void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct);

Completed in 58 milliseconds

12