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

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

被折叠的 条评论
为什么被折叠?



