找回密码
 立即注册

使用微信账号登录

只需一步,快速开始

查看: 11417|回复: 1

[QCC3系列] 有没有人来解释一下问题?

[复制链接]
连续签到天数:1天
签到总天数:207天
签到总奖励:4616金币
发表于 2020-5-21 11:32:57 | 显示全部楼层 |阅读模式
悬赏30金币已解决
本帖最后由 Liu33861 于 2020-5-21 12:12 编辑

有人能解释下图里面圈圈中的四项到底有什么区别和使用的场景是什么呢?现在总是模棱两可的去配置,IO配置完没有相应的高或者低我就会把这里勾上,但是有点不明白。

附件: 您需要 登录 才可以下载或查看,没有账号?立即注册

最佳答案

查看完整内容

invert就不解释了,就是字面意思,比如默认做按键是高电平有效,这里勾选后可以低电平有效。 第二个问题可以参考这个。慢慢理解下。
楼主热帖
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
连续签到天数:1天
签到总天数:89天
签到总奖励:1653金币
发表于 2020-5-21 11:32:58 | 显示全部楼层
invert就不解释了,就是字面意思,比如默认做按键是高电平有效,这里勾选后可以低电平有效。

第二个问题可以参考这个。慢慢理解下。
  1. /**
  2. *  \brief Maps PIOs as software or hardware controlled.
  3. *   Before using a PIO as a software controlled digital IO a call to this
  4. *   function is required. Not mapping the PIO may cause other functions in the
  5. *   PIO trap API to return errors and not produce the required behaviour.
  6. *   To put a PIO under HW control the app needs to call this function first and
  7. *   then PioSetFunction to select the HW functionality needed.
  8. *   Please note that there is no default state, all PIOs should be considered
  9. *   unmapped and unusable until they are configured by a call to this function.
  10. *  \param bank PIO bank number.
  11. *  \param mask Each bit in the mask corresponds to a PIO line. Bits set to 1 in this mask will
  12. *  be modified. Bits set to 0 in this mask will not be modified.
  13. *  \param bits Each bit corresponds to a PIO line. A bit set to 1 will cause a PIO to be
  14. *  behave as a software controlled pin. A bit set to 0 will result in the pio
  15. *  being marked as controlled by a hardware peripheral.
  16. *  \return A 32 bit mask. If any bit in this mask is high then that PIO could not be
  17. *  mapped or unmapped; note that no action will have been taken on any PIOs.
  18. *
  19. * \note This trap may NOT be called from a high-priority task handler
  20. *
  21. *
  22. * \ingroup trapset_core
  23. */
  24. uint32 PioSetMapPins32Bank(uint16 bank, uint32 mask, uint32 bits);
复制代码
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则

小黑屋|手机版|我爱蓝牙网 - 52Bluetooth

GMT+8, 2024-4-27 00:44 , Processed in 0.269395 second(s), 15 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表