MT7687 API Reference  LinkIt SDK v4
Enum
HAL » WDT

Overview

Enumerations

enum  hal_wdt_status_t {
  HAL_WDT_STATUS_INVALID_PARAMETER = -2,
  HAL_WDT_STATUS_INVALID_MAGIC = -1,
  HAL_WDT_STATUS_OK = 0
}
 This enum define the API return type. More...
 
enum  hal_wdt_reset_status_t {
  HAL_WDT_TIMEOUT_RESET = 0,
  HAL_WDT_SOFTWARE_RESET = 1,
  HAL_WDT_NONE_RESET = 2
}
 This enum define the WDT reset status. More...
 
enum  hal_wdt_mode_t {
  HAL_WDT_MODE_RESET = 0,
  HAL_WDT_MODE_INTERRUPT = 1
}
 This enum defines the WDT mode. More...
 

Enumeration Type Documentation

This enum defines the WDT mode.

see hal_wdt_init() for more details. See Supported features for more about reset mode and interrupt mode.

Enumerator
HAL_WDT_MODE_RESET 

WDT reset mode.

A hardware reset will trigger in this mode if the timer counts down to 0 or software reset register is set.

HAL_WDT_MODE_INTERRUPT 

WDT interrupt mode.

An interrupt will trigger instead of hardware reset in this mode.

This enum define the WDT reset status.

Enumerator
HAL_WDT_TIMEOUT_RESET 

The WDT reset/interrupt occurred because the timer counts down to 0 .

HAL_WDT_SOFTWARE_RESET 

The WDT reset/interrupt occurred because the software reset register is set .

HAL_WDT_NONE_RESET 

The no WDT reset/interrupt occurred.

This enum define the API return type.

Enumerator
HAL_WDT_STATUS_INVALID_PARAMETER 

A wrong parameter is given.

HAL_WDT_STATUS_INVALID_MAGIC 

A wrong magic number is given.

HAL_WDT_STATUS_OK 

No error occurred during the function call.