![]() |
AVR SD Safety Framework 1.0.0
|
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. | |
Contains private function prototypes for diagnostics in midware_clock_manager_diag.c,.
| void AtomicSectionEnd | ( | void | ) |
Restore global interrupts if previously enabled.
Intended to be a private function, only exposed for shared access and unit testing.
Calling this function before calling AtomicSectionStart has no effect.
Starting an Atomic Section within an Atomic Section will lead to unintended consequences and must be avoided.
| void AtomicSectionStart | ( | void | ) |
Backup and disable global interrupts.
Intended to be a private function, only exposed for shared access and unit testing.
Calling this function again before calling AtomicSectionEnd has no effect.
If Atomic Section Start is called, AtomicSectionEnd must be called in the same function to ensure correct operation and avoid unintended consequences.
Starting an Atomic Section within an Atomic Section will lead to unintended consequences and must be avoided.
| 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.
| channelMask | Bitmask comprised of error channels that needs to be checked. |
| true | Error Controller is in NORMAL state and none of the provided error channels are set. |
| false | Error Controller is not in NORMAL state or one or more of the provided error channels are set. |