Z-Wave Protocol Controller Reference
zwapi_timestamp.h File Reference

Timestamp API allowing to set timestamps and verify if they are past/expired. More...

#include <stdbool.h>
#include "zwapi_timestamp_platform.h"
Include dependency graph for zwapi_timestamp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct zwapi_timestamp zwapi_timestamp_t
 

Functions

void zwapi_timestamp_get (zwapi_timestamp_t *timestamp, int period_ms)
 get the timestamp More...
 
bool zwapi_is_timestamp_elapsed (const zwapi_timestamp_t *timestamp)
 compare the current timestamp with the timestamp passed as an argument More...
 

Detailed Description

Timestamp API allowing to set timestamps and verify if they are past/expired.

Typedef Documentation

◆ zwapi_timestamp_t

Function Documentation

◆ zwapi_is_timestamp_elapsed()

bool zwapi_is_timestamp_elapsed ( const zwapi_timestamp_t timestamp)

compare the current timestamp with the timestamp passed as an argument

Parameters
timestamp
Returns
true if the timestamp is greater than the current timestamp
Here is the caller graph for this function:

◆ zwapi_timestamp_get()

void zwapi_timestamp_get ( zwapi_timestamp_t timestamp,
int  period_ms 
)

get the timestamp

Parameters
timestamp
period_ms
Here is the caller graph for this function: