Serial Wombat Arduino Library
Loading...
Searching...
No Matches
SerialWombatWatchdog.h
Go to the documentation of this file.
1#pragma once
2#include "SerialWombat.h"
5
30{
31public:
42 void begin(uint8_t pin, SerialWombatPinState_t normalState, SerialWombatPinState_t resetState, uint16_t timeout_mS, bool resetWombatAfterTimeout);
43
46 void updateResetCountdown(uint16_t time_mS);
47private:
48
49 uint16_t _resetStateTime = 10;
50
51};
52
SerialWombatPinState_t
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
SerialWombatPin(SerialWombatChip &serialWombatChip)
Instantiates a Serial Wombat Pin.
uint8_t pin()
Returns the current SW pin number. Used primarily for virtual calls by derived classes.
void begin(uint8_t pin, SerialWombatPinState_t normalState, SerialWombatPinState_t resetState, uint16_t timeout_mS, bool resetWombatAfterTimeout)
Initialize a SerialWombatWatchdog.
void updateResetCountdown(uint16_t time_mS)
Reset the countdown timer to a specified number of mS.
SerialWombatWatchdog(SerialWombatChip &serialWombat)
Constructor for SerialWombatWatchdog.