dmlfw (Daniyal Machine Learning Framework)
|
Centralized error handling interface for the framework. More...
Go to the source code of this file.
Functions | |
uint8_t | dmlfw_error (void) |
Checks if the last framework call resulted in an error. | |
void | dmlfw_get_debug_string (char *debug_string, uint32_t size) |
Copies detailed debug information about the last error into the provided character buffer. | |
uint32_t | dmlfw_get_debug_string_length (void) |
Gets the length of the last debug string. | |
uint32_t | dmlfw_get_error_code (void) |
Retrieves the error code of the last error. | |
void | dmlfw_get_error_string (char *error_string, uint32_t size) |
Copies the last error message into the provided character buffer. | |
uint32_t | dmlfw_get_error_string_length (void) |
Gets the length of the last error message string. | |
Centralized error handling interface for the framework.
This module provides functions to check and retrieve error statuses, error codes, human-readable messages, and debugging information generated by framework APIs.
All framework functions that can fail internally set an error status. Users should check for errors immediately after calls using dmlfw_error()
.
If an error occurs, retrieve:
dmlfw_get_error_code()
.dmlfw_get_error_string()
.dmlfw_get_debug_string()
. uint8_t dmlfw_error | ( | void | ) |
Checks if the last framework call resulted in an error.
void dmlfw_get_debug_string | ( | char * | debug_string, |
uint32_t | size | ||
) |
Copies detailed debug information about the last error into the provided character buffer.
debug_string | Buffer to hold the debug information (should be at least 512 bytes). |
size | Size of the buffer in bytes. |
uint32_t dmlfw_get_debug_string_length | ( | void | ) |
Gets the length of the last debug string.
uint32_t dmlfw_get_error_code | ( | void | ) |
Retrieves the error code of the last error.
void dmlfw_get_error_string | ( | char * | error_string, |
uint32_t | size | ||
) |
Copies the last error message into the provided character buffer.
error_string | Buffer to hold the error message (should be at least 512 bytes). |
size | Size of the buffer in bytes. |
uint32_t dmlfw_get_error_string_length | ( | void | ) |
Gets the length of the last error message string.