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
  • value will result in that PIO line being configured as an output. Bits set to
  • 0 in this value will result in that PIO line being configured as an input.
  • \return A 32 bit mask. If any bit in this mask is high then that PIO could not be set
  • to the direction specified; note that no action will have been taken on any
  • PIOs.
  • \note This trap may NOT be called from a high-priority task handler
  • \ingroup trapset_core
    */
    uint32 PioSetDir32(uint32 mask, uint32 dir);

/**

  • \brief Set PIOs as inputs or outputs.
  • Note that all PIOs must be mapped in before they can be used.
  • See the PioSetMapPins32Bank() documentation for information on valid PIO
  • directions
  • and PIO mapping.
  • \param bank PIO bank number.
  • \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
  • value will result in that PIO line being configured as an output. Bits set to
  • 0 in this value will result in that PIO line being configured as an input.
  • \return A 32 bit mask. If any bit in this mask is high then that PIO could not be set
  • to the direction specified; note that no action will have been taken on any
  • PIOs.
  • \note This trap may NOT be called from a high-priority task handler
  • \ingroup trapset_core
    */
    uint32 PioSetDir32Bank(uint16 bank, uint32 mask, uint32 dir);

2.set PIO

2.1. set PIO as output high:
PioSetMapPins32Bank(PIO >>5 , (1UL << (PIO & 31)), (1UL << (PIO & 31)));
PioSetDir32Bank(PIO >>5, (1UL << (PIO & 31)), (1UL << (PIO & 31)));
PioSet32Bank(PIO >>5, (1UL << (PIO & 31)), 1UL << (PIO & 31)));
2.2. set PIO as output low:
PioSetMapPins32Bank(PIO >>5 , (1UL << (PIO & 31)), (1UL << (PIO & 31)));
PioSetDir32Bank(PIO >>5, (1UL << (PIO & 31)), (1UL << (PIO & 31)));
PioSet32Bank(PIO >>5, (1UL << (PIO & 31)), 0);

2.3. set PIO as input:
PioSetMapPins32Bank(PIO >>5 , (1UL << (PIO & 31)), (1UL << (PIO & 31)));
PioSetDir32Bank(PIO >>5, (1UL << (PIO & 31)), (0UL << (PIO & 31)));

3.Support Devices

QCC3020 QCC3031 QCC3040 QCC3050 QCC5121 QCC5141 QCC5151
QCC3021 QCC3034 QCC3044 QCC3056 QCC5124 QCC5144
QCC3024 QCC3046 QCC5125
QCC3026 QCC5126
QCC5127

QCC蓝牙芯片PIO操作相关推荐

  1. PIO操作与DMA操作

    IDE数据传输模式 随着技术的发展,产品对数据传输速度要求的提高,IDE接口硬盘的数据传输模式,经历过三个不同的技术变化,由最初的PIO模式,到DMA模式,再到Ultra DMA模式. 1> P ...

  2. Qualcomm QCC 蓝牙芯片烧录工具

    这个疫情的春节,只能呆在家里,所以弄了一个 QCC系列芯片的烧录工具,同时也回顾一下C++,好久没有用C++. 软件用Vs2022 MFC 做的,新版的VS 用起来还真不习惯. 烧录软件,目前可以烧录 ...

  3. Apache PIO 操作Excel

    POI官方网址:http://poi.apache.org/ POI 的功能实在很强大,而且是apache的子项目,它下面又包含一些Component,比如处理Excel XLS,PowerPoint ...

  4. CSR 8670 Access BlueCore I/O lines

    Access BlueCore I/O lines. /访问BlueCore I/O线/ /* BlueCore variants from BlueCore2 onwards have twelve ...

  5. PCIe例程理解(一)用户逻辑模块(接收)仿真分析

    前言 本文从例子程序细节上(语法层面)去理解PCIe对于事物层数据的接收及解析. 参考数据手册:PG054: 例子程序有Vivado生成: 为什么将这个内容写出来? 通过写博客,可以检验自己理解了这个 ...

  6. 树莓派Raspberry Pico RP2040 开发环境配置完全缝合终极版C-SDK

    树莓派Raspberry Pico RP2040 开发环境配置骨灰版 总览目录 树莓派Raspberry Pico RP2040 开发环境配置骨灰版 前置说明 0.1 关于调试使用的Debugger ...

  7. 南卡NEO骨传导首发新机,超前无线充设计,树立行业标杆!!!

    ​3月2号,更专业的骨传导运动耳机--南卡,发布了以轻运动为全新方向系列的南卡NEO,通过迭代升级的声学技术进一步的优化了音质,打造更强一代的音质体验. 音质全新升级,分"響"全新 ...

  8. 专为轻运动而生的南卡NEO全新发布,定位骨传导运动耳机新标杆!

    ​2023年3月2号,南卡正式发布了主打轻运动的全新系列产品--南卡NEO,这是继去年10月展出机皇南卡Runner Pro4后推出的NEO系列,与pro4不同的是南卡NEO对于音质上更加的偏向于轻型 ...

  9. 爆款升级!新系列南卡Neo最强旗舰杀到,业内首款无线充骨传导耳机!

    中国专业骨传导耳机品牌NANK南卡于近日发布了全新南卡Neo骨传导运动耳机,打造一款佩戴最舒适.音质体验最好的骨传导耳机.推出第2代声学響科技技术,提供更优质的开放式骨传导听音体验,透过不一样的音质体 ...

  10. ACL and SCO

    1.蓝牙协议栈体系结构 蓝牙技术规范的目的是使符合该规范的各种应用之间能够实现互操作.互操作的远端设备需要使用相同的协议栈,不同的应用需要不同的协议栈.并不是任何应用都必须使用全部协议,而是可以只使用 ...

最新文章

  1. linux usb组合设备,USB组合设备(5)
  2. 【转】关于LoadRunner的迭代
  3. 对象交互。英雄搏击游戏。0107
  4. adf盖怎么打开_原来啤酒瓶盖上有个小机关,用手就能拧开,比开瓶器还快
  5. 为什么越来越多的人直接入住毛坯房?有什么优缺点?
  6. linux系统多大分区,linux系统中fdisk最大能认到多大分区
  7. Tomcat找不到Controller里面的路径
  8. 3dsMax中Vray渲染器材质参数使用及5种材质展示
  9. 我的世界服务器修改地图,《我的世界手机版》地图编辑器介绍 怎么修改地图信息...
  10. oppor829t如何刷机_OPPO R829T卡刷刷机图文教程
  11. train.py部分
  12. [跟进]_会议“诊断腾讯”
  13. leetcode 笨阶乘
  14. Pandas数据显示不全?快来了解这些设置技巧! ⛵
  15. 微信考勤签到 php,【投稿】微信签到打卡领积分源码,每日积分签到
  16. RAM ROM 寄存器(Rigester) CPU的关系
  17. 项目管理如何提升项目中的执行力
  18. 【Unity3D】3D游戏学习
  19. 什么是以太坊?什么是智能合约?
  20. 叶梓老师 数据分析与数据挖掘-培训提纲

热门文章

  1. 华为Java社招面试经历详解【已拿到offer】
  2. 裴礼文数学分析中的典型问题与方法第1章一元函数极限练习
  3. 大麦盒子DM1004线刷降级填坑记录
  4. unity安装后 启动失败_Unity3D插件安装常见问题说明
  5. NOPIExcel读写扩展
  6. 常用视频像素格式 YUV422 YUV420
  7. HTML基础代码用法大全,html代码大全(基础使用代码)(颜色代码完整版)
  8. C语言面试必问的经典问题(纯”gan“货)
  9. C语言面试常见问题总结
  10. MatLab机器学习入门