FuSa 8-Bit Libraries Safety Framework
Loading...
Searching...
No Matches
midware_error_manager.h
Go to the documentation of this file.
1
27
28#ifndef MIDWARE_ERROR_MANAGER_H
29#define MIDWARE_ERROR_MANAGER_H
30
31// Standard Library Includes
32#include <stdbool.h>
33#include <stdint.h>
34
35// Framework Includes
36#include <define_error_flags.h>
37
70
83
88typedef struct
89{
91 bool floatIo;
93
122
135
149
161
169void MW_EnableForceFloat(void);
170
182
193void MW_StartHeartbeat(void);
194
205void MW_StopHeartbeat(void);
206
245errFlag_t MW_ConfigErrorChannels(const errChConfigs_t* configs, uint8_t timeout);
246
247#endif // MIDWARE_ERROR_MANAGER_H
Defines error flag type for indicating detected errors in Middleware services.
errFlag_t
Defines the error flag used by Middleware services to indicate error detection.
errFlag_t MW_ClearErrorChannel(errCh_t ch)
Clears the specified error channel and confirms that the channel is cleared.
void MW_StopHeartbeat(void)
Stops the Heartbeat output signal.
errChSeverity_t
Type definitions for error channel severity level.
errFlag_t MW_ConfigErrorChannels(const errChConfigs_t *configs, uint8_t timeout)
Sets the error controller timeout duration and configures all error channels with the provided settin...
errFlag_t MW_GetErrorChannel(errCh_t ch)
Reads the status of the specified error channel.
errFlag_t MW_DisableForceFloat(void)
Disables forced floating (tri-stating) of all I/O pins.
errCh_t
Hardware error channels found in the Error Controller.
void MW_StartHeartbeat(void)
Starts the Heartbeat output signal.
errFlag_t MW_CheckIoSafe(void)
Checks if all I/O pins are floated (tri-stated).
void MW_EnableForceFloat(void)
Enables forced floating (tri-stating) of all I/O pins.
@ ERRCH_SEVERITY_RESERVED
@ ERRCH_SEVERITY_CRITICAL
@ ERRCH_SEVERITY_NONCRITICAL
@ ERRCH_SEVERITY_NOTIFICATION
@ ERRCH_SEVERITY_MAX
@ ERRCH_VREGFAIL
@ ERRCH_VREGWARN
Holds an error channel configuration for configuring the ERRCTRL.
errChSeverity_t severity
Holds configurations for all error channels.