ExtInt
 
Component ExtInt
External interrupt
Component Level: High
Methods:
(Methods are user-callable functions/subroutines intended for the component functions control. Please see the Embedded Components page for more information.)
  • Enable - Enable the component - the external events are accepted. This method is available only if HW module allows enable/disable of the interrupt.

      ANSIC prototype: void Enable(void)

  • Disable - Disable the component - the external events are not accepted. This method is available only if HW module allows enable/disable of the interrupt.

      ANSIC prototype: void Disable(void)

  • GetVal - Returns the actual value of the input pin of the component.

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