因为GPIO_ReadInputDataBit()函数是读取端口电平状态,所以其返回值是bit
对
举一反三
- 因为GPIO_ReadInputDataBit();函数是读取输入端口电平状态,所以其返回值的类型为()。 A: char B: int C: bit D: float
- GPIO_ReadInputDataBit函数:读取指定的GPIO输入端口电平,是高电平还是低电平(1/0)。
- GPIO_ReadOutputDataBit函数:读取指定的GPIO输入端口电平,是高电平还是低电平(1/0)。
- STM32库中的GPIO相关库函数中,实现从输入端口仅读取某个引脚状态的函数时( ) A: GPIO_ReadInputData B: GPIO_ReadOutputData C: GPIO_ReadInputDataBit D: GPIO_ReadOutputDataBit
- 读某位GPIO引脚的值,是用哪个函数 A: GPIO_ReadOutputDataBit () B: GPIO_ReadOutputData() C: GPIO_ReadInputData() D: GPIO_ReadInputDataBit()
内容
- 0
STM32库中的GPIO函数有很多。其中,实现设置指定的数据端口位的函数是( ) A: GPIO_WriteBit B: GPIO_SetBits C: GPIO_ResetBits D: GPIO_ReadInputDataBit
- 1
读取PORTB,第8端口管脚的输出电平的函数是()
- 2
用于设置GPIO端口的输出高低电平的寄存器是()
- 3
当STM32某GPIO配置为输出模式时,可以通过输入数据寄存器读取端口状态
- 4
假如函数return语句同时返回3个值,返回值是()类型。