UA ANSI C Server Professional  1.4.2.297
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
UaServerPlatformUtilities

Functions

static __inline int UaServer_Atomic_Increment (volatile int *pointer)
 Atomically increments the int pointed to by pointer. More...
 
static __inline int UaServer_Atomic_Decrement (volatile int *pointer)
 Atomically decrements the int pointed to by pointer. More...
 
OpcUa_StatusCode UaServer_P_DateTime_ToMilliseconds (OpcUa_DateTime dateTime, OpcUa_UInt32 *pResult)
 Calculate the difference between two OpcUa_DateTime values. More...
 
OpcUa_DateTime UaServer_P_DateTime_Diff (OpcUa_DateTime value1, OpcUa_DateTime value2)
 Get the difference of two OpcUa_DateTime. More...
 
OpcUa_Void UaServer_P_Sleep (OpcUa_Int nMilliseconds)
 Let the server sleep for a fixed time. More...
 
OpcUa_Int32 UaServer_P_Abs (OpcUa_Int32 a_Value)
 Get the abs value. More...
 
OpcUa_Double UaServer_P_FAbs (OpcUa_Double a_Value)
 Get the fabs value. More...
 
OpcUa_Int32 UaServer_P_StrToL (const OpcUa_CharA *s, OpcUa_Byte base)
 Convert a string to long. More...
 
OpcUa_UInt32 UaServer_P_StrToUL (const OpcUa_CharA *s, OpcUa_Byte base)
 Convert a string to unsigned long. More...
 
OpcUa_Double UaServer_P_StrToD (const OpcUa_CharA *s)
 Convert a string to double. More...
 
OpcUa_Float UaServer_P_StrToF (const OpcUa_CharA *s)
 Convert a string to float. More...
 
OpcUa_CharA * UaServer_P_StrDup (const OpcUa_CharA *s)
 Duplicate a string. More...
 
time_t UaServer_P_TimeTFromDateTime (OpcUa_DateTime *a_pDateTime)
 Converts OpcUa_DateTime to time_t. More...
 
OpcUa_StatusCode UaServer_P_InitShutdownFlag ()
 Initializes the check for shutdown keystrokes. More...
 
OpcUa_Boolean UaServer_P_IsShutdownFlagSet ()
 Checks if the shutdown keystroke was pressed by the user. More...
 
OpcUa_StatusCode UaServer_P_ClearShutdownFlag ()
 Cleans up the check for shutdown keystrokes. More...
 

Detailed Description

Function Documentation

static __inline int UaServer_Atomic_Decrement ( volatile int *  pointer)
static

Atomically decrements the int pointed to by pointer.

Parameters
pointerPointer to the int to decrement.
Returns
The value of pointer after the decrement.
static __inline int UaServer_Atomic_Increment ( volatile int *  pointer)
static

Atomically increments the int pointed to by pointer.

Parameters
pointerPointer to the int to increment.
Returns
The value of pointer after the increment.
OpcUa_Int32 UaServer_P_Abs ( OpcUa_Int32  a_Value)

Get the abs value.

Parameters
a_Valuea value as an integer.
Returns
the abs value.
OpcUa_StatusCode UaServer_P_ClearShutdownFlag ( )

Cleans up the check for shutdown keystrokes.

Returns
OpcUa_Good on success.
OpcUa_DateTime UaServer_P_DateTime_Diff ( OpcUa_DateTime  value1,
OpcUa_DateTime  value2 
)

Get the difference of two OpcUa_DateTime.

Parameters
value1The first OpcUa_DateTime.
value2The second OpcUa_DateTime.
Returns
The result of subtracting value2 from value1.
OpcUa_StatusCode UaServer_P_DateTime_ToMilliseconds ( OpcUa_DateTime  dateTime,
OpcUa_UInt32 *  pResult 
)

Calculate the difference between two OpcUa_DateTime values.

Parameters
dateTimeFirst operand.
pResultSecond operand.
Returns
the OPC UA Status code.
OpcUa_Double UaServer_P_FAbs ( OpcUa_Double  a_Value)

Get the fabs value.

Parameters
a_Valuea value as an double.
Returns
the fabs value.
OpcUa_StatusCode UaServer_P_InitShutdownFlag ( )

Initializes the check for shutdown keystrokes.

Returns
OpcUa_Good on success.
OpcUa_Boolean UaServer_P_IsShutdownFlagSet ( )

Checks if the shutdown keystroke was pressed by the user.

Returns
OpcUa_True if the keystroke was pressed.
OpcUa_Void UaServer_P_Sleep ( OpcUa_Int  nMilliseconds)

Let the server sleep for a fixed time.

Parameters
nMillisecondsthe interval for the server to sleep.
OpcUa_CharA* UaServer_P_StrDup ( const OpcUa_CharA *  s)

Duplicate a string.

Parameters
sThe string to duplicate
Returns
The duplicated string, ensured to be zero terminated.
OpcUa_Double UaServer_P_StrToD ( const OpcUa_CharA *  s)

Convert a string to double.

Parameters
sThe string to convert
Returns
The converted double
OpcUa_Float UaServer_P_StrToF ( const OpcUa_CharA *  s)

Convert a string to float.

Parameters
sThe string to convert
Returns
The converted float
OpcUa_Int32 UaServer_P_StrToL ( const OpcUa_CharA *  s,
OpcUa_Byte  base 
)

Convert a string to long.

Parameters
sThe string to convert
baseThe base of the number in the string
Returns
The converted long
OpcUa_UInt32 UaServer_P_StrToUL ( const OpcUa_CharA *  s,
OpcUa_Byte  base 
)

Convert a string to unsigned long.

Parameters
sThe string to convert
baseThe base of the number in the string
Returns
The converted unsigned long
time_t UaServer_P_TimeTFromDateTime ( OpcUa_DateTime *  a_pDateTime)

Converts OpcUa_DateTime to time_t.

Parameters
a_pDateTimeTime to convert.
Returns
Given time in time_t format.