MCU
Loading...
Searching...
No Matches
SafetySystem.h
Go to the documentation of this file.
1#ifndef __SAFETY_SYSTEM_H__
2#define __SAFETY_SYSTEM_H__
3
4#include "AMSInterface.h"
5#include "WatchdogInterface.h"
6#include "SysClock.h"
7
9{
10public:
12 ams_(ams),
13 wd_(wd){};
14
15
16 /* Initialization */
17 void init();
18
19 /* Monitor software state every cycle */
20 void software_shutdown(const SysTick_s &tick);
21
22 /* Exchange businsess logic values */
23 bool get_software_is_ok();
24
25
26private:
27 /* Associated interfaces */
30
31 /* Software ok status */
33};
34
35#endif /* __SAFETY_SYSTEM_H__ */
this class is for interfacing with the AMS (accumulator management system)
Definition: AMSInterface.h:27
WatchdogInterface * wd_
Definition: SafetySystem.h:29
void software_shutdown(const SysTick_s &tick)
SafetySystem(AMSInterface *ams, WatchdogInterface *wd)
Definition: SafetySystem.h:11
AMSInterface * ams_
Definition: SafetySystem.h:28
bool get_software_is_ok()
bool software_is_ok
Definition: SafetySystem.h:32