- 追加された行はこの色です。
- 削除された行はこの色です。
[[ファームウェア関数一覧>ファームウェア関数一覧#p05d83d5]]
*ADC_GetConversionValue [#tc0a4407]
#contents
**ヘッダ宣言 [#l714029c]
**関数プロトタイプ [#e3183fe8]
uint16_t ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, uint8_t ADC_InjectedChannel)
**動作 [#uf8733a8]
-ADCの最新の変換値を取得します
**引数 [#q4bdecf9]
-ADCx&br;
変換値を取得する対象のADCを''ADC1'',''ADC2''又は''ADC3''から選択します。&br;
&br;
-ADC_InjectedChannel&br;
設定するADCのチャンネルを以下のマクロから選択します。&br;
&br;
|CENTER:ADC_InjectedChannel|CENTER:説明|h
|ADC_InjectedChannel_1|Injected Channel1を選択|
|ADC_InjectedChannel_2|Injected Channel2を選択|
|ADC_InjectedChannel_3|Injected Channel3を選択|
|ADC_InjectedChannel_4|Injected Channel4を選択|
&br;
**戻り値 [#rec8a25c]
-uint16_t型&br;
ADCの変換値をuint16_t型で返却します。&br;
&br;
**出力値 [#r2f7bd2b]
-無し
**呼び出し関数 [#mac4803c]
-無し
**サンプル [#z306930f]
/* Return the ADC1 injected channel1 converted data value */
uint16_t InjectedDataValue;
InjectedDataValue = ADC_GetInjectedConversionValue(ADC1,
ADC_InjectedChannel_1);
**参照 [#ca28ec78]
-