-
Enable
- Enable the bean - the external events are accepted.
ANSIC prototype: void Enable(void)
-
Disable
- Disable the bean - the external events are not accepted.
ANSIC prototype: void Disable(void)
-
GetVal
- Returns the actual value of the input pin of the bean.
ANSIC prototype: bool GetVal(void)
- Return value:bool - Returned input value. Possible values:
FALSE - logical "0" (Low level)
TRUE - logical "1" (High level)
-
SetEdge
- Sets the edge type for this bean that generates the interrupt.
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
Note: Some methods can be implemented as macros.