EventCntr16
 
 
 Bean EventCntr16
 
Event counter 16-bit

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

Methods:

  • Enable - Enables the bean - the external events are counted.

      ANSIC prototype: byte Enable(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK

  • Disable - Disables the bean - the external events are not counted.

      ANSIC prototype: byte Disable(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK

  • Reset - This method resets the external event counter (sets it to zero).

      ANSIC prototype: byte Reset(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK

  • GetNumEvents - This method returns the number of the external events.

      ANSIC prototype: byte GetNumEvents(word *Value)
    • Value: Pointer to word - A pointer to the returned number of the external events
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_OVERFLOW - Timer overflow


Note: Some methods can be implemented as macros.



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