Digital events are used to monitor the input value of a port, a bit within a port, or both. When enabled, a digital event sends a notification whenever the monitored bit or bits change value. Note that although digital events are typically used with bits that are in input mode, this is not enforced. If a digital event is enabled on a bit in output mode, it will fire an event every time you change the output value.
Digital events are supported on all bits of the ETH32's four 8-bit ports. Events may be enabled on any or all of these bits simultaneously. In order to achieve the fastest event monitoring speeds and use network traffic efficiently, you should only enable events on the bits where they are needed.
There are two types of digital events: port events and bit events. Port events monitor the entire 8-bit value of a port and notify you whenever that 8-bit value changes. Bit events monitor a single bit and notify whenever that bit changes.
Task | C / C++ | .NET Languages | Visual Basic 6 |
---|---|---|---|
Enable event notification | eth32_enable_event | EnableEvent Method | EnableEvent Method |
Disable event notification | eth32_disable_event | DisableEvent Method | DisableEvent Method |