# watchdog\_if.h - [Overview](#section621015195165630) - [Summary](#section1204927856165630) - [Enumerations](#enum-members) - [Functions](#func-members) ## **Overview** **Related Modules:** [WATCHDOG](WATCHDOG.md) **Description:** Declares standard watchdog APIs. **Since:** 1.0 ## **Summary** ## Enumerations

Enumeration Name

Description

WatchdogStatus { WATCHDOG_STOP, WATCHDOG_START }

Enumerates watchdog statuses.

## Functions

Function

Description

WatchdogOpen (int16_t wdtId)

DevHandle

Opens a watchdog.

WatchdogClose (DevHandle handle)

void

Closes a watchdog.

WatchdogGetStatus (DevHandle handle, int32_t *status)

int32_t

Obtains the watchdog status.

WatchdogStart (DevHandle handle)

int32_t

Starts a watchdog.

WatchdogStop (DevHandle handle)

int32_t

Stops a watchdog.

WatchdogSetTimeout (DevHandle handle, uint32_t seconds)

int32_t

Sets the watchdog timeout duration.

WatchdogGetTimeout (DevHandle handle, uint32_t *seconds)

int32_t

Obtains the watchdog timeout duration.

WatchdogFeed (DevHandle handle)

int32_t

Feeds a watchdog, that is, resets a watchdog timer.