@@ -357,142 +357,6 @@ EmberNodeId emberAfGetNodeId(void);
357
357
358
358
/* * @} END Miscellaneous */
359
359
360
- /* * @name Sleep Control */
361
- // @{
362
-
363
- /* *
364
- * @brief Friendly define for use in the scheduling or canceling client events
365
- * with emberAfScheduleClusterTick() and emberAfDeactivateClusterTick().
366
- */
367
- #define EMBER_AF_CLIENT_CLUSTER_TICK true
368
-
369
- /* *
370
- * @brief Friendly define for use in the scheduling or canceling server events
371
- * with emberAfScheduleClusterTick() and emberAfDeactivateClusterTick().
372
- */
373
- #define EMBER_AF_SERVER_CLUSTER_TICK false
374
-
375
- /* *
376
- * @brief This function is used to schedule a cluster-related event inside the
377
- * application framework's event mechanism. This function provides a wrapper
378
- * for the Ember stack event mechanism which allows the cluster code to access
379
- * its events by their endpoint, cluster id, and client/server identity. The
380
- * passed poll and sleep controls allow the cluster to indicate whether it
381
- * needs to long or short poll and whether it needs to stay awake or if it can
382
- * sleep.
383
- *
384
- * @param endpoint the endpoint of the event to be scheduled.
385
- * @param clusterId the cluster id of the event to be scheduled.
386
- * @param isClient ::EMBER_AF_CLIENT_CLUSTER_TICK if the event to be scheduled
387
- * is associated with a client cluster or ::EMBER_AF_SERVER_CLUSTER_TICK
388
- * otherwise.
389
- * @param delayMs the number of milliseconds until the event should be called.
390
- * @param pollControl ::EMBER_AF_SHORT_POLL if the cluster needs to short poll
391
- * or ::EMBER_AF_LONG_POLL otherwise.
392
- * @param sleepControl ::EMBER_AF_STAY_AWAKE if the cluster needs to stay awake
393
- * or EMBER_AF_OK_TO_SLEEP otherwise.
394
- *
395
- * @return EMBER_SUCCESS if the event was scheduled or an error otherwise.
396
- */
397
- EmberStatus emberAfScheduleTickExtended (chip::EndpointId endpoint, chip::ClusterId clusterId, bool isClient, uint32_t delayMs,
398
- EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl);
399
-
400
- /* *
401
- * @brief This function is used to schedule a cluster-related event inside the
402
- * This function is a wrapper for ::emberAfScheduleTickExtended. The cluster
403
- * on the given endpoint will be set to long poll if sleepControl is set to
404
- * ::EMBER_AF_OK_TO_HIBERNATE or will be set to short poll otherwise. It will
405
- * stay awake if sleepControl is ::EMBER_AF_STAY_AWAKE and will sleep
406
- * otherwise.
407
- *
408
- * @param endpoint the endpoint of the event to be scheduled.
409
- * @param clusterId the cluster id of the event to be scheduled.
410
- * @param isClient ::EMBER_AF_CLIENT_CLUSTER_TICK if the event to be scheduled
411
- * is associated with a client cluster or ::EMBER_AF_SERVER_CLUSTER_TICK
412
- * otherwise.
413
- * @param delayMs the number of milliseconds until the event should be called.
414
- * @param sleepControl the priority of the event, what the processor should
415
- * be allowed to do in terms of sleeping while the event is active.
416
- *
417
- * @return EMBER_SUCCESS if the event was scheduled or an error otherwise.
418
- */
419
- EmberStatus emberAfScheduleClusterTick (chip::EndpointId endpoint, chip::ClusterId clusterId, bool isClient, uint32_t delayMs,
420
- EmberAfEventSleepControl sleepControl);
421
-
422
- /* *
423
- * @brief A function used to schedule a cluster server event. This function
424
- * is a wrapper for ::emberAfScheduleTickExtended.
425
- *
426
- * @param endpoint the endpoint of the event to be scheduled.
427
- * @param clusterId the cluster id of the event to be scheduled.
428
- * @param delayMs the number of milliseconds until the event should be called.
429
- * @param pollControl ::EMBER_AF_SHORT_POLL if the cluster needs to short poll
430
- * or ::EMBER_AF_LONG_POLL otherwise.
431
- * @param sleepControl ::EMBER_AF_STAY_AWAKE if the cluster needs to stay awake
432
- * or EMBER_AF_OK_TO_SLEEP otherwise.
433
- *
434
- * @return EMBER_SUCCESS if the event was scheduled or an error otherwise.
435
- */
436
- EmberStatus emberAfScheduleServerTickExtended (chip::EndpointId endpoint, chip::ClusterId clusterId, uint32_t delayMs,
437
- EmberAfEventPollControl pollControl, EmberAfEventSleepControl sleepControl);
438
-
439
- /* *
440
- * @brief A function used to schedule a cluster server event. This function
441
- * is a wrapper for ::emberAfScheduleServerTickExtended. It indicates that
442
- * the cluster server on the given endpoint can long poll and can sleep.
443
- *
444
- * @param endpoint the endpoint of the event to be scheduled
445
- * @param clusterId the cluster id of the event to be scheduled.
446
- * @param delayMs the number of milliseconds until the event should be called.
447
- *
448
- * @return EMBER_SUCCESS if the event was scheduled or an error otherwise.
449
- */
450
- EmberStatus emberAfScheduleServerTick (chip::EndpointId endpoint, chip::ClusterId clusterId, uint32_t delayMs);
451
-
452
- /* *
453
- * @brief A function used to deactivate a cluster-related event. This function
454
- * provides a wrapper for the Ember stack's event mechanism which allows an
455
- * event to be accessed by its endpoint, cluster id, and client/server
456
- * identity.
457
- *
458
- * @param endpoint the endpoint of the event to be deactivated.
459
- * @param clusterId the cluster id of the event to be deactivated.
460
- * @param isClient ::EMBER_AF_CLIENT_CLUSTER_TICK if the event to be
461
- * deactivated is a client cluster ::EMBER_AF_SERVER_CLUSTER_TICK
462
- * otherwise.
463
- *
464
- * @return EMBER_SUCCESS if the event was deactivated or an error otherwise.
465
- */
466
- EmberStatus emberAfDeactivateClusterTick (chip::EndpointId endpoint, chip::ClusterId clusterId, bool isClient);
467
-
468
- /* *
469
- * @brief A function used to deactivate a cluster server event. This function
470
- * is a wrapper for ::emberAfDeactivateClusterTick.
471
- *
472
- * @param endpoint the endpoint of the event to be deactivated.
473
- * @param clusterId the cluster id of the event to be deactivated.
474
- *
475
- * @return EMBER_SUCCESS if the event was deactivated or an error otherwise.
476
- */
477
- EmberStatus emberAfDeactivateServerTick (chip::EndpointId endpoint, chip::ClusterId clusterId);
478
-
479
- /* *
480
- * @brief Sets the ::EmberEventControl to run "delayMs" milliseconds in the
481
- * future. This function first verifies that the delay is within the
482
- * acceptable range before scheduling the event.
483
- *
484
- * @param control a pointer to the event control.
485
- * @param delayMs the number of milliseconds until the next event.
486
- *
487
- * @return If delayMs is less than or equal to
488
- ::EMBER_MAX_EVENT_CONTROL_DELAY_MS, this function will schedule the
489
- event and return ::EMBER_SUCCESS. Otherwise it will return
490
- ::EMBER_BAD_ARGUMENT.
491
- */
492
- EmberStatus emberEventControlSetDelayMS (EmberEventControl * control, uint32_t delayMs);
493
-
494
- /* * @} END Sleep Control */
495
-
496
360
/* * @name Messaging */
497
361
// @{
498
362
0 commit comments