Home
last modified time | relevance | path

Searched refs:OT_US_PER_MS (Results 1 – 8 of 8) sorted by relevance

/openthread-latest/src/posix/platform/
Dalarm.cpp131 uint32_t otPlatAlarmMilliGetNow(void) { return (uint32_t)(platformAlarmGetNow() / OT_US_PER_MS); } in otPlatAlarmMilliGetNow()
207 remaining = (int32_t)(sMsAlarm - (uint32_t)(now / OT_US_PER_MS)); in platformAlarmUpdateTimeout()
209 remaining *= OT_US_PER_MS; in platformAlarmUpdateTimeout()
210 remaining -= (now % OT_US_PER_MS); in platformAlarmUpdateTimeout()
Dhdlc_interface.cpp395 uint64_t end = now + kMaxWaitTime * OT_US_PER_MS; in WaitForWritable()
748 usleep(static_cast<useconds_t>(kRemoveRcpDelay) * OT_US_PER_MS); in ResetConnection()
751 end = otPlatTimeGet() + kResetTimeout * OT_US_PER_MS; in ResetConnection()
759 usleep(static_cast<useconds_t>(kOpenFileDelay) * OT_US_PER_MS); in ResetConnection()
/openthread-latest/examples/platforms/simulation/virtual_time/
Dalarm-sim.c61 uint32_t otPlatAlarmMilliGetNow(void) { return (uint32_t)(sNow / OT_US_PER_MS); } in otPlatAlarmMilliGetNow()
110 remaining *= OT_US_PER_MS; in platformAlarmGetNext()
/openthread-latest/include/openthread/platform/
Dtime.h45 #define OT_US_PER_MS 1000 ///< Number of microseconds per millisecond macro
/openthread-latest/examples/platforms/simulation/
Dalarm.c161 uint32_t otPlatAlarmMilliGetNow(void) { return (uint32_t)(platformGetNow() / OT_US_PER_MS); } in otPlatAlarmMilliGetNow()
236 remaining = ((uint64_t)msRemaining) * OT_US_PER_MS; in platformAlarmUpdateTimeout()
Dradio.c726 tv.tv_usec = (remaining % OT_MS_PER_S) * OT_US_PER_MS; in platformRadioUpdateFdSet()
/openthread-latest/tests/gtest/
Dfake_platform.cpp112 uint64_t start = mNow - (mNow % OT_US_PER_MS); in StartMilliAlarm()
113 uint32_t now = (mNow / OT_US_PER_MS); in StartMilliAlarm()
117 start += (static_cast<uint64_t>(aDt) + static_cast<int32_t>(aT0 - now)) * OT_US_PER_MS; in StartMilliAlarm()
340 …_t otPlatAlarmMilliGetNow(void) { return FakePlatform::CurrentPlatform().GetNow() / OT_US_PER_MS; } in otPlatAlarmMilliGetNow()
Dfake_platform.hpp68 void GoInMs(uint32_t aTimeoutInMs = 0) { GoInUs(aTimeoutInMs * OT_US_PER_MS); } in GoInMs()