Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
edmont committed Oct 8, 2024
1 parent beed316 commit c312f37
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions include/openthread/link.h
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ otError otLinkSetWakeupChannel(otInstance *aInstance, uint8_t aChannel);
* @param[in] aEnable true to enable listening for wake-up frames, or false otherwise.
*
* @retval OT_ERROR_NONE Successfully enabled / disabled the listening for wake-up frames.
* @retval OT_ERROR_INVALID_ARGS Configured listen interval is not greater than listen duration.
* @retval OT_ERROR_INVALID_STATE Could not enable listening for wake-up frames due to bad configuration.
*/
otError otLinkSetWedListenEnabled(otInstance *aInstance, bool aEnable);
Expand Down
10 changes: 0 additions & 10 deletions src/core/config/mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,16 +497,6 @@
#define OPENTHREAD_CONFIG_CSL_RECEIVE_TIME_AHEAD 320
#endif

/**
* @def OPENTHREAD_CONFIG_WED_RECEIVE_TIME_AFTER
*
* Margin to be applied after the end of a WED listen duration to schedule the next listen interval, in units of
* microseconds.
*/
#ifndef OPENTHREAD_CONFIG_WED_RECEIVE_TIME_AFTER
#define OPENTHREAD_CONFIG_WED_RECEIVE_TIME_AFTER 500
#endif

/**
* @def OPENTHREAD_CONFIG_MIN_RECEIVE_ON_AHEAD
*
Expand Down
10 changes: 10 additions & 0 deletions src/core/config/wakeup.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@
#define OPENTHREAD_CONFIG_WED_LISTEN_DURATION 8000
#endif

/**
* @def OPENTHREAD_CONFIG_WED_RECEIVE_TIME_AFTER
*
* Margin to be applied after the end of a WED listen duration to schedule the next listen interval, in units of
* microseconds.
*/
#ifndef OPENTHREAD_CONFIG_WED_RECEIVE_TIME_AFTER
#define OPENTHREAD_CONFIG_WED_RECEIVE_TIME_AFTER 500
#endif

/**
* @}
*/
Expand Down
1 change: 1 addition & 0 deletions src/core/mac/mac.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ class Mac : public InstanceLocator, private NonCopyable
* @param[in] aEnable TRUE to enable listening for wake-up frames, FALSE otherwise
*
* @retval kErrorNone Successfully enabled/disabled listening for wake-up frames.
* @retval kErrorInvalidArgs Configured listen interval is not greater than listen duration.
* @retval kErrorInvalidState Could not enable/disable listening for wake-up frames.
*/
Error SetWedListenEnabled(bool aEnable);
Expand Down
2 changes: 1 addition & 1 deletion src/core/radio/radio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static constexpr uint64_t kMaxCslTimeout = OPENTHREAD_CONFIG_MAC_CSL_MAX_TIMEOUT

#if OPENTHREAD_CONFIG_WAKEUP_END_DEVICE_ENABLE
/**
* Minimum WED listen duration supported in us.
* Minimum WED listen duration supported in microseconds.
*/
static constexpr uint32_t kMinWedListenDuration = 100;
#endif
Expand Down

0 comments on commit c312f37

Please sign in to comment.