10 uint8_t tx[8] = {200,
pin,7, (uint8_t)normalState,(uint8_t)resetState,
SW_LE16(timeout_mS),ResetWombatAfterTimeout };
14 uint8_t tx1[8] = { 201,
pin,7,0,0,0,0,0x55 };
15 if (! ResetWombatAfterTimeout)
26 _sw.writePublicData(
_pin, time_mS);
#define SW_LE16(_a)
Convert a uint16_t to two bytes in little endian format for array initialization.
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.