/********************************************************************* * @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 ); }
/** * @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 ); }
/** * @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 ); }
/********************************************************************* * @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 ); }
/********************************************************************* * @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); }