1.3.2.3.68 MAC_WRP_TimeIsPast Function

C

bool MAC_WRP_TimeIsPast
(
    int32_t timeValue
);

Summary

Indicates whether the given time value is in the past.

Description

This primitive indicates whether the given time value is in the past.

Precondition

SYS_TIME_Initialize primitive has to be called before.

Parameters

ParamDescription
timeValueTime value in milliseconds

Returns

True if the time value is in the past. False if the time value is not in the past.

Example

int32_t validityTime = 5000;

// Perform other actions
// ...

if (MAC_WRP_TimeIsPast(validityTime))
{
    // Validity ended
}

Remarks

None.