pub unsafe extern "C" fn MSS_SYS_unlock_debug_passcode(
cmd_data: *mut u8,
mb_offset: u16,
resp_offset: u16,
) -> u16Expand description
The MSS_SYS_unlock_debug_passcode() will issue the Unlock Debug Passcode Service to the system controller. This service will Attempt to match the user debug pass code using the key loaded into the mailbox. If the match is successful the software debug lock SWL_DEBUG is temporarily inactive.
Please refer to theory of operation -> reference documents section for more information about the service.
@param cmd_data The parameter cmd_data specifies the device’s debug passcode (DPK), configured by the user via bitstream. @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). @param ret_offset The ret_offset parameter specifies the offset from the start of Mailbox response where the data received from the service will be available. @return This function returns a value to indicate whether the service was executed successfully or not. A zero value indicates that the service was executed successfully.
Please refer to theory of operation -> status response and reference documents section for more information about the service.