uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
Reads the specified input port pin.
- Parameters:
-
GPIOx,: where x can be (A..G) to select the GPIO peripheral. GPIO_Pin,: specifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..15).
- Return values:
-
The input port pin value.
- 函数作用:读取指定的输入端口引脚状态(0或者1)。
- 参数:
- 输入:GPIO_TypeDef* GPIOx,所用到管脚的GPIO组
- uint16_t GPIO_Pin,所要读取的管脚,如GPIO_Pin_13
- 输出:0或者1,所读管脚的高低电平状态!