Issue #15: Introduce safety weigths
This commit is contained in:
		@@ -103,6 +103,18 @@ enum config_override_entry_type {
 | 
			
		||||
	SAFETY_MEMORY_CONFIG_OVERRIDE_PERSISTANCE = 2,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief Weights of error flags.
 | 
			
		||||
 */
 | 
			
		||||
enum config_override_weight {
 | 
			
		||||
	SAFETY_MEMORY_CONFIG_WEIGHT_NONE = 0, /**< @brief This flag has no global error consequence, but might be respected by certain software modules. */
 | 
			
		||||
	SAFETY_MEMORY_CONFIG_WEIGHT_PID = 1, /**< @brief This flag will force a stop of the temperature PID controller */
 | 
			
		||||
	SAFETY_MEMORY_CONFIG_WEIGHT_PANIC = 2, /**< @brief This flag will trigger the panic mode */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief representation of a config override memory entry
 | 
			
		||||
 */
 | 
			
		||||
struct config_override {
 | 
			
		||||
	enum config_override_entry_type type;
 | 
			
		||||
	union {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user