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:
5.1.1. __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:
5.1.2. feed#
feed wdt
item | description |
---|---|
type | func |
return | error code, if feed success, return err::ERR_NONE |
static | False |
C++ defination code:
5.1.3. stop#
stop wdt
item | description |
---|---|
type | func |
static | False |
C++ defination code:
5.1.4. restart#
restart wdt, stop and start watchdog timer.
item | description |
---|---|
type | func |
static | False |
C++ defination code: