AVR SD Safety Framework 1.0.0
Loading...
Searching...
No Matches
Shared Diagnostic Middleware

Contains private function prototypes for diagnostics in midware_clock_manager_diag.c,. More...

Files

file  midware_shared_diag_private.c
 Implements private function APIs for midware_clock_manager_diag.c, midware_error_manager_diag.c, midware_memory_manager_diag.c, midware_power_manager_diag.c and midware_watchdog_manager_diag.c.
file  midware_shared_diag_private.h
 Contains private function prototypes for diagnostics in midware_clock_manager_diag.c, midware_error_manager_diag.c, midware_memory_manager_diag.c, midware_power_manager_diag.c and midware_watchdog_manager_diag.c.

Functions

void AtomicSectionStart (void)
 Backup and disable global interrupts.
void AtomicSectionEnd (void)
 Restore global interrupts if previously enabled.
bool IsErrChConfigurable (uint32_t channelMask)
 Check Error Controller state and error channels indicated by the channel mask input.

Detailed Description

Contains private function prototypes for diagnostics in midware_clock_manager_diag.c,.

Function Documentation

◆ AtomicSectionEnd()

void AtomicSectionEnd ( void )

Restore global interrupts if previously enabled.

Intended to be a private function, only exposed for shared access and unit testing.

Note

Calling this function before calling AtomicSectionStart has no effect.

Warning

Starting an Atomic Section within an Atomic Section will lead to unintended consequences and must be avoided.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AtomicSectionStart()

void AtomicSectionStart ( void )

Backup and disable global interrupts.

Intended to be a private function, only exposed for shared access and unit testing.

Note

Calling this function again before calling AtomicSectionEnd has no effect.

Warning

If Atomic Section Start is called, AtomicSectionEnd must be called in the same function to ensure correct operation and avoid unintended consequences.

Warning

Starting an Atomic Section within an Atomic Section will lead to unintended consequences and must be avoided.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsErrChConfigurable()

bool IsErrChConfigurable ( uint32_t channelMask)

Check Error Controller state and error channels indicated by the channel mask input.

Intended to be a private function, only exposed for shared access and unit testing.

Parameters
channelMaskBitmask comprised of error channels that needs to be checked.
Return values
trueError Controller is in NORMAL state and none of the provided error channels are set.
falseError Controller is not in NORMAL state or one or more of the provided error channels are set.
Here is the call graph for this function:
Here is the caller graph for this function: