Mod Library
Sun Devil Rocketry's hardware agnostic utility library
Loading...
Searching...
No Matches
error_sdr.c File Reference

Contains error-related functions for SDR code. More...

#include <string.h>
#include <stdbool.h>
#include "main.h"
#include "math_sdr.h"
#include "error_sdr.h"

Functions

void error_fail_fast (volatile ERROR_CODE error_code)
 Dispatches an error to its registered callback or default handler.

Variables

TEXT_MESSAGE last_warning
bool is_pending_warning = false
TEXT_MESSAGE last_info
bool is_pending_info = false
volatile ERROR_CALLBACK default_error_handler = { 0, dflt_error_handler }

Detailed Description

Contains error-related functions for SDR code.

Copyright (c) 2026 Sun Devil Rocketry. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is covered under the
BSD-3-Clause.

https://opensource.org/license/bsd-3-clause

Function Documentation

◆ error_fail_fast()

void error_fail_fast ( volatile ERROR_CODE error_code)

Dispatches an error to its registered callback or default handler.

Handles an error using the configured error callback.

Parameters
error_codeError code to handle.

Dispatches an error to its registered callback or default handler.

Parameters
error_codeError code to handle.