pub fn trigger_volatile_raw_unlock<'t>(
    transport: &'t TransportWrapper,
    jtag: Box<dyn Jtag + 't>,
    target_lc_state: DifLcCtrlState,
    hashed_token: Option<[u32; 4]>,
    use_external_clk: bool,
    post_transition_tap: JtagTap,
    jtag_params: &JtagParams,
    expect_raw_unlock_supported: bool
) -> Result<Box<dyn Jtag + 't>>
Expand description

Perform a volatile raw unlock transition through the LC JTAG interface.

Requires the jtag to be already connected to the LC TAP. Requires the pre-hashed token be provided (a pre-requisite of the volatile operation. The device will NOT be reset into the new lifecycle state as TAP straps are sampled again on a successfull transition. However, the TAP can be switched from LC to RISCV on a successfull transition.

If the feature is not present in HW we expect the transition to fail with a token error since the token is invalid for a real RAW unlock transition. Use the expect_raw_unlock_supported argument to indicate whether we expect this transition to succeed or not.