FromBACnetString (FUN) ¶ FUNCTION FromBACnetString : BOOL Returns a WSTRING corresponding to the given IEC_BACNET_STRING. Only UTF-8 and ISO 8859-1 BACnet-String supported right now. InOut: Scope Name Type Comment Return FromBACnetString BOOL Input bacString CmpBACnet.IEC_BACNET_STRING The BACnet string to convert to a WSTRING (with respect to the given string type in the BACnet string). Inout wStrBuffer WSTRING(255) A buffer used during conversion.
FromBACnetTime (FUN) ¶ FUNCTION FromBACnetTime : TIME Returns a TIME corresponding to the given IEC_BACNET_TIME. InOut: Scope Name Type Comment Return FromBACnetTime TIME Input bacTime CmpBACnet.IEC_BACNET_TIME The BACnet time to convert to TIME.
InitializeBACnetBoolean (FUN) ¶ FUNCTION InitializeBACnetBoolean : BOOL Initializes a IEC_BACNET_BOOLEAN according to a given BOOL. InOut: Scope Name Type Comment Return InitializeBACnetBoolean BOOL Input xInp BOOL The BOOL value to use for initialization. Inout bacBool CmpBACnet.IEC_BACNET_BOOLEAN The BACnet bool value to operate on.
InitializeBACnetDate (FUN) ¶ FUNCTION InitializeBACnetDate : BOOL Initializes a IEC_BACNET_DATE according to a given DATE. InOut: Scope Name Type Comment Return InitializeBACnetDate BOOL Input dat DATE The DATE to use for initialization. Inout bacDate CmpBACnet.IEC_BACNET_DATE The BACnet date to operate on.
FromBACnetTimeStamp (FUN) ¶ FUNCTION FromBACnetTimeStamp : BACnetTimeStamp Returns a BACnetTimeStamp corresponding to the given IEC_BACNET_TimeStamp. InOut: Scope Name Type Comment Return FromBACnetTimeStamp BACnetTimeStamp Input bacTimeStamp CmpBACnet.IEC_BACNET_TIME_STAMP The BACnet time stamp to convert to a BACnetTimeStamp.
IsBACnetBACnetDateTimeUnspecified (FUN) ¶ FUNCTION IsBACnetBACnetDateTimeUnspecified : BOOL Check if a BACnetDateTime is set to unspecified. InOut: Scope Name Type Return IsBACnetBACnetDateTimeUnspecified BOOL Input dateTime BACnetDateTime
BitStrings ¶ Functionalities for BACnet bit string initialization. BACnetBitStringGetBit (Function) BACnetBitStringSetBit (Function)
InitializeBACnetBitString (FUN) ¶ FUNCTION InitializeBACnetBitString : BOOL Initializes a IEC_BACNET_BIT_STRING according to a given STRING (i.e. in the form ‘1101011’). InOut: Scope Name Type Comment Return InitializeBACnetBitString BOOL Input str STRING The STRING used for initialization. Inout bitStr CmpBACnet.IEC_BACNET_BIT_STRING The bit string to operate on.
DeallocStackAllocatedContentBuffer (FUN) ¶ FUNCTION DeallocStackAllocatedContentBuffer : CmpBACnet.IEC_BACNET_STATUS Dealloc a property content buffer allocated by the BACstack. BACstack allocated content buffer appear at several API methods - for example calling GetPropertyInstanceStackAllocContentBuffer(). InOut: Scope Name Type Return DeallocStackAllocatedContentBuffer CmpBACnet.IEC_BACNET_STATUS Inout propertyContents CmpBACnet.IEC_BACNET_PROPERTY_CONTENTS
FreeStackAllocatedMemory (FUN) ¶ FUNCTION FreeStackAllocatedMemory Frees data, which got initialized by stack internal functionalities. The latter initializations may happen when, i.e. a string, which could get changed from any BACnet client, shall be read out and used within IEC, although its size can be only known by the BACnet stack, which then allocates memory for this string, which has to be freed after usage using this function. InOut: Scope Name Type Comment Input pData POINTER TO BYTE Pointer to the data/memory allocated by the BACnet stack to be freed again.