ExtInt
 
 
 Bean ExtInt
 
External interrupt

Methods are user callable functions/subroutines that are means of controlling the bean functions.

Methods:

  • 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.



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.