pub fn from_u32(reason: u32) -> Self {
        match reason {
            0x20000 => Self::ADPStoppedBranchThroughZero,
            0x20001 => Self::ADPStoppedUndefinedInstr,
            0x20002 => Self::ADPStoppedSoftwareInterrupt,
            0x20003 => Self::ADPStoppedPrefetchAbort,
            0x20004 => Self::ADPStoppedDataAbort,
            0x20005 => Self::ADPStoppedAddressException,
            0x20006 => Self::ADPStoppedIRQ,
            0x20007 => Self::ADPStoppedFIQ,
            0x20020 => Self::ADPStoppedBreakPoint,
            0x20021 => Self::ADPStoppedWatchPoint,
            0x20022 => Self::ADPStoppedStepComplete,
            0x20023 => Self::ADPStoppedRunTimeErrorUnknown,
            0x20024 => Self::ADPStoppedInternalError,
            0x20025 => Self::ADPStoppedUserInterruption,
            0x20026 => Self::ADPStoppedApplicationExit,
            0x20027 => Self::ADPStoppedStackOverflow,
            0x20028 => Self::ADPStoppedDivisionByZero,
            0x20029 => Self::ADPStoppedOSSpecific,
            _ => Self::ADPStopped,
        }
    }
///
/// Convert reason code to reason enum value
///
Convert reason code to reason enum value
Convert reason code to reason enum value
pub fn from_u32(reason: u32) -> Self {
        match reason {
            0x20000 => Self::ADPStoppedBranchThroughZero,
            0x20001 => Self::ADPStoppedUndefinedInstr,
            0x20002 => Self::ADPStoppedSoftwareInterrupt,
            0x20003 => Self::ADPStoppedPrefetchAbort,
            0x20004 => Self::ADPStoppedDataAbort,
            0x20005 => Self::ADPStoppedAddressException,
            0x20006 => Self::ADPStoppedIRQ,
            0x20007 => Self::ADPStoppedFIQ,
            0x20020 => Self::ADPStoppedBreakPoint,
            0x20021 => Self::ADPStoppedWatchPoint,
            0x20022 => Self::ADPStoppedStepComplete,
            0x20023 => Self::ADPStoppedRunTimeErrorUnknown,
            0x20024 => Self::ADPStoppedInternalError,
            0x20025 => Self::ADPStoppedUserInterruption,
            0x20026 => Self::ADPStoppedApplicationExit,
            0x20027 => Self::ADPStoppedStackOverflow,
            0x20028 => Self::ADPStoppedDivisionByZero,
            0x20029 => Self::ADPStoppedOSSpecific,
            _ => Self::ADPStopped,
        }
    }
pub fn from_u32 ( reason : u32 ) -> Self { match reason { 0x20000 => Self :: ADPStoppedBranchThroughZero , 0x20001 => Self :: ADPStoppedUndefinedInstr , 0x20002 => Self :: ADPStoppedSoftwareInterrupt , 0x20003 => Self :: ADPStoppedPrefetchAbort , 0x20004 => Self :: ADPStoppedDataAbort , 0x20005 => Self :: ADPStoppedAddressException , 0x20006 => Self :: ADPStoppedIRQ , 0x20007 => Self :: ADPStoppedFIQ , 0x20020 => Self :: ADPStoppedBreakPoint , 0x20021 => Self :: ADPStoppedWatchPoint , 0x20022 => Self :: ADPStoppedStepComplete , 0x20023 => Self :: ADPStoppedRunTimeErrorUnknown , 0x20024 => Self :: ADPStoppedInternalError , 0x20025 => Self :: ADPStoppedUserInterruption , 0x20026 => Self :: ADPStoppedApplicationExit , 0x20027 => Self :: ADPStoppedStackOverflow , 0x20028 => Self :: ADPStoppedDivisionByZero , 0x20029 => Self :: ADPStoppedOSSpecific , _ => Self :: ADPStopped , } }
Convert reason code to reason enum value
Convert reason code to reason enum value
reason
u32
reason
u32