QCC蓝牙芯片PIO操作

这篇博客详细介绍了QCC系列蓝牙芯片中PIO(Peripheral Input/Output)的使用,包括API函数如PioGetMapPins32Bank、PioSetDir32Bank和PioSet32Bank的用法,以及如何设置PIO为输入、输出高电平和低电平。内容适用于QCC3020、QCC3031等多款芯片。

QCC蓝牙芯片PIO操作
1.API
/**

  • \brief Returns a 32 bit value showing which PIO lines have been mapped to chip pins
  • (see documentation for PioSetMapPins32() for more detail).
  • \param bank PIO bank number.
  • \note This trap may NOT be called from a high-priority task handler
  • \ingroup trapset_core
    /
    uint32 PioGetMapPins32Bank(uint16 bank);
    /
    *
  • \brief Set PIOs as inputs or outputs.
  • Note that all PIOs must be mapped in before they can be used.
  • See the PioSetMapPins32() documentation for information on valid PIO
  • directions
  • and PIO mapping.
  • \param mask Each bit in the mask corresponds to a PIO line. Bits set to 1 in this mask will
  • be modified. Bits set to 0 in this mask will not be modified.
  • \param dir Each bit in the “dir” value corresponds to a PIO line. Bits set to 1 in this
  • val
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值