maix.peripheral.wdt

maix.peripheral.wdt module

You can use maix.peripheral.wdt to access this module with MaixPy
This module is generated from MaixPy and MaixCDK

1. Module#

No module

2. Enum#

3. Variable#

4. Function#

5. Class#

5.1. WDT#

Peripheral wdt class

C++ defination code:

class WDT

5.1.1. __init__#

def __init__(self, id: int, feed_ms: int) -> None

WDT constructor, after construct, the wdt will auto start.

item description
type func
param id: direction [in], id of wdt, int type
feed_ms: direction [in], feed interval, int type, unit is ms, you must feed wdt in this interval, or system will restart.
static False

C++ defination code:

WDT(int id, int feed_ms)

5.1.2. feed#

def feed(self) -> int

feed wdt

item description
type func
return error code, if feed success, return err::ERR_NONE
static False

C++ defination code:

int feed()

5.1.3. stop#

def stop(self) -> int

stop wdt

item description
type func
static False

C++ defination code:

int stop()

5.1.4. restart#

def restart(self) -> int

restart wdt, stop and start watchdog timer.

item description
type func
static False

C++ defination code:

int restart()