Typedefs | |
typedef void * | NODE |
Handle to object representing a node. More... | |
typedef void * | NODECALLBACK |
Handle referencing a NODE specific registered callback function. More... | |
typedef void(__stdcall * | TFNode) (NODE Node, void *pPrivate) |
Callback function which is called with node related events. More... | |
Type Information | |
cvbbool_t | IsNode (NODE Node) |
Checks whether the given Node handle is valid. More... | |
cvbres_t | NType (NODE Node, TNodeType &Type) |
Gets the node type (implemented GenApi interface). More... | |
NODE Access | |
cvbres_t | NGetAsBoolean (NODE Node, cvbbool_t &Value) |
Gets the given Node value as a Boolean value. More... | |
cvbres_t | NGetAsFloat (NODE Node, double &Value) |
Gets the given Node value as a double. More... | |
cvbres_t | NGetAsInteger (NODE Node, cvbint64_t &Value) |
Gets the given Node value as an int64. More... | |
cvbres_t | NGetAsString (NODE Node, char *Value, size_t &ValueSize) |
Gets the given Node value as a C string. More... | |
cvbres_t | NGetAsStringW (NODE Node, wchar_t *Value, size_t &ValueSize) |
Gets the given Node value as a wide C string. More... | |
cvbres_t | NGetAsMemory (NODE PortNode, cvbint64_t Address, void *pBuffer, size_t BufferSize) |
Reads arbitrary data from a given Address. More... | |
cvbres_t | NInvalidate (NODE Node) |
Invalidates the given Node. More... | |
cvbres_t | NSetAsBoolean (NODE Node, cvbbool_t Value) |
Sets the given Node value as a Boolean. More... | |
cvbres_t | NSetAsFloat (NODE Node, double Value) |
Sets the given Node value as a double. More... | |
cvbres_t | NSetAsInteger (NODE Node, cvbint64_t Value) |
Sets the given Node value as an int64. More... | |
cvbres_t | NSetAsString (NODE Node, const char *Value) |
Sets the given Node value as a C string. More... | |
cvbres_t | NSetAsStringW (NODE Node, const wchar_t *Value) |
Sets the given Node value as a wide C string. More... | |
cvbres_t | NSetAsMemory (NODE PortNode, cvbint64_t Address, const void *pBuffer, size_t BufferSize) |
Writes arbitrary data to a given Address. More... | |
NODE Information | |
cvbres_t | NInfoAsBoolean (NODE Node, ::TNodeInfo Cmd, cvbbool_t &Info) |
Gets information about the given Node as a Boolean value. More... | |
cvbres_t | NInfoAsFloat (NODE Node, ::TNodeInfo Cmd, double &Info) |
Gets information about the given Node as a double value. More... | |
cvbres_t | NInfoAsInteger (NODE Node, ::TNodeInfo Cmd, cvbint64_t &Info) |
Gets information about the given Node as an int64 value. More... | |
cvbres_t | NInfoAsString (NODE Node, ::TNodeInfo Cmd, char *Info, size_t &InfoSize) |
Gets information about the given Node as a C string value. More... | |
cvbres_t | NInfoAsStringW (NODE Node, ::TNodeInfo Cmd, wchar_t *Info, size_t &InfoSize) |
Gets information about the given Node as a wide C string value. More... | |
cvbres_t | NInfoEnum (NODE Node, cvbdim_t Index, cvbint64_t &IntegerValue, char *StringValue, size_t &StringValueSize) |
Gets the available entries for a GenApi::IEnumeration node. More... | |
cvbres_t | NInfoEnumW (NODE Node, cvbdim_t Index, cvbint64_t &IntegerValue, wchar_t *StringValue, size_t &StringValueSize) |
Gets the available entries for a GenApi::IEnumeration node. More... | |
cvbres_t | NListCount (NODE Node, TNodeList List, cvbdim_t &NodeCount) |
Gets the number of entries of the specified List of the given Node. More... | |
cvbres_t | NList (NODE Node, TNodeList List, cvbdim_t Index, char *Entry, size_t &EntrySize) |
Gets the node Entry name at the given Index. More... | |
cvbres_t | NListW (NODE Node, TNodeList List, cvbdim_t Index, wchar_t *Entry, size_t &EntrySize) |
Gets the node Entry name at the given Index. More... | |
cvbres_t | NGetVerifyMode (NODE Node, TVerifyMode &Mode) |
Gets the current TVerifyMode of this node. More... | |
cvbres_t | NSetVerifyMode (NODE Node, TVerifyMode Mode) |
Sets a new TVerifyMode for this node. More... | |
NODE Callback Handling | |
cvbres_t | NRegisterUpdate (NODE Node, TFNode Callback, void *pPrivate, NODECALLBACK &Handle) |
Registers the node updated callback. More... | |
cvbres_t | NDeregisterUpdate (NODE Node, NODECALLBACK Handle) |
Unregisters a formerly registered function. More... | |
Handle to object representing a node.
All types of nodes are referenced via this handle.
Handle referencing a NODE specific registered callback function.
This handle identifies a registered callback function on a node. Use this handle to unregister the callback on the node it was registered on.
void(* TFNode)(NODE Node, void *pPrivate) |
Callback function which is called with node related events.
This function can be registered by the NRegisterUpdate function to get notifications on invalidated (and thus updated) nodes.
Node | [in] Node object that was invalidated (changed). |
pPrivate | [in] Pointer to user data given in the register function. |
enum TAccessMode |
enum TCachingMode |
Information on how the nodes cache their values.
enum TNodeInfo |
Defines commands to retrieve information about a node.
Enumerator | |
---|---|
NI_Name | Gets the full name of the node. |
NI_DisplayName | Gets the display name of the node. This is a human readable name of the node. |
NI_AccessMode | Gets the TAccessMode of a node. |
NI_Max | Gets the maximal possible value for the node. |
NI_Min | Gets the minimal possible value for the node. |
NI_Increment | Gets the increment value of the node. |
NI_NumEnumEntries | Gets the number of currently available enumeration entries of the node. |
NI_Streamable | Gets whether the node is streamable. |
NI_CachingMode | Gets the TCachingMode. |
NI_Tooltip | Gets the tooltip of the node. |
NI_Description | Gets the description of the node. |
NI_Visibility | Gets the TVisibility. |
NI_PollingTime | Gets the polling time in ms for uncached nodes (0 for no polling). Gets the polling time in ms. |
NI_EventID | Gets the event ID if any is available (empty string). |
NI_RegisterAddress | Gets the address of a register node. |
NI_RegisterLength | Gets the length of a register node in bytes. |
NI_Representation | Gets the number representation if applicable. |
NI_Unit | Gets the unit of float nodes as a string. |
NI_AliasName | Gets the full name of an alias node (empty for none). |
NI_Deprecated | Gets whether this node has been deprecated. |
NI_Feature | Gets whether this is a public feature node. |
enum TNodeList |
Definition for functions which list nodes to access.
Enumerator | |
---|---|
NL_ChildNode | Access the child node list. |
NL_Selected | Access the selected node list. |
NL_EnumEntry | Access the enumeration entry list. |
NL_Selecting | Access the list of nodes selecting this node. |
NL_Last | Enumeration helper to identify the end of the enumeration list. |
enum TNodeType |
Type of a node handle object.
Enumerator | |
---|---|
NT_Invalid | Node is not a valid NODE object. |
NT_Unknown | Node is of an unknown or unsupported type. |
NT_Boolean | Node is a boolean feature. |
NT_Category | Node is a category feature. |
NT_Command | Node is a command feature. |
NT_Enumeration | Node is an enumeration feature. |
NT_EnumEntry | Node is an enumeration entry node. |
NT_Float | Node is a float feature. |
NT_Integer | Node is a integer feature. |
NT_String | Node is a string feature. |
NT_Port | Node is a port node. |
NT_Node | Node is a generic node. |
Defines possible representation of a number.
enum TVerifyMode |
Sets the verification mode in a node for readand write access.
If verification is enabledand the written / read value is invalid the get or set function returns an CVC access or parameter error.
Enumerator | |
---|---|
VM_NO | Neither read nor writes are verified. |
VM_WO | Only write access is verified. This is the default. |
VM_RO | Only read access is verified. |
VM_RW | Both read and write access are verified. |
enum TVisibility |
cvbbool_t IsNode | ( | NODE | Node | ) |
Checks whether the given Node handle is valid.
[in] | Node | Handle to be checked. |
cvbres_t NDeregisterUpdate | ( | NODE | Node, |
NODECALLBACK | Handle | ||
) |
Unregisters a formerly registered function.
[in] | Node | CVB Node to access. |
[in] | Handle | Handle of callback function to be unregistered. |
cvbres_t NGetAsBoolean | ( | NODE | Node, |
cvbbool_t & | Value | ||
) |
Gets the given Node value as a Boolean value.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Reference to variable in which the current value of the node is written. |
cvbres_t NGetAsFloat | ( | NODE | Node, |
double & | Value | ||
) |
Gets the given Node value as a double.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Reference to variable in which the current value of the node is written. |
cvbres_t NGetAsInteger | ( | NODE | Node, |
cvbint64_t & | Value | ||
) |
Gets the given Node value as an int64.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Reference to variable in which the current value of the node is written. |
cvbres_t NGetAsMemory | ( | NODE | PortNode, |
cvbint64_t | Address, | ||
void * | pBuffer, | ||
size_t | BufferSize | ||
) |
Reads arbitrary data from a given Address.
[in] | PortNode | The port node to read data from. |
[in] | Address | Address to read from. |
[in] | pBuffer | Buffer to write read data to. |
[in] | BufferSize | Size of the given pBuffer memory. |
cvbres_t NGetAsString | ( | NODE | Node, |
char * | Value, | ||
size_t & | ValueSize | ||
) |
Gets the given Node value as a C string.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | C string to be filled with requested value; NULL for size inquiry (see ValueSize). |
[in,out] | ValueSize | Gives the buffer size of Value or receives the minimal needed size (including the terminating zero in either case) if Value is NULL . |
cvbres_t NGetAsStringW | ( | NODE | Node, |
wchar_t * | Value, | ||
size_t & | ValueSize | ||
) |
Gets the given Node value as a wide C string.
If the value of the node is not readable in this type an error is returned.
[in] | Node | CVB Node to access. |
[out] | Value | Wide C string to be filled with requested value; NULL for size inquiry (see ValueSize). |
[in,out] | ValueSize | Gives the buffer size of Value or receives the minimal needed size if Value is NULL . |
cvbres_t NGetVerifyMode | ( | NODE | Node, |
TVerifyMode & | Mode | ||
) |
Gets the current TVerifyMode of this node.
The mode indicates whether value reads and/or writes are to be verified. If a value is out of range no value is set/returned and an appropriate error code is returned.
[in] | Node | CVB Node to access. |
[out] | Mode | Reference to variable to contain the current mode. |
cvbres_t NInfoAsBoolean | ( | NODE | Node, |
::TNodeInfo | Cmd, | ||
cvbbool_t & | Info | ||
) |
Gets information about the given Node as a Boolean value.
If a requested information is not available as a Boolean the function returns an error.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NInfoAsFloat | ( | NODE | Node, |
::TNodeInfo | Cmd, | ||
double & | Info | ||
) |
Gets information about the given Node as a double value.
If a requested information is not available as a double the function returns an error.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NInfoAsInteger | ( | NODE | Node, |
::TNodeInfo | Cmd, | ||
cvbint64_t & | Info | ||
) |
Gets information about the given Node as an int64 value.
If a requested information is not available as an int64 the function returns an error.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Requested information. |
cvbres_t NInfoAsString | ( | NODE | Node, |
::TNodeInfo | Cmd, | ||
char * | Info, | ||
size_t & | InfoSize | ||
) |
Gets information about the given Node as a C string value.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | C string to be filled with requested information; NULL for size inquiry (see InfoSize). |
[in,out] | InfoSize | Gives the buffer size of Info or receives the minimal needed size if Info is NULL . |
cvbres_t NInfoAsStringW | ( | NODE | Node, |
::TNodeInfo | Cmd, | ||
wchar_t * | Info, | ||
size_t & | InfoSize | ||
) |
Gets information about the given Node as a wide C string value.
[in] | Node | CVB Node to access. |
[in] | Cmd | Command to identify the information to be retrieved. |
[out] | Info | Wide C string to be filled with requested information; NULL for size inquiry (see InfoSize). |
[in,out] | InfoSize | Gives the buffer size of Info or receives the minimal needed size if Info is NULL . |
cvbres_t NInfoEnum | ( | NODE | Node, |
cvbdim_t | Index, | ||
cvbint64_t & | IntegerValue, | ||
char * | StringValue, | ||
size_t & | StringValueSize | ||
) |
Gets the available entries for a GenApi::IEnumeration
node.
The number of available enumeration entries can be inquired with the NL_EnumEntry command of the NInfoAsInteger function.
[in] | Node | CVB Node to access. |
[in] | Index | Index of entry to access [0 ... NListCount (NL_EnumEntry) - 1]. |
[out] | IntegerValue | Integer representation of enumeration entry. |
[out] | StringValue | C string to be filled with string representation of the enumeration entry; NULL for size inquiry (see StringValueSize). |
[out] | StringValueSize | Gives the buffer size of StringValue or receives the needed size if StringValue is NULL . |
cvbres_t NInfoEnumW | ( | NODE | Node, |
cvbdim_t | Index, | ||
cvbint64_t & | IntegerValue, | ||
wchar_t * | StringValue, | ||
size_t & | StringValueSize | ||
) |
Gets the available entries for a GenApi::IEnumeration
node.
The number of available enumeration entries can be inquired with the NL_EnumEntry command of the NInfoAsInteger function.
[in] | Node | CVB Node to access. |
[in] | Index | Index of entry to access [0 ... NListCount (NL_EnumEntry) - 1]. |
[out] | IntegerValue | Integer representation of enumeration entry. |
[out] | StringValue | Wide C string to be filled with string representation of the enumeration entry; NULL for size inquiry (see StringValueSize). |
[out] | StringValueSize | Gives the buffer size of StringValue or receives the needed size if StringValue is NULL . |
cvbres_t NInvalidate | ( | NODE | Node | ) |
Invalidates the given Node.
Resets the changed status of the given Node. If the value is cached the next time this node is accessed the actual value from the device is read. All features which depend on this one are also updated.
[in] | Node | CVB Node to be invalidated. |
Gets the node Entry name at the given Index.
[in] | Node | CVB Node to access. |
[in] | List | Type of list of the Node to be accessed. |
[in] | Index | Index of entry to access. |
[out] | Entry | Name of node entry at the given Index. |
[in,out] | EntrySize | Size of Entry buffer; inquiry of min number of bytes if Entry is NULL . |
Gets the number of entries of the specified List of the given Node.
[in] | Node | CVB Node to access. |
[in] | List | Type of list of the NODE to be accessed. |
[out] | NodeCount | Number of entries in the List. |
Gets the node Entry name at the given Index.
[in] | Node | CVB Node to access. |
[in] | List | Type of list of the Node to be accessed. |
[in] | Index | Index of entry to access. |
[out] | Entry | Name of node entry at the given Index. |
[in,out] | EntrySize | Size of Entry buffer; inquiry of min number of bytes if Entry is NULL . |
cvbres_t NRegisterUpdate | ( | NODE | Node, |
TFNode | Callback, | ||
void * | pPrivate, | ||
NODECALLBACK & | Handle | ||
) |
Registers the node updated callback.
This callback is called when a node is invalidated (changed).
[in] | Node | CVB Node to access. |
[in] | Callback | Callback function pointer of function being called. |
[in] | pPrivate | User data pointer to be given in Callback function. |
[out] | Handle | Handle identifying the registered function. Needed to unregister the callback. |
cvbres_t NSetAsBoolean | ( | NODE | Node, |
cvbbool_t | Value | ||
) |
Sets the given Node value as a Boolean.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. |
cvbres_t NSetAsFloat | ( | NODE | Node, |
double | Value | ||
) |
Sets the given Node value as a double.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. |
cvbres_t NSetAsInteger | ( | NODE | Node, |
cvbint64_t | Value | ||
) |
Sets the given Node value as an int64.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. |
cvbres_t NSetAsMemory | ( | NODE | PortNode, |
cvbint64_t | Address, | ||
const void * | pBuffer, | ||
size_t | BufferSize | ||
) |
Writes arbitrary data to a given Address.
[in] | PortNode | The port node to write data to. |
[in] | Address | Address to write to. |
[in] | pBuffer | Buffer to write data from. |
[in] | BufferSize | Size of the given pBuffer memory. |
cvbres_t NSetAsString | ( | NODE | Node, |
const char * | Value | ||
) |
Sets the given Node value as a C string.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. This string must be 0 terminated. |
cvbres_t NSetAsStringW | ( | NODE | Node, |
const wchar_t * | Value | ||
) |
Sets the given Node value as a wide C string.
If the value of the node is not writable in this type an error is returned.
[in] | Node | CVB Node to access. |
[in] | Value | New value of the node. This string must be 0 terminated. |
cvbres_t NSetVerifyMode | ( | NODE | Node, |
TVerifyMode | Mode | ||
) |
Sets a new TVerifyMode for this node.
The mode indicates whether value reads and/or writes are to be verified. If a value is out of range no value is set/returned and an appropriate error code is returned.
[in] | Node | CVB Node to access. |
[out] | Mode | New mode. |