Callbacks
**Hiddev.c (projects\ble\profiles\hiddev)**
    // GAP Role Callbacks
    static gapRolesCBs_t hidDev_PeripheralCBs =
    {
      hidDevGapStateCB,   // Profile State Change Callbacks
      NULL                // When a valid RSSI is read from controller
    };

    // Bond Manager Callbacks
    static const gapBondCBs_t hidDevBondCB =
    {
      hidDevPasscodeCB,
      hidDevPairStateCB
    };

**Hidkbmservice.c (projects\ble\profiles\hiddevkbm)**
    // Service Callbacks
    CONST gattServiceCBs_t hidKbdMsCBs =
    {
      HidDev_ReadAttrCB,  // Read callback function pointer
      HidDev_WriteAttrCB, // Write callback function pointer
      NULL                // Authorization callback function pointer
    };


**Hidemukbd.c (projects\ble\hidemukbd\source)**
    static hidDevCB_t hidEmuKbdHidCBs =
    {
      hidEmuKbdRptCB,
      hidEmuKbdEvtCB,
      NULL
    };
阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Ayworld/article/details/46817115
个人分类: BLE
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

Callbacks

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭