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
29 class SerialWombatWatchdog: public SerialWombatPin
30{
31 public:
34 SerialWombatWatchdog(SerialWombatChip& serialWombat);
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);
47 private:
48
49 uint16_t _resetStateTime = 10;
50
51};
52
SerialWombat.h
SerialWombatPinState_t
SerialWombatPinState_t
Definition SerialWombat.h:57
SerialWombatChip
Class for a Serial Wombat chip. Each Serial Wombat chip on a project should have its own instance.
Definition SerialWombat.h:315
SerialWombatPin::SerialWombatPin
SerialWombatPin(SerialWombatChip &serialWombatChip)
Instantiates a Serial Wombat Pin.
Definition SerialWombatPin.h:45
SerialWombatPin::pin
uint8_t pin()
Returns the current SW pin number. Used primarily for virtual calls by derived classes.
Definition SerialWombatPin.h:120
SerialWombatWatchdog::begin
void begin(uint8_t pin, SerialWombatPinState_t normalState, SerialWombatPinState_t resetState, uint16_t timeout_mS, bool resetWombatAfterTimeout)
Initialize a SerialWombatWatchdog.
Definition SerialWombatWatchdog.cpp:7
SerialWombatWatchdog::updateResetCountdown
void updateResetCountdown(uint16_t time_mS)
Reset the countdown timer to a specified number of mS.
Definition SerialWombatWatchdog.cpp:24
SerialWombatWatchdog::SerialWombatWatchdog
SerialWombatWatchdog(SerialWombatChip &serialWombat)
Constructor for SerialWombatWatchdog.
Definition SerialWombatWatchdog.cpp:3