雷竞技电竞平台Dialog Semiconductor客户支持- bool枚举GPIO_GetPinStatus https://support.dialog-semiconductor.com/resource-keywords/bool-enums-gpiogetpinstatus 使用"GPIO_GetPinStatus()"返回值的个数 https://support.dialog-semiconductor.com/number-return-values-using-gpiogetpinstatus < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >相关的问题“销状态”(gayan_gamage-san) < / p > < p >我调用“bool GPIO_GetPinStatus(GPIO_PORT port, GPIO_PIN pin)”,
这个函数似乎返回“TRUE”和“FALSE”和非“TRUE或FALSE”。

MT_dialog建议使用"enum "类型而不是"bool"类型。
And How many return values using this function ?
And How many return values using this function ?

SDK Information:
Source Code
\…\DA1458x_SDK\5.0.3\ SDK\ platform\driver\gpio\gpio.c

description:

* @brief获取gpio状态。GPIO应该已经被预先配置为输入!
*
* @param[in] port GPIO port
* @param[in] pin GPIO pin
*
* @return bool高为TRUE,低为FALSE。& lt; & lt; = = = = = < / p > < p >致意。< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / bool-enums-gpiogetpinstatus”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > bool枚举GPIO_GetPinStatus < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / da14580 typeof =“skos:概念”属性= " rdfs: labelskos: prefLabel”数据类型= " " > DA14580 < / > < / div > < / div > < / div > 2016年6月20日星期一06:43:09 +0000 Jun-ichi托比 3893年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/number-return-values-using-gpiogetpinstatus#comments