WatchDog
 
Component WatchDog
WatchDog component
Component Level: Low
Methods:
(Methods are user-callable functions/subroutines intended for the component functions control. Please see the Embedded Components page for more information.)
  • Methods not supported for Freescale HC(S)08, RS08, HCS12(X), and CFV1 derivatives except CFV1 AG family.
    • Enable - Enables the component - starts the watchdog timer counting.

        ANSIC prototype: byte Enable(void)
      • Return value:byte - Error code, possible codes:
        ERR_OK - OK
        ERR_SPEED - This device does not work in the active speed mode
        ERR_PROTECT - This device does is protected

    • Disable - Disables the component - stops the watchdog timer counting.

        ANSIC prototype: byte Disable(void)
      • Return value:byte - Error code, possible codes:
        ERR_OK - OK
        ERR_SPEED - This device does not work in the active speed mode
        ERR_PROTECT - This device does is protected

  • Clear - Clears the watchdog timer (it makes the timer restart from zero).

      ANSIC prototype: byte Clear(void)
    • Return value:byte - Error code, possible codes:
      ERR_OK - OK
      ERR_SPEED - This device does not work in the active speed mode
      ERR_DISABLED - The Component is disabled

  • Methods for Freescale 56800/E derivatives and CFV1 AG family.
    • Protect - Protects the watchdog against changing its state or period (against disabling the watchdog if it is enabled and vice versa). This protection can be de-activated only by resetting the CPU.

        ANSIC prototype: byte Protect(void)
      • Return value:byte - Error code, possible codes:
        ERR_OK - OK
        ERR_SPEED - This device does not work in the active speed mode
        ERR_PROTECT - This device does is protected


Note: Some methods can be implemented as macros.