maix.peripheral.wdt

maix.peripheral.wdt module

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

Module

No module

Enum

Variable

Function

Class

WDT

item doc
brief Peripheral wdt class

C++ defination code:

class WDT

__init__

item doc
type func
brief WDT constructor, after construct, the wdt will auto start.
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

item doc
type func
brief feed wdt
return error code, if feed success, return err::ERR_NONE
static False

C++ defination code:

int feed()

stop

item doc
type func
brief stop wdt
static False

C++ defination code:

int stop()

restart

item doc
type func
brief restart wdt, stop and start watchdog timer.
static False

C++ defination code:

int restart()