[[ファームウェア関数一覧>ファームウェア関数一覧#p05d83d5]] *ADC_Init [#yc91a95d] #contents **ヘッダ宣言 [#t6b34ce6] **関数プロトタイプ [#vdb9cf16] void ADC_Init(ADC_TypeDef* ADCx, ADC_InitTypeDef* ADC_InitStruct) **動作 [#zec92e7e] -ADC周辺回路の初期化を行います。 **引数 [#bdf91ed3] -ADCx&br; 初期化する対象のADCを''ADC1''又は''ADC2''から選択します。&br; &br; #include(Macro/ADCx,notitle) &br; -ADC_InitStruct&br; stm32f10x.hで定義されているADC_InitTypeDef型の構造体へのポインタです。&br; &br; --ADC_Mode&br; &br; #include(Macro/ADC_Mode,notitle) &br; --ADC_ScanConvMode&br; &br; --ADC_ContinuousConvMode&br; &br; --ADC_ExternalTrigConv&br; &br; #include(Macro/ADC_ExternalTrigConv,notitle) &br; --ADC_DataAlign&br; &br; #include(Macro/ADC_DataAlign,notitle) &br; --ADC_NbrOfChannel&br; **戻り値 [#k873332b] -無し **出力値 [#u7877a10] -無し **呼び出し関数 [#sdf970d5] -無し **サンプル [#zbe19e08] /* Initialize the ADC1 according to the ADC_InitStructure members */ ADC_InitTypeDef ADC_InitStructure; ADC_InitStructure.ADC_Mode = ADC_Mode_Independent; ADC_InitStructure.ADC_ScanConvMode = ENABLE; ADC_InitStructure.ADC_ContinuousConvMode = DISABLE; ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_T1_CC3; ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right; ADC_InitStructure.ADC_NbrOfChannel = 16; ADC_Init(ADC1, &ADC_InitStructure); **参照 [#n0ab3c80] -