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

Module

No module

Enum

Variable

Function

Class

WDT

Peripheral wdt class

C++ defination code:

class WDT

__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)

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()

stop

def stop(self) -> int

stop wdt

item description
type func
static False

C++ defination code:

int stop()

restart

def restart(self) -> int

restart wdt, stop and start watchdog timer.

item description
type func
static False

C++ defination code:

int restart()