Utility functions#

Functions#

void

Clear all Math exception and fault flags.

sl_status_t
sl_math_mvp_get_error(sl_status_t *error_code, char *error_message, uint32_t buffer_length)

Get a Math exception or fault errorcode and optional descriptive error message.

Function Documentation#

sl_math_mvp_clear_errors#

void sl_math_mvp_clear_errors (void )

Clear all Math exception and fault flags.

Parameters
N/A

Definition at line 48 of file platform/compute/math/mvp/inc/sl_math_mvp_util.h

sl_math_mvp_get_error#

sl_status_t sl_math_mvp_get_error (sl_status_t * error_code, char * error_message, uint32_t buffer_length)

Get a Math exception or fault errorcode and optional descriptive error message.

Parameters
[out]error_code

The assigned sl_status_t errorcode.

[inout]error_message

A descriptive error message string. Input a NULL pointer to skip the error message.

[in]buffer_length

The size of the error_message buffer.

Intended use of this function is to call it repeatedly to iterate over existing errors and get errorcodes and optional error message strings.

Returns

  • Return SL_STATUS_OK when an error is present, this indicates that error_code and optionally error_message output parameters are valid. Return SL_STATUS_NOT_FOUND when no error to report.


Definition at line 74 of file platform/compute/math/mvp/inc/sl_math_mvp_util.h