pub fn access_port_is_valid<AP>(
debug_port: &mut AP,
access_port: &FullyQualifiedApAddress,
) -> Option<IDR>where
AP: DapAccess,
Expand description
Determine if an AP exists with the given AP number.
The test is performed by reading the IDR register, and checking if the register is non-zero.
Can fail silently under the hood testing an ap that doesn’t exist and would require cleanup.