ファームウェア関数一覧

GPIO_ReadInputDataBit

ヘッダ宣言

関数プロトタイプ

uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)

動作

設定したGPIOポートのピンの値を読みます。

引数

戻り値

呼び出し関数

サンプル

/* Reads the seventh pin of the GPIOB and store it in ReadValue variable */
uint8_t ReadValue;
ReadValue = GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_7);

参照


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS