5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
wiced_time.h File Reference

Data Structures

struct  wiced_iso8601_time_t
 

Typedefs

typedef uint32_t wiced_time_t
 
typedef uint64_t wiced_utc_time_ms_t
 
typedef uint32_t wiced_utc_time_t
 

Functions

void wiced_deinit_nanosecond_clock (void)
 
uint64_t wiced_get_nanosecond_clock_value (void)
 
void wiced_init_nanosecond_clock (void)
 
void wiced_reset_nanosecond_clock (void)
 
wiced_result_t wiced_time_convert_iso8601_to_utc_ms (wiced_iso8601_time_t *iso8601_time, wiced_utc_time_ms_t *utc_time_ms)
 
wiced_result_t wiced_time_convert_utc_ms_to_iso8601 (wiced_utc_time_ms_t utc_time_ms, wiced_iso8601_time_t *iso8601_time)
 
wiced_result_t wiced_time_get_iso8601_time (wiced_iso8601_time_t *iso8601_time)
 
wiced_result_t wiced_time_get_time (wiced_time_t *time)
 
wiced_result_t wiced_time_get_utc_time (wiced_utc_time_t *utc_time)
 
wiced_result_t wiced_time_get_utc_time_ms (wiced_utc_time_ms_t *utc_time_ms)
 
wiced_result_t wiced_time_set_time (const wiced_time_t *time)
 
wiced_result_t wiced_time_set_utc_time_ms (const wiced_utc_time_ms_t *utc_time_ms)
 

Detailed Description

Defines functions to set and get the current time

Typedef Documentation

◆ wiced_time_t

typedef uint32_t wiced_time_t

Time value in milliseconds

◆ wiced_utc_time_ms_t

typedef uint64_t wiced_utc_time_ms_t

UTC Time in milliseconds

◆ wiced_utc_time_t

typedef uint32_t wiced_utc_time_t

UTC Time in seconds

Function Documentation

◆ wiced_deinit_nanosecond_clock()

void wiced_deinit_nanosecond_clock ( void )

This function will deinitialize the nanosecond clock.

◆ wiced_get_nanosecond_clock_value()

uint64_t wiced_get_nanosecond_clock_value ( void )

This function will return the value of time read from the nanosecond clock.

Returns
: number of nanoseconds passed since the function wiced_init_nanosecond_clock or wiced_reset_nanosecond_clock was called

◆ wiced_init_nanosecond_clock()

void wiced_init_nanosecond_clock ( void )

This function will initialize the nanosecond clock.

◆ wiced_reset_nanosecond_clock()

void wiced_reset_nanosecond_clock ( void )

This function will reset the nanosecond clock.