ANSI C UA Server SDK
1.5.3.333
|
Functions | |
OpcUa_StatusCode | UaBase_P_DateTime_ToMilliseconds (OpcUa_DateTime dateTime, OpcUa_UInt32 *pResult) |
Calculate the difference between two OpcUa_DateTime values. More... | |
OpcUa_DateTime | UaBase_P_DateTime_Diff (OpcUa_DateTime value1, OpcUa_DateTime value2) |
Get the difference of two OpcUa_DateTime. More... | |
OpcUa_Void | UaBase_P_Sleep (OpcUa_Int nMilliseconds) |
Let the server sleep for a fixed time. More... | |
OpcUa_Int32 | UaBase_P_Abs (OpcUa_Int32 a_Value) |
Get the abs value. More... | |
OpcUa_Double | UaBase_P_FAbs (OpcUa_Double a_Value) |
Get the fabs value. More... | |
OpcUa_Int32 | UaBase_P_StrToL (const OpcUa_CharA *s, OpcUa_Byte base) |
Convert a string to long. More... | |
OpcUa_UInt32 | UaBase_P_StrToUL (const OpcUa_CharA *s, OpcUa_Byte base) |
Convert a string to unsigned long. More... | |
OpcUa_Double | UaBase_P_StrToD (const OpcUa_CharA *s) |
Convert a string to double. More... | |
OpcUa_Float | UaBase_P_StrToF (const OpcUa_CharA *s) |
Convert a string to float. More... | |
OpcUa_CharA * | UaBase_P_StrDup (const OpcUa_CharA *s) |
Duplicate a string. More... | |
time_t | UaBase_P_TimeTFromDateTime (OpcUa_DateTime *a_pDateTime) |
Converts OpcUa_DateTime to time_t. More... | |
OpcUa_StatusCode | UaBase_P_InitShutdownFlag () |
Initializes the check for shutdown keystrokes. More... | |
OpcUa_Boolean | UaBase_P_IsShutdownFlagSet () |
Checks if the shutdown keystroke was pressed by the user. More... | |
OpcUa_Boolean | UaBase_P_IsRestartFlagSet () |
Checks if the restart keystroke was pressed by the user. More... | |
OpcUa_StatusCode | UaBase_P_ClearShutdownFlag () |
Cleans up the check for shutdown keystrokes. More... | |
static __inline int | UaBase_Atomic_Increment (volatile int *pointer) |
Atomically increments the int pointed to by pointer. More... | |
static __inline int | UaBase_Atomic_Decrement (volatile int *pointer) |
Atomically decrements the int pointed to by pointer. More... | |
static __inline int | UaBase_Atomic_Get (volatile int *pointer) |
Atomically returns the int pointed to by pointer. More... | |
|
static |
Atomically decrements the int pointed to by pointer.
pointer | Pointer to the int to decrement. |
|
static |
Atomically returns the int pointed to by pointer.
pointer | Pointer to the int to return. |
|
static |
Atomically increments the int pointed to by pointer.
pointer | Pointer to the int to increment. |
OpcUa_Int32 UaBase_P_Abs | ( | OpcUa_Int32 | a_Value | ) |
Get the abs value.
a_Value | a value as an integer. |
OpcUa_StatusCode UaBase_P_ClearShutdownFlag | ( | ) |
Cleans up the check for shutdown keystrokes.
OpcUa_DateTime UaBase_P_DateTime_Diff | ( | OpcUa_DateTime | value1, |
OpcUa_DateTime | value2 | ||
) |
Get the difference of two OpcUa_DateTime.
value1 | The first OpcUa_DateTime. |
value2 | The second OpcUa_DateTime. |
OpcUa_StatusCode UaBase_P_DateTime_ToMilliseconds | ( | OpcUa_DateTime | dateTime, |
OpcUa_UInt32 * | pResult | ||
) |
Calculate the difference between two OpcUa_DateTime values.
dateTime | First operand. |
pResult | Second operand. |
OpcUa_Double UaBase_P_FAbs | ( | OpcUa_Double | a_Value | ) |
Get the fabs value.
a_Value | a value as an double. |
OpcUa_StatusCode UaBase_P_InitShutdownFlag | ( | ) |
Initializes the check for shutdown keystrokes.
OpcUa_Boolean UaBase_P_IsRestartFlagSet | ( | ) |
Checks if the restart keystroke was pressed by the user.
OpcUa_Boolean UaBase_P_IsShutdownFlagSet | ( | ) |
Checks if the shutdown keystroke was pressed by the user.
OpcUa_Void UaBase_P_Sleep | ( | OpcUa_Int | nMilliseconds | ) |
Let the server sleep for a fixed time.
nMilliseconds | the interval for the server to sleep. |
OpcUa_CharA* UaBase_P_StrDup | ( | const OpcUa_CharA * | s | ) |
Duplicate a string.
s | The string to duplicate |
OpcUa_Double UaBase_P_StrToD | ( | const OpcUa_CharA * | s | ) |
Convert a string to double.
s | The string to convert |
OpcUa_Float UaBase_P_StrToF | ( | const OpcUa_CharA * | s | ) |
Convert a string to float.
s | The string to convert |
OpcUa_Int32 UaBase_P_StrToL | ( | const OpcUa_CharA * | s, |
OpcUa_Byte | base | ||
) |
Convert a string to long.
s | The string to convert |
base | The base of the number in the string |
OpcUa_UInt32 UaBase_P_StrToUL | ( | const OpcUa_CharA * | s, |
OpcUa_Byte | base | ||
) |
Convert a string to unsigned long.
s | The string to convert |
base | The base of the number in the string |
time_t UaBase_P_TimeTFromDateTime | ( | OpcUa_DateTime * | a_pDateTime | ) |
Converts OpcUa_DateTime to time_t.
a_pDateTime | Time to convert. |