Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

@file gap.h API 翻译 翻译的不对的地方 请指正

$
0
0

1、GAP_DeviceInit

/*-------------------------------------------------------------------
 * FUNCTIONS - Initialization and Configuation 
    功能:初始化和配置,2017年5月8日10:24:25,SuoZhang
 */

  /**
   * @brief       Called to setup the device.  Call just once on initialization.     
                  调用这个函数进行GAP 初始化(建立设备),仅仅在初始化中调用一次!
   *
   *   NOTE: When initialization is complete, the calling app will be
   *         sent the GAP_DEVICE_INIT_DONE_EVENT
       注意: 当初始化完成的时候,会给APP发送 GAP_DEVICE_INIT_DONE_EVENT 事件
   *
   * @param       taskID - Default task ID to send events.预先配置(初始化完成后)发送事件 的任务ID
   * @param       profileRole - GAP Profile Roles: @ref GAP_PROFILE_ROLE_DEFINES
   * @param       maxScanResponses - maximum number to scan responses 最大数量扫描响应应答
   *                we can receive during a device discovery.我们能接收 在一个设备搜寻期间!
   * @param       pIRK - pointer to Identity Root Key, NULLKEY (all zeroes) if the app
   *                wants the GAP to generate the key. 指针指向 身份
   * @param       pSRK - pointer to Sign Resolving Key, NULLKEY if the app
   *                wants the GAP to generate the key. 指针指向 签名分解
   * @param       pSignCounter - 32 bit value used in the SM Signing
   *                algorithm that shall be initialized to zero and incremented
   *                with every new signing. This variable must also be maintained
   *                by the application.
   *
   * @return      SUCCESS - Processing, expect GAP_DEVICE_INIT_DONE_EVENT, <BR>
   *              INVALIDPARAMETER - for invalid profile role or role combination, <BR>
   *              bleIncorrectMode - trouble communicating with HCI
   */

  extern bStatus_t GAP_DeviceInit(  uint8 taskID,
                           uint8 profileRole,
                           uint8 maxScanResponses,
                           uint8 *pIRK,
                           uint8 *pSRK,
                           uint32 *pSignCounter );

Viewing all articles
Browse latest Browse all 7485

Trending Articles