/*********************************************************************
 * @fn      gapRole_SetupGAP
 *
 * @brief   Call the GAP Device Initialization function using the
 *          Profile Parameters.
 *
 * @param   none
 *
 * @return  none
 */
static void gapRole_SetupGAP( void )
{
  VOID GAP_DeviceInit( gapRole_TaskID,
          gapRole_profileRole, 0,
          gapRole_IRK, gapRole_SRK,
          &gapRole_signCounter );
}
/*********************************************************************
* @fn      gapRole_SetupGAP
*
* @brief   Call the GAP Device Initialization function using the
*          Profile Parameters.
*
* @param   none
*
* @return  none
*/
static void gapRole_SetupGAP( void )
{
  VOID GAP_DeviceInit( gapRole_TaskID,
                      gapRole_profileRole, gapObserverRoleMaxScanRes,
                      gapRole_IRK, gapRole_SRK,
                      &gapRole_signCounter );
}
示例#3
0
/**
 * @brief   Start the device in Observer role.  This function is typically
 *          called once during system startup.
 *
 * Public function defined in observer.h.
 */
bStatus_t GAPObserverRole_StartDevice(gapObserverRoleCB_t *pAppCallbacks)
{
  if (pAppCallbacks)
  {
    pGapObserverRoleCB = pAppCallbacks;
  }

  return GAP_DeviceInit(selfEntity, GAP_PROFILE_OBSERVER,
                        gapObserverRoleMaxScanRes, NULL, NULL, NULL);
}
/*********************************************************************
 * @fn      gapRole_SetupGAP
 *
 * @brief   Call the GAP Device Initialization function using the
 *          Profile Parameters.
 *
 * @param   none
 *
 * @return  none
 */
static bStatus_t gapRole_SetupGAP(void)
{
  return GAP_DeviceInit(selfEntity,
                      gapRole_profileRole,
                      gapObserverRoleMaxScanRes,
                      gapRole_IRK,
                      gapRole_SRK,
                      (uint32*)&gapRole_signCounter
                      );
}
示例#5
0
文件: central.c 项目: AubrCool/BLE
/**
 * @brief   Start the device in Central role.  This function is typically
 *          called once during system startup.
 *
 * Public function defined in central.h.
 */
bStatus_t GAPCentralRole_StartDevice( gapCentralRoleCB_t *pAppCallbacks )
{
  if ( pAppCallbacks )
  {
    pGapCentralRoleCB = pAppCallbacks;
  }

  return GAP_DeviceInit( gapCentralRoleTaskId, GAP_PROFILE_CENTRAL,
                         gapCentralRoleMaxScanRes, gapCentralRoleIRK,
                         gapCentralRoleSRK, &gapCentralRoleSignCounter );
}
示例#6
0
/*********************************************************************
 * @fn      gapRole_SetupGAP
 *
 * @brief   Call the GAP Device Initialization function using the
 *          Profile Parameters.
 *
 * @param   none
 *
 * @return  none
 */
static void gapRole_SetupGAP( void )
{
  VOID GAP_DeviceInit( gapRole_TaskID,
                       gapRole_profileRole, 0,
                       NULL, NULL, NULL );
}
示例#7
0
/*********************************************************************
 * @fn      gapRole_SetupGAP
 *
 * @brief   Call the GAP Device Initialization function using the
 *          Profile Parameters.
 *
 * @param   none
 *
 * @return  none
 */
static void gapRole_SetupGAP(void)
{
  VOID GAP_DeviceInit(selfEntity, gapRole_profileRole, MAX_SCAN_RESPONSES, gapRole_IRK,
                      gapRole_SRK, (uint32*)&gapRole_signCounter);
}
/*********************************************************************
 * @fn      gapRole_SetupGAP
 *
 * @brief   Call the GAP Device Initialization function using the
 *          Profile Parameters.
 *
 * @param   none
 *
 * @return  none
 */
static void gapRole_SetupGAP(void) {
	VOID GAP_DeviceInit(selfEntity, gapRole_profileRole, gapRoleMaxScanRes, gapRole_IRK, gapRole_SRK, (uint32*) &gapRole_signCounter);
}