probe_rs::architecture::arm::ap

Function get_ap_by_idr

Source
pub fn get_ap_by_idr<AP, P>(
    debug_port: &mut AP,
    dp: DpAddress,
    f: P,
) -> Option<GenericAp>
where AP: ApAccess, P: Fn(IDR) -> bool,
Expand description

Tries to find the first AP with the given idr value, returns None if there isn’t any