38 #ifndef OPENAPI_TIME_H_INCLUDED
39 #define OPENAPI_TIME_H_INCLUDED
45 OPEN_CLOCK_SRC_NONE = 0,
46 OPEN_CLOCK_SRC_SNTP = 1
47 } OPEN_TIME_CLOCK_SRC_t;
49 #define OPEN_DATE_TIME_BUF_LEN 20
50 #define OPEN_TIMEZONE_BUF_LEN 15
73 OPEN_TIME_CLOCK_SRC_t *clockSrc);
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiTimeZoneSet(openapiClientHandle_t *client_handle, open_buffdesc *bufd)
Set the system clock time zone.
open_error_t openapiClockSet(openapiClientHandle_t *client_handle, open_buffdesc *bufd)
Set the system clock date and time.
open_error_t openapiTimeZoneGet(openapiClientHandle_t *client_handle, open_buffdesc *bufd)
Get the time zone from the system clock.
open_error_t openapiClockGet(openapiClientHandle_t *client_handle, open_buffdesc *bufd, OPEN_TIME_CLOCK_SRC_t *clockSrc)
Get the date and time from the system clock.