MCPcopy Create free account
hub / github.com/Lora-net/LoRaMac-node / TimerSetValue

Function TimerSetValue

src/system/timer.c:328–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void TimerSetValue( TimerEvent_t *obj, uint32_t value )
329{
330 uint32_t minValue = 0;
331 uint32_t ticks = RtcMs2Tick( value );
332
333 TimerStop( obj );
334
335 minValue = RtcGetMinimumTimeout( );
336
337 if( ticks < minValue )
338 {
339 ticks = minValue;
340 }
341
342 obj->Timestamp = ticks;
343 obj->ReloadValue = ticks;
344}
345
346TimerTime_t TimerGetCurrentTime( void )
347{

Callers 15

mainFunction · 0.85
StartTxProcessFunction · 0.85
OnTxPeriodicityChangedFunction · 0.85
OnTxTimerEventFunction · 0.85
mainFunction · 0.85
StartTxProcessFunction · 0.85
OnTxPeriodicityChangedFunction · 0.85
OnTxTimerEventFunction · 0.85
mainFunction · 0.85
StartTxProcessFunction · 0.85
OnTxPeriodicityChangedFunction · 0.85
OnTxTimerEventFunction · 0.85

Calls 3

TimerStopFunction · 0.85
RtcMs2TickFunction · 0.50
RtcGetMinimumTimeoutFunction · 0.50

Tested by

no test coverage detected