pub unsafe extern "C" fn MSS_SYS_get_user_code(
p_user_code: *mut u8,
mb_offset: u16,
) -> u16Expand description
The function MSS_SYS_get_user_code() is used to execute “USERCODE” system service.
Please refer to theory of operation -> reference documents section for more information about the service.
@param p_user_code The p_user_code parameter is a pointer to a buffer in which the 32-bit data returned by system controller will be stored. @param mb_offset The mb_offset parameter specifies the offset from the start of mailbox where the data related to this service is available. All accesses to the mailbox are of word length (4 bytes). A value 10 (decimal) of this parameter would mean that the data access area for this service, in the mailbox starts from 11th word (offset 10). @return This function returns the status code returned by the system controller for this service. A ‘0’ status code means that the service was executed successfully.