pub unsafe extern "C" fn ocsd_get_last_err(
index: *mut ocsd_trc_index_t,
chan_id: *mut u8,
message: *mut c_char,
message_len: c_int,
) -> ocsd_err_tExpand description
returns the last error logged by the system, with the related trace byte index, trace channel id, and any error message related string. If index or channel ID are not valid these will return OCSD_BAD_TRC_INDEX and OCSD_BAD_CS_SRC_ID.
return value is the error code of the last logged error, OCSD_OK for no error available.
@param index : returns trace byte index relating to error, or OCSD_BAD_TRC_INDEX @param chan_id : returns trace channel ID relating to error, or OCSD_BAD_CS_SRC_ID @param message : buffer to copy the last error message. @param message_len: length of message buffer.