Home
last modified time | relevance | path

Searched refs:currentTime (Results 1 – 2 of 2) sorted by relevance

/loramac-node-latest/src/mac/
DLoRaMacClassB.c342 TimerTime_t currentTime = TimerGetCurrentTime( ); in CalcNextSlotTime() local
345 …slotTime = ( ( currentTime - SysTimeToMs( Ctx.BeaconCtx.LastBeaconRx ) ) % CLASSB_BEACON_INTERVAL … in CalcNextSlotTime()
346 slotTime = currentTime - slotTime; in CalcNextSlotTime()
352 if( slotTime < currentTime ) in CalcNextSlotTime()
354 currentPingSlot = ( ( currentTime - slotTime ) / in CalcNextSlotTime()
365 slotTime -= currentTime; in CalcNextSlotTime()
502 static TimerTime_t CalcDelayForNextBeacon( TimerTime_t currentTime, TimerTime_t lastBeaconRx ) in CalcDelayForNextBeacon() argument
507 nextBeaconRxTime = ( ( currentTime - lastBeaconRx ) % CLASSB_BEACON_INTERVAL ); in CalcDelayForNextBeacon()
536 TimerTime_t windowMovement, TimerTime_t currentTime ) in UpdateBeaconState() argument
542 …beaconEventTime = CalcDelayForNextBeacon( currentTime, SysTimeToMs( Ctx.BeaconCtx.LastBeaconRx ) ); in UpdateBeaconState()
[all …]
/loramac-node-latest/src/mac/region/
DRegionCommon.c140 TimerTime_t currentTime, TimerTime_t lastBandUpdateTime ) in UpdateTimeCredits() argument
168 band->LastBandUpdateTime = currentTime; in UpdateTimeCredits()
289 TimerTime_t currentTime = TimerGetCurrentTime( ); in RegionCommonUpdateBandTimeOff() local
301 currentTime, elapsedTime ); in RegionCommonUpdateBandTimeOff()