Wdg — Requirements
Normative
Defines what a conformant watchdog driver MUST do. Keywords per Requirement Keywords; conformance per Conformance. Requirements do not carry individual status — the set-level status applies to all of them. Signatures, error codes, and configuration properties are in the API Reference, Errors, and Configuration Reference pages. Cross-module rules (types, error model, naming, memory mapping) are in General.
Mandatory (MUST) - 9 Requirements
The conformance contract — an implementation MUST satisfy every requirement here.
CHI-WDG-MUST-01 — Direct timeout management
|
The driver MUST support direct timeout management as its primary implementation: the timeout is written directly into the watchdog hardware counter, using no timer resource and no periodic triggering. (This requires hardware whose timeout counter can be rewritten at runtime with millisecond resolution.) |
CHI-WDG-MUST-02 — Internal watchdog control
|
Where a WdgDrv instance controls an internal watchdog, it MUST drive the watchdog hardware directly. |
CHI-WDG-MUST-03 — External watchdog control
|
Where a WdgDrv instance controls an external watchdog, it MUST drive the hardware through
another software component (e.g. an SPI or I2C driver). The implementation MUST resolve any
request conflict between |
CHI-WDG-MUST-04 — Initialization
|
|
CHI-WDG-MUST-05 — Mode switching
|
|
CHI-WDG-MUST-06 — Timeout update
|
|
CHI-WDG-MUST-07 — Development error detection
|
When development error reporting is enabled, each API MUST detect the conditions listed in
Errors and report them via |
CHI-WDG-MUST-08 — Public types and error identifiers
|
The driver MUST provide |
CHI-WDG-MUST-09 — Configuration model
|
The driver MUST support the configuration model in Configuration Reference — a
|
Recommended (SHOULD) - 3 Requirements
CHI-WDG-SHOULD-01 — Logical timeout management
|
Where the hardware is too restrictive for direct timeout management (e.g. a write-once
counter, or coarse/discontinuous timeout values), the driver SHOULD support logical
timeout management — keeping the timeout in software and using a periodic timer to trigger
the hardware via |
CHI-WDG-SHOULD-02 — Watchdog feed
|
For logical timeout management, |
CHI-WDG-SHOULD-03 — Previous-timeout evaluation
|
For logical timeout management, |