Functions | |
__int3264 | BitListenerCreate (long Port, State Value, long Delay) |
Creates a BitListener object and initiate monitoring of an individual input port. More... | |
boolean | BitListenerDestroy (__int3264 BitListener) |
Destroys a BitListener which was created with the BitListenerCreate method. More... | |
boolean | BitListenerStart (__int3264 BitListener) |
Starts a BitListener which was created with the BitListenerCreate method. More... | |
boolean | BitListenerStop (__int3264 BitListener) |
Stops a BitListener created with the BitListenerCreate method. More... | |
__int3264 | BitTogglerCreate (long Port, long Delay) |
Creates a BitToggler object and invert the state of an output port for a specific period of time. More... | |
boolean | BitTogglerDestroy (__int3264 BitToggler) |
Destroys a BitToggler which was created with the BitTogglerCreate method. More... | |
boolean | BitTogglerStart (__int3264 BitToggler) |
Starts a BitToggler which was created with the BitTogglerCreate method. More... | |
__int3264 | DWORDListenerCreate (long Port, long Value, long Delay) |
Creates a DWORDListener object and initiate monitoring of an individual input group port. More... | |
boolean | DWORDListenerDestroy (__int3264 DWORDListener) |
Destroys a DWORDListener which was created with the DWORDListenerCreate method. More... | |
boolean | DWORDListenerStart (__int3264 DWORDListener) |
Starts a DWORDListener which was created with the DWORDListenerCreate method. More... | |
boolean | DWORDListenerStop (__int3264 DWORDListener) |
Stops a DWORDListener created with the BitListenerCreate method. More... | |
State | GetInBit (long Port) |
Return the state of an input port. More... | |
long | GetInDWORD (long PortGroup) |
Return the state of an input port group. More... | |
State | GetOutBit (long Port) |
Return the state of an output port. More... | |
long | GetOutDWORD (long PortGroup) |
Return the state of an output port group. More... | |
State | SetOutBit (long Port, State Value) |
Sets the state of an output port. More... | |
long | SetOutDWORD (long PortGroup, long Value, long Mask) |
Sets the state of an output port group. More... | |
__int3264 BitListenerCreate | ( | long | Port, |
State | Value, | ||
long | Delay | ||
) |
Creates a BitListener object and initiate monitoring of an individual input port.
The method creates a thread in which the port is monitored. This thread is not strarted until the BitListenerStart method is called. The port is then interrogated continously. To prevent that the system dedicating too much processor time to the Listener the thread passes control to the system for 'Delay' milliseconds. If the thread detects the required state of the port it triggers the Listener event. Then the user can respond to this event.
[in] | Port | Port to be monitored. The value ranges between 0 to NumInputs - 1. |
[in] | Value | Required state of the port to be react. For possible states refer to State. |
[in] | Delay | Time in ms for which the thrad passes control to the system. |
0
if creation failed or when the value of the port is not in its range. boolean BitListenerDestroy | ( | __int3264 | BitListener | ) |
Destroys a BitListener which was created with the BitListenerCreate method.
[in] | BitListener | Handle of the BitListender object. |
TRUE
, if BitListener was destroyed successfully, FALSE
otherwise. boolean BitListenerStart | ( | __int3264 | BitListener | ) |
Starts a BitListener which was created with the BitListenerCreate method.
[in] | BitListener | Handle of the BitListender object. |
TRUE
, if BitListener was started correctly, FALSE
if BitListener was NOT started. boolean BitListenerStop | ( | __int3264 | BitListener | ) |
Stops a BitListener created with the BitListenerCreate method.
[in] | BitListener | Handle of the BitListender object. |
TRUE
, if BitListener was stopped correctly, FALSE
if BitListener was NOT stopped. __int3264 BitTogglerCreate | ( | long | Port, |
long | Delay | ||
) |
Creates a BitToggler object and invert the state of an output port for a specific period of time.
The method creates a thread in which the inversion takes place. This thread is not started until the \ref BitTogglerStart method is called. The port is then inverted immediately and reset to its original state after the specified time. The \ref BitTogglerStart returns control to an application immediately and does not wait until the thread is finished. When the inversion is completed and the port has been restored the \ref Toggler event is fired. The user can respond to this event. To generate another pulse, \ref BitTogglerStart has to be called again.
[in] | Port | Port to be inverted. Value ranges from 0 to NumInputs - 1. |
[in] | Delay | Inversion time in ms. |
0
if creation failed or when the value of the port is not in its range. boolean BitTogglerDestroy | ( | __int3264 | BitToggler | ) |
Destroys a BitToggler which was created with the BitTogglerCreate method.
[in] | BitToggler | Handle of the BitToggler object. |
TRUE
if BitToggler was destroyed successfully, FALSE
otherwise. boolean BitTogglerStart | ( | __int3264 | BitToggler | ) |
Starts a BitToggler which was created with the BitTogglerCreate method.
[in] | BitToggler | Handle of the BitToggler object. |
TRUE
, if BitToggler was started correctly, FALSE
if BitToggler was NOT started. __int3264 DWORDListenerCreate | ( | long | Port, |
long | Value, | ||
long | Delay | ||
) |
Creates a DWORDListener object and initiate monitoring of an individual input group port.
The method creates a thread in which the group port is monitored. This thread is not started until the DWORDListenerStart method is called. The group port is then interrogated continously. To prevent that the system dedicating too much processor time to the DWORDListener the thread passes control to the system for 'Delay' milliseconds. If the thread detects the required state of the port it triggers the Listener event. Then the user can respond to this event.
[in] | Port | Group port to be monitored. |
[in] | Value | Required state of the group port to be react. |
[in] | Delay | Time in ms for which the thrad passes control to the system. |
0
if creation failed or when the value of the group port is not in its range. boolean DWORDListenerDestroy | ( | __int3264 | DWORDListener | ) |
Destroys a DWORDListener which was created with the DWORDListenerCreate method.
[in] | DWORDListener | Handle of the DWORDListener object. |
TRUE
, if DWORDListener was destroyed successfully, FALSE
otherwise. boolean DWORDListenerStart | ( | __int3264 | DWORDListener | ) |
Starts a DWORDListener which was created with the DWORDListenerCreate method.
[in] | DWORDListener | Handle of the DWORDListener object. |
TRUE
, if DWORDListener was started correctly, FALSE
if DWORDListener was NOT started. boolean DWORDListenerStop | ( | __int3264 | DWORDListener | ) |
Stops a DWORDListener created with the BitListenerCreate method.
[in] | DWORDListener | Handle of the DWORDListener object. |
TRUE
, if DWORDListener was stopped correctly, FALSE
if DWORDListener was NOT stopped. State GetInBit | ( | long | Port | ) |
Return the state of an input port.
[in] | Port | Input port to be read in the range from 0 to NumInputs - 1. |
long GetInDWORD | ( | long | PortGroup | ) |
Return the state of an input port group.
[in] | PortGroup | Input port group to be read. |
State GetOutBit | ( | long | Port | ) |
Return the state of an output port.
[in] | Port | Output port to be read in the range from 0 to NumOutput - 1. |
long GetOutDWORD | ( | long | PortGroup | ) |
Return the state of an output port group.
[in] | PortGroup | Output port group to be read. |
Sets the state of an output port.
[in] | Port | Output port to be set. The |
[in] | Value | Valid port number between 0 and NumInputs - 1. |
long SetOutDWORD | ( | long | PortGroup, |
long | Value, | ||
long | Mask | ||
) |
Sets the state of an output port group.
[in] | PortGroup | Output port group to be set. |
[in] | Value | Group port value. |
[in] | Mask | Mask to be used. It describes which bits are to be written. |