-
Enable
- Enables the component - the external events are accepted.
ANSIC prototype: void Enable(void)
-
Disable
- Disables the component - the external events are not accepted.
ANSIC prototype: void Disable(void)
-
EnableEvent
- Enables on interrupts event. This method is available only if Interrupt service/event property is enabled.
ANSIC prototype: void EnableEvent(void)
-
DisableEvent
- Disables on interrupts event. This method is available only if Interrupt service/event property is enabled.
ANSIC prototype: void DisableEvent(void)
-
GetVal
- Returns the value of pins
ANSIC prototype: byte GetVal(void)
- Return value:byte - The value of associated pins (bits ordered according to the component list of pins)
-
SetEdge
- Sets the sensitive edge. If all selected pins don't have the same edge setting possibility, the method allows to set only those edges that are common (possible to set for all selected pins).
ANSIC prototype: byte SetEdge(byte edge)
- edge:byte - Edge type:
0 - falling edge
1 - rising edge
2 - both edges
3 - low level
4 - high level
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_RANGE - Value is out of range
-
GetStatus
- Gets and clears the interrupt flag. If the Interrupt service/event property is set to "Enabled", interrupt flag is cleared in the generated interrupt service routine, but this method can be used for example to clear ongoing input signal glitches.
ANSIC prototype: byte GetStatus(void)
- Return value:byte - Returns non zero value if the interrupt flag is set, otherwise returns zero value
Note: Some methods can be implemented as macros.