![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
IO and GS watchdog. More...
#include <io_wdg.hpp>
Public Member Functions | |
| io_wdg (io_wdg const &)=delete | |
| void | operator= (io_wdg const &)=delete |
| void | start () |
| Starts the io_wdg. This method should be called after the board initialization process (satnogs::comms::lib::board::init()). | |
| void | set_period (uint32_t period_mins) |
| Updates the watchdog period in both the currently running instance and at the persistent storage. | |
| uint32_t | period_mins () |
| Gets the currently configured period in minutes. | |
| void | reset () |
| Resets the watchdog timer. | |
Static Public Member Functions | |
| static io_wdg & | get_instance () |
| Singleton access to the io_wdg subsystem. | |
Static Public Attributes | |
| static constexpr uint32_t | min_period_mins = 240 |
| static constexpr uint32_t | max_period_mins = 20160 |
| static constexpr uint32_t | task_wdg_interval = 30000 |
IO and GS watchdog.
This class implements an IO and GS watchdog with configurable via TC expiration period.
To disable the io_wdg set the CONFIG_IO_WDG_PERIOD_MINS KConfig option to 0.
Definition at line 41 of file io_wdg.hpp.
|
delete |
|
inlinestatic |
|
delete |
| uint32_t satnogs::comms::io_wdg::period_mins | ( | ) |
Gets the currently configured period in minutes.
Definition at line 74 of file io_wdg.cpp.
| void satnogs::comms::io_wdg::reset | ( | ) |
Resets the watchdog timer.
This should be called whenever a new frame is received from the radio interfaces or any other IO activity (e.g CAN, UART, etc)
Definition at line 160 of file io_wdg.cpp.
| void satnogs::comms::io_wdg::set_period | ( | uint32_t | period_mins | ) |
Updates the watchdog period in both the currently running instance and at the persistent storage.
| period_mins | the period in minutes |
Definition at line 135 of file io_wdg.cpp.
| void satnogs::comms::io_wdg::start | ( | ) |
Starts the io_wdg. This method should be called after the board initialization process (satnogs::comms::lib::board::init()).
Definition at line 54 of file io_wdg.cpp.
|
staticconstexpr |
The maximum allowed period in minutes
Definition at line 52 of file io_wdg.hpp.
|
staticconstexpr |
The minimum allowed period in minutes
Definition at line 47 of file io_wdg.hpp.
|
staticconstexpr |
Definition at line 54 of file io_wdg.hpp.