|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.11.1.2
|
Data Structures | |
| struct | open_clocktime_t |
Typedefs | |
| typedef struct open_clocktime_t | open_clocktime |
Functions | |
| open_error_t | openapiAdjustedTimeGet (openapiClientHandle_t *client_handle, uint32_t *year, uint32_t *month, uint32_t *day, uint32_t *hour, uint32_t *minutes, uint32_t *seconds) |
| Adjusts current time for timezone and summer time. More... | |
| open_error_t | openapiMinutesOffsetConvert (openapiClientHandle_t *client_handle, int32_t minutes, uint32_t *pHour, uint32_t *pMin) |
| Convert minute offset into hour and minutes. More... | |
| uint32_t | openapiRawAdjustedTimeGet (openapiClientHandle_t *client_handle, uint32_t rawTime) |
| Converts the given Raw time to UTC and then adds the timezone and summer time offsets if configured. More... | |
| open_error_t | openapiStModeGet (openapiClientHandle_t *client_handle, OPEN_SUMMER_TIME_MODE_t *mode) |
| Get the summer-time mode. More... | |
| open_error_t | openapiStModeSet (openapiClientHandle_t *client_handle, OPEN_SUMMER_TIME_MODE_t mode) |
| Set the summer-time mode. More... | |
| open_error_t | openapiStNonRecurringGet (openapiClientHandle_t *client_handle, OPEN_ST_NON_RECURRING_PARAM_t parameter, open_buffdesc *bufd) |
| Get non-recurring summertime parameters. More... | |
| open_error_t | openapiStNonRecurringSet (openapiClientHandle_t *client_handle, OPEN_ST_NON_RECURRING_PARAM_t parameter, open_buffdesc *bufd) |
| Set non-recurring summertime parameters. More... | |
| open_error_t | openapiStRecurringGet (openapiClientHandle_t *client_handle, OPEN_ST_RECURRING_PARAM_t parameter, open_buffdesc *bufd) |
| Get recurring summertime parameters. More... | |
| open_error_t | openapiStRecurringSet (openapiClientHandle_t *client_handle, OPEN_ST_RECURRING_PARAM_t parameter, open_buffdesc *bufd) |
| Set recurring summertime parameters. More... | |
| OPEN_BOOL_t | openapiSummerTimeIsInEffect (openapiClientHandle_t *client_handle) |
| know whether the summer-time is in effect or not. More... | |
| open_error_t | openapiSystemTimeZoneAcronymGet (openapiClientHandle_t *client_handle, open_buffdesc *zoneName) |
| Gets the timezone acronym string. More... | |
| open_error_t | openapiTimeConvert (openapiClientHandle_t *client_handle, open_buffdesc *bufd, uint32_t *pHour, uint32_t *pMin) |
| Convert hh:mm string to int values. More... | |
| open_error_t | openapiTimeZoneAcronymGet (openapiClientHandle_t *client_handle, open_buffdesc *acronym) |
| Get the time zone acronym parameter. More... | |
| open_error_t | openapiTimeZoneAcronymSet (openapiClientHandle_t *client_handle, open_buffdesc *acronym) |
| Set the time zone acronym parameter. More... | |
| open_error_t | openapiUTCTimeGet (openapiClientHandle_t *client_handle, open_clocktime *ct) |
| Get the current UTC time since the Unix Epoch. More... | |
| int32_t | openapiUTCTimeNow (openapiClientHandle_t *client_handle) |
| Get the current synchronized UTC time since the Unix Epoch. More... | |
| open_error_t | openapiWeekNumberGet (openapiClientHandle_t *client_handle, open_buffdesc *name, uint32_t *number) |
| Convert month name to number value. More... | |
OpEN uses this enumeration to define the summer time non recurring parameters.
Definition at line 73 of file openapi_timezone.h.
OpEN uses this enumeration to define the summer time recurring parameters.
Definition at line 54 of file openapi_timezone.h.
OpEN uses this enumeration to define summer time mode.
Definition at line 44 of file openapi_timezone.h.
| open_error_t openapiAdjustedTimeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | year, | ||
| uint32_t * | month, | ||
| uint32_t * | day, | ||
| uint32_t * | hour, | ||
| uint32_t * | minutes, | ||
| uint32_t * | seconds | ||
| ) |
Adjusts current time for timezone and summer time.
| [in] | client_handle | client handle from registration API |
| [out] | year | year |
| [out] | month | month of the year |
| [out] | day | day of the month |
| [out] | hour | hour of the day |
| [out] | minutes | minutes of the hour |
| [out] | seconds | seconds of the hour |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiMinutesOffsetConvert | ( | openapiClientHandle_t * | client_handle, |
| int32_t | minutes, | ||
| uint32_t * | pHour, | ||
| uint32_t * | pMin | ||
| ) |
Convert minute offset into hour and minutes.
| [in] | client_handle | client handle from registration API |
| [in] | minutes | Holds minutes |
| [out] | pHour | pointer to Hour |
| [out] | pMin | pointer to minutes |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| uint32_t openapiRawAdjustedTimeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | rawTime | ||
| ) |
Converts the given Raw time to UTC and then adds the timezone and summer time offsets if configured.
| [in] | client_handle | client handle from registration API |
| [in] | rawTime | Raw time |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiStModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_SUMMER_TIME_MODE_t * | mode | ||
| ) |
Get the summer-time mode.
| [in] | client_handle | client handle from registration API |
| [out] | mode | Summer-time mode to be returned |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiStModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_SUMMER_TIME_MODE_t | mode | ||
| ) |
Set the summer-time mode.
| [in] | client_handle | client handle from registration API |
| [in] | mode | summer-time mode |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiStNonRecurringGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ST_NON_RECURRING_PARAM_t | parameter, | ||
| open_buffdesc * | bufd | ||
| ) |
Get non-recurring summertime parameters.
| [in] | client_handle | client handle from registration API |
| [in] | parameter | summer-time parameter |
| [out] | bufd | summer-time parameter value to be returned |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiStNonRecurringSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ST_NON_RECURRING_PARAM_t | parameter, | ||
| open_buffdesc * | bufd | ||
| ) |
Set non-recurring summertime parameters.
| [in] | client_handle | client handle from registration API |
| [in] | parameter | summer-time parameter |
| [in] | bufd | summer-time parameter value to be set |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiStRecurringGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ST_RECURRING_PARAM_t | parameter, | ||
| open_buffdesc * | bufd | ||
| ) |
Get recurring summertime parameters.
| [in] | client_handle | client handle from registration API |
| [in] | parameter | summer-time parameter |
| [out] | bufd | summer-time parameter value to be returned |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiStRecurringSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_ST_RECURRING_PARAM_t | parameter, | ||
| open_buffdesc * | bufd | ||
| ) |
Set recurring summertime parameters.
| [in] | client_handle | client handle from registration API |
| [in] | parameter | summer-time parameter |
| [in] | bufd | summer-time parameter value to be set |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| OPEN_BOOL_t openapiSummerTimeIsInEffect | ( | openapiClientHandle_t * | client_handle | ) |
know whether the summer-time is in effect or not.
| [in] | client_handle | client handle from registration API |
OpEN API Version: 1.25
| open_error_t openapiSystemTimeZoneAcronymGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | zoneName | ||
| ) |
Gets the timezone acronym string.
| [in] | client_handle | client handle from registration API |
| [out] | zoneName | timezone name |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiTimeConvert | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | bufd, | ||
| uint32_t * | pHour, | ||
| uint32_t * | pMin | ||
| ) |
Convert hh:mm string to int values.
| [in] | client_handle | client handle from registration API |
| [in] | bufd | ptr to buffer discription to hold time string |
| [out] | pHour | pointer to Hour |
| [out] | pMin | pointer to minutes |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiTimeZoneAcronymGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | acronym | ||
| ) |
Get the time zone acronym parameter.
| [in] | client_handle | client handle from registration API |
| [out] | acronym | minutes in timezone structure. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiTimeZoneAcronymSet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | acronym | ||
| ) |
Set the time zone acronym parameter.
| [in] | client_handle | client handle from registration API |
| [in] | acronym | minutes in timezone structure. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| open_error_t openapiUTCTimeGet | ( | openapiClientHandle_t * | client_handle, |
| open_clocktime * | ct | ||
| ) |
Get the current UTC time since the Unix Epoch.
| [in] | client_handle | client handle from registration API |
| [out] | unit | UTC time |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25
| int32_t openapiUTCTimeNow | ( | openapiClientHandle_t * | client_handle | ) |
Get the current synchronized UTC time since the Unix Epoch.
| [in] | client_handle | client handle from registration API |
OpEN API Version: 1.25
| open_error_t openapiWeekNumberGet | ( | openapiClientHandle_t * | client_handle, |
| open_buffdesc * | name, | ||
| uint32_t * | number | ||
| ) |
Convert month name to number value.
| [in] | client_handle | client handle from registration API |
| [in] | name | character buffer with week name string |
| [out] | number | pointer to week sequence number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.25