| ioPAC RTU Controllers C/C++ Sample Code Programming Guide

- Main Page
- Modules
- Data Structures
- Files

Data Structures | Macros | Functions
SoftwareWatchdog
Library » Misc

## Data Structures
struct | swtd_setting

## Macros
#define | SOFTWARE_WATCHDOG_MIN_TIME 1
#define | SOFTWARE_WATCHDOG_MAX_TIME 60

## Functions
MISC_ERR_CODE | MX_RTU_SWTD_Enable (UINT32 swtdtime)
MISC_ERR_CODE | MX_RTU_SWTD_Get_Setting (struct swtd_setting *setting)
MISC_ERR_CODE | MX_RTU_SWTD_Disable ()
MISC_ERR_CODE | MX_RTU_SWTD_Ack ()

## Detailed Description

Sample Code:
software_watchdog.c

## Macro Definition Documentation

#define SOFTWARE_WATCHDOG_MIN_TIME 1

#define SOFTWARE_WATCHDOG_MAX_TIME 60

## Function Documentation

MISC_ERR_CODE MX_RTU_SWTD_Enable | ( | UINT32 | swtdtime | ) |

Parameters

  [in] | swtdtime | Software Watchdog Count, watchdog must be acked before time is up in seconds from SOFTWARE_WATCHDOG_MIN_TIME to SOFTWARE_WATCHDOG_MAX_TIME .

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_SWTD_Get_Setting | ( | struct swtd_setting * | setting | ) |

Parameters

  [out] | setting | Settings include enable and count of Software Watchdog.

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_SWTD_Disable | ( |  | ) |

Returns
  MISC_ERR_CODE

MISC_ERR_CODE MX_RTU_SWTD_Ack | ( |  | ) |

Returns
  MISC_ERR_CODE