AVR SD Safety Framework 1.0.0
Loading...
Searching...
No Matches
midware_error_manager.c File Reference

Implements APIs for the Error Manager. More...

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <define_error_flags.h>
#include <driver_cpuctrl.h>
#include <driver_errctrl.h>
#include <midware_error_manager.h>
#include <xc.h>

Functions

errFlag_t MW_GetErrorChannel (errCh_t ch)
 Reads the status of the specified error channel.
errCh_t MW_GetFirstSetErrorChannel (void)
 Returns the first set error channel in the Error Controller.
errFlag_t MW_ClearErrorChannel (errCh_t ch)
 Clears the specified error channel and confirms that the channel is cleared.
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.
errFlag_t MW_DisableForceFloat (void)
 Disables forced floating (tri-stating) of all I/O pins.
void MW_StartHeartbeat (void)
 Starts the Heartbeat output signal.
void MW_StopHeartbeat (void)
 Stops the Heartbeat output signal.
void MW_SetAlarmInterruptType (bool useNmi)
 Selects whether a normal or a Non-Maskable Interrupt (NMI) should occur when the Error Controller is in the ALARM state.
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 settings.

Detailed Description

Implements APIs for the Error Manager.