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
TypeDirectionArgument NameDescription
voidN/A

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
TypeDirectionArgument NameDescription
sl_status_t *[out]error_code

The assigned sl_status_t errorcode.

char *[inout]error_message

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

uint32_t[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.