ファームウェア関数一覧
I2S_Init †
ヘッダ宣言 †
関数プロトタイプ †
void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct)
動作 †
- SPIx/I2Sx周辺回路のI2Sモード時の設定をします。
引数 †
出力値 †
戻り値 †
場所 †
呼び出し関数 †
サンプル †
/* Initialize the SPI2 according to the I2S_InitStructure members */
I2S_InitTypeDef I2S_InitStructure;
I2S_InitStructure.I2S_Mode = I2S_Mode_MasterTx;
I2S_InitStructure.I2S_Standard = I2S_Standard_Phillips;
I2S_InitStructure.I2S_DataFormat = I2S__DataFormat_16bextended;
I2S_InitStructure.I2S_MCLKOutput = I2S_MCLKOutput_Enable;
I2S_InitStructure.I2S_AudioFreq = I2S_AudioFreq_16K;
I2S_InitStructure.I2S_CPOL = SPI_CPOL_Low;
I2S_Init(SPI2, &I2S_InitStructure);
参照 †