maix::peripheral::wdt

maix.peripheral.wdt module

This is maix::peripheral::wdt module of MaixCDK.
All of these elements are in namespace maix::peripheral::wdt.

For MaixCDK developer: DO NOT edit this doc file manually, this doc is auto generated!

Module

No module

Enum

Variable

Function

Class

WDT

Peripheral wdt class

C++ defination code:

class WDT

__init__

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

feed wdt

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

C++ defination code:

int feed()

stop

stop wdt

item description
type func
static False

C++ defination code:

int stop()

restart

restart wdt, stop and start watchdog timer.

item description
type func
static False

C++ defination code:

int restart()