Digital Input Events

A DLN-series adapter can be configured to send DLN_GPIO_EVENT events. They are generated when the level on an I/O meets specified requirements. Digital inputs events are configured using the DLN_GPIO_PORT_CONFIG structure. The eventType parameter defines conditions for event generation. For some of the event types the eventPeriod parameter can be defined. In this case the device will send recurrent events each eventPeriod milliseconds.

There are five types of events:

DLN_GPIO_EVENT_NONE No events are generated.
DLN_GPIO_EVENT_CHANGE Events are generated when the level on the digital input line changes.
DLN_GPIO_EVENT_LEVEL_HIGH Events are generated when the high level is detected on the digital input line.
DLN_GPIO_EVENT_LEVEL_LOW Events are generated when the low level is detected on the digital input line.
DLN_GPIO_EVENT_ALWAYS Events are generated continuously, regardless of the signal level.