|
K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
|
Data Structures | |
| struct | kfsw_gndwdt_status |
Macros | |
| #define | KFSW_GNDWDT_PARAM_TABLE_ID 35U |
| #define | KFSW_GNDWDT_PARAM_TABLE_NAME "gndwdt" |
| #define | KFSW_COMMAND_ID_GROUND_WTD 16U |
Enumerations | |
| enum | kfsw_gndwdt_event { KFSW_EVENT_GNDWDT_EXPIRED = 1 } |
Functions | |
| int | kfsw_gndwdt_start (void) |
| int | kfsw_gndwdt_stop (void) |
| int | kfsw_gndwdt_evaluate (void) |
| void | kfsw_gndwdt_get_status (struct kfsw_gndwdt_status *status) |
| int | kfsw_gndwdt_set_timeout_s (uint32_t timeout_s) |
| void | kfsw_gndwdt_set_enabled (bool enabled) |
Variables | |
| const struct kfsw_command_definition_set | kfsw_gndwdt_command_definitions |
| const struct kfsw_param_definition_set | kfsw_gndwdt_param_definitions |
Resets the node if no valid ground_wtd CSP feed arrives before the timeout.
The feed must contain KFSWWSFK; any subsystem may send it. The get command reads the countdown without feeding.
This timer is independent of K-FSW health monitoring component deadlines.
| #define KFSW_COMMAND_ID_GROUND_WTD 16U |
#include <gndwdt.h>
Stable wire ID for ground_wtd, with one text argument: KFSWWSFK or get.
| #define KFSW_GNDWDT_PARAM_TABLE_ID 35U |
#include <gndwdt.h>
Table 35: ground watchdog configuration and counters.
| #define KFSW_GNDWDT_PARAM_TABLE_NAME "gndwdt" |
#include <gndwdt.h>
Parameter table name.
| enum kfsw_gndwdt_event |
| int kfsw_gndwdt_evaluate | ( | void | ) |
#include <gndwdt.h>
Check the timer once.
| 0 | The feed is recent enough, or the watchdog is stopped or disabled. |
| -ETIMEDOUT | The timeout has passed. The caller resets the node. |
| void kfsw_gndwdt_get_status | ( | struct kfsw_gndwdt_status * | status | ) |
#include <gndwdt.h>
Copy the current status.
| void kfsw_gndwdt_set_enabled | ( | bool | enabled | ) |
#include <gndwdt.h>
Turn the timer on or off.
Changing this does not restart the countdown.
| int kfsw_gndwdt_set_timeout_s | ( | uint32_t | timeout_s | ) |
#include <gndwdt.h>
Set the feed timeout.
Changing the timeout does not feed or restart the countdown.
| 0 | Applied. |
| -ERANGE | Outside the configured bounds. |
| int kfsw_gndwdt_start | ( | void | ) |
#include <gndwdt.h>
Start the timer.
The countdown begins now, not at boot.
| int kfsw_gndwdt_stop | ( | void | ) |
#include <gndwdt.h>
Stop the timer, and cancel a reset already queued.
|
extern |
#include <gndwdt.h>
Register this set on both the flight node and its command clients.
|
extern |
#include <gndwdt.h>
Parameter table 35.