use crate::messages::rda_status_data::alarm::{AlarmType, Device, Message, State};

/// Retrieves the RDA alarm message definition for the given code.
pub fn get_alarm_message(code: u16) -> Option<Message> {
    match code {
        0 => Some(Message::new(0, None, None, None, None, "NO ALARMS")),
        1 => Some(Message::new(1, None, None, None, None, "RESERVED")),
        2 => Some(Message::new(2, None, None, None, None, "RESERVED")),
        3..=13 => Some(Message::new(code, None, None, None, None, "SPARE")),
        14 => Some(Message::new(
            14,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "ALTERNATE ROUTE TO RPG IN USE",
        )),
        15 => Some(Message::new(
            15,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "ALTERNATE ROUTE TO RPG IS DOWN",
        )),
        16 => Some(Message::new(
            16,
            Some(State::Secondary),
            Some(AlarmType::FilteredOccurrence),
            Some(Device::Communications),
            None,
            "SEND WIDEBAND STATUS TIMED OUT",
        )),
        17 => Some(Message::new(
            17,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "NTP FAILURE",
        )),
        18 => Some(Message::new(18, None, None, None, None, "SPARE")),
        19 => Some(Message::new(19, None, None, None, None, "SPARE")),
        20 => Some(Message::new(
            20,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "RPG LINK - RED ALARM (NO RX)",
        )),
        21 => Some(Message::new(21, None, None, None, None, "SPARE")),
        22 => Some(Message::new(22, None, None, None, None, "SPARE")),
        23 => Some(Message::new(23, None, None, None, None, "SPARE")),
        24 => Some(Message::new(
            24,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(2),
            "SNMP TIME OUT: LAN SWITCH",
        )),
        25 => Some(Message::new(
            25,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(2),
            "SNMP TIME OUT: ROUTER",
        )),
        26 => Some(Message::new(26, None, None, None, None, "SPARE")),
        27 => Some(Message::new(
            27,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(2),
            "SNMP TIME OUT: POWER ADMINISTRATOR",
        )),
        28 => Some(Message::new(28, None, None, None, None, "SPARE")),
        29 => Some(Message::new(29, None, None, None, None, "SPARE")),
        30 => Some(Message::new(
            30,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(2),
            "SNMP TIME OUT: CONSOLE SERVER",
        )),
        31 => Some(Message::new(
            31,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "LAN SWITCH PORT 1 FAIL",
        )),
        32 => Some(Message::new(32, None, None, None, None, "SPARE")),
        33 => Some(Message::new(
            33,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "LAN SWITCH PORT 3 FAIL",
        )),
        34 => Some(Message::new(34, None, None, None, None, "SPARE")),
        35 => Some(Message::new(35, None, None, None, None, "SPARE")),
        36 => Some(Message::new(
            36,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "LAN SWITCH PORT 7 FAIL",
        )),
        37 => Some(Message::new(
            37,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "LAN SWITCH PORT 12 FAIL",
        )),
        38..=39 => Some(Message::new(code, None, None, None, None, "SPARE")),
        40 => Some(Message::new(
            40,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "FILAMENT POWER SUPPLY OFF",
        )),
        41..=42 => Some(Message::new(code, None, None, None, None, "SPARE")),
        43 => Some(Message::new(
            43,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(3),
            "WAVEGUIDE SWITCH FAILURE",
        )),
        44 => Some(Message::new(
            44,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "WAVEGUIDE/PFN TRANSFER INTERLOCK",
        )),
        45 => Some(Message::new(
            45,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR IN MAINTENANCE MODE",
        )),
        46 => Some(Message::new(
            46,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR UNAVAILABLE",
        )),
        47 => Some(Message::new(
            47,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(3),
            "PFN/PW SWITCH FAILURE",
        )),
        48 => Some(Message::new(
            48,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR +5VDC POWER SUPPLY 6 FAIL",
        )),
        49 => Some(Message::new(
            49,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR +15VDC POWER SUPPLY 4 FAIL",
        )),
        50 => Some(Message::new(
            50,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR +28VDC POWER SUPPLY 3 FAIL",
        )),
        51 => Some(Message::new(
            51,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR -15VDC POWER SUPPLY 5 FAIL",
        )),
        52 => Some(Message::new(
            52,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR +45VDC POWER SUPPLY 7 FAIL",
        )),
        53 => Some(Message::new(
            53,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "FILAMENT POWER SUPPLY VOLTAGE FAIL",
        )),
        54 => Some(Message::new(
            54,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "VACUUM PUMP POWER SUPPLY VOLTAGE FAIL",
        )),
        55 => Some(Message::new(
            55,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "FOCUS COIL POWER SUPPLY VOLTAGE FAIL",
        )),
        56 => Some(Message::new(
            56,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "CIRCULATOR OVERTEMP",
        )),
        57 => Some(Message::new(
            57,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "SPECTRUM FILTER LOW PRESSURE",
        )),
        58 => Some(Message::new(
            58,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "WAVEGUIDE ARC/VSWR",
        )),
        59 => Some(Message::new(
            59,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR CABINET INTERLOCK OPEN",
        )),
        60 => Some(Message::new(
            60,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR CABINET OVER TEMP",
        )),
        61 => Some(Message::new(
            61,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR CABINET AIR FLOW FAIL",
        )),
        62 => Some(Message::new(
            62,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR MAINTENANCE REQUIRED",
        )),
        63 => Some(Message::new(63, None, None, None, None, "SPARE")),
        64 => Some(Message::new(
            64,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "MODULATOR OVERLOAD",
        )),
        65 => Some(Message::new(
            65,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "MODULATOR INVERSE CURRENT FAIL",
        )),
        66 => Some(Message::new(
            66,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "MODULATOR SWITCH FAILURE",
        )),
        67 => Some(Message::new(
            67,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR MAIN POWER OVER VOLTAGE",
        )),
        68 => Some(Message::new(
            68,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "CHARGING SYSTEM FAILURE",
        )),
        69 => Some(Message::new(
            69,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "CHARGING SYSTEM INVERSE CURRENT FAILURE",
        )),
        70 => Some(Message::new(
            70,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "TRIGGER AMPLIFIER FAILURE",
        )),
        71 => Some(Message::new(71, None, None, None, None, "SPARE")),
        72 => Some(Message::new(
            72,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR OVER VOLTAGE",
        )),
        73 => Some(Message::new(
            73,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR OVER CURRENT",
        )),
        74 => Some(Message::new(
            74,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "FOCUS COIL CURRENT FAILURE",
        )),
        75 => Some(Message::new(
            75,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "FOCUS COIL AIRFLOW FAILURE",
        )),
        76 => Some(Message::new(
            76,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR OIL OVER TEMP",
        )),
        77 => Some(Message::new(
            77,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "PRF LIMIT",
        )),
        78 => Some(Message::new(
            78,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR OIL LEVEL LOW",
        )),
        79 => Some(Message::new(79, None, None, None, None, "SPARE")),
        80 => Some(Message::new(
            80,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "KLYSTRON OVER CURRENT",
        )),
        81 => Some(Message::new(
            81,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "KLYSTRON FILAMENT CURRENT FAIL",
        )),
        82 => Some(Message::new(
            82,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "KLYSTRON VACION CURRENT FAIL",
        )),
        83 => Some(Message::new(
            83,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "KLYSTRON AIR OVER TEMP",
        )),
        84 => Some(Message::new(
            84,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "KLYSTRON AIR FLOW FAILURE",
        )),
        85 => Some(Message::new(
            85,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR PEAK POWER LOW",
        )),
        86 => Some(Message::new(
            86,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR PEAK POWER HIGH",
        )),
        87 => Some(Message::new(
            87,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR POWER METER ZERO OUT OF LIMIT",
        )),
        88 => Some(Message::new(
            88,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR POWER BITE FAIL",
        )),
        89..=92 => Some(Message::new(code, None, None, None, None, "SPARE")),
        93 => Some(Message::new(
            93,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR MODULATOR SWITCH REQUIRES MAINT",
        )),
        94 => Some(Message::new(
            94,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR POST CHARGE REG REQUIRES MAINT",
        )),
        95 => Some(Message::new(
            95,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "WAVEGUIDE HUMIDITY/PRESSURE FAULT",
        )),
        96 => Some(Message::new(
            96,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(3),
            "XMTR HV SWITCH FAILURE",
        )),
        97 => Some(Message::new(
            97,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR RECYCLING",
        )),
        98 => Some(Message::new(
            98,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "XMTR INOPERATIVE",
        )),
        99 => Some(Message::new(
            99,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "XMTR/SPIP INTERFACE FAILURE",
        )),
        100..=117 => Some(Message::new(code, None, None, None, None, "SPARE")),
        118 => Some(Message::new(
            118,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(1),
            "POWER ADMINISTRATOR OVERLOAD",
        )),
        119 => Some(Message::new(119, None, None, None, None, "SPARE")),
        120 => Some(Message::new(
            120,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AC UNIT#1 COMPRESSOR SHUTOFF",
        )),
        121 => Some(Message::new(
            121,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AC UNIT#2 COMPRESSOR SHUTOFF",
        )),
        122 => Some(Message::new(
            122,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "GENERATOR MAINTENANCE REQUIRED",
        )),
        123 => Some(Message::new(123, None, None, None, None, "SPARE")),
        124 => Some(Message::new(
            124,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "GEN STARTING BATTERY VOLTAGE LOW",
        )),
        125 => Some(Message::new(
            125,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "GENERATOR ENGINE MALFUNCTION",
        )),
        126 => Some(Message::new(
            126,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "TPS IS OFF-LINE",
        )),
        127 => Some(Message::new(127, None, None, None, None, "SPARE")),
        128 => Some(Message::new(
            128,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "GENERATOR AUTO/RUN/OFF SWITCH NOT AUTO",
        )),
        129 => Some(Message::new(
            129,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(1),
            "GENERATOR EXERCISE FAILURE",
        )),
        130 => Some(Message::new(
            130,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AIRCRAFT HAZARD LIGHTING FAILURE",
        )),
        131 => Some(Message::new(
            131,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "EQUIP SHELTER FIRE DETECTION SYSTEM FAULT",
        )),
        132 => Some(Message::new(132, None, None, None, None, "SPARE")),
        133 => Some(Message::new(
            133,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "FIRE/SMOKE IN EQUIP SHELTER",
        )),
        134..=135 => Some(Message::new(code, None, None, None, None, "SPARE")),
        136 => Some(Message::new(
            136,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "FIRE/SMOKE IN GENERATOR SHELTER",
        )),
        137 => Some(Message::new(
            137,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(1),
            "POWER SYSTEM MISMATCH",
        )),
        138..=143 => Some(Message::new(code, None, None, None, None, "SPARE")),
        144 => Some(Message::new(
            144,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "UNAUTHORIZED SITE ENTRY",
        )),
        145 => Some(Message::new(
            145,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "SECURITY SYSTEM EQUIPMENT FAILURE",
        )),
        146 => Some(Message::new(
            146,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "SECURITY SYSTEM DISABLED",
        )),
        147..=150 => Some(Message::new(code, None, None, None, None, "SPARE")),
        151 => Some(Message::new(
            151,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(1),
            "RADOME ACCESS HATCH OPEN",
        )),
        152 => Some(Message::new(
            152,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AC UNIT#1 FILTER DIRTY",
        )),
        153 => Some(Message::new(
            153,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AC UNIT#2 FILTER DIRTY",
        )),
        154 => Some(Message::new(
            154,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "XMTR FILTER DIRTY",
        )),
        155 => Some(Message::new(
            155,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "PMDC BOUNCING - RSP REBOOT INITIATED",
        )),
        156 => Some(Message::new(
            156,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RPGC BOUNCING - RSP REBOOT INITIATED",
        )),
        157 => Some(Message::new(
            157,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "VCPC BOUNCING - RSP REBOOT INITIATED",
        )),
        158 => Some(Message::new(
            158,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "AMEC BOUNCING - RSP REBOOT INITIATED",
        )),
        159 => Some(Message::new(
            159,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "AMEC BOUNCING - RSP REBOOT INITIATED",
        )),
        160..=169 => Some(Message::new(code, None, None, None, None, "SPARE")),
        170 => Some(Message::new(
            170,
            Some(State::Secondary),
            Some(AlarmType::FilteredOccurrence),
            Some(Device::TowerUtilities),
            Some(1),
            "EQUIPMENT SHELTER TEMP LOW",
        )),
        171 => Some(Message::new(
            171,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "EQUIPMENT SHELTER TEMP EXTREME",
        )),
        172 => Some(Message::new(
            172,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AC UNIT#1 DISCHARGE TEMP EXTREME",
        )),
        173 => Some(Message::new(
            173,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "XMTR EXHAUST AIR TEMP EXTREME",
        )),
        174 => Some(Message::new(
            174,
            Some(State::Secondary),
            Some(AlarmType::FilteredOccurrence),
            Some(Device::TowerUtilities),
            Some(1),
            "RADOME AIR TEMP EXTREME",
        )),
        175 => Some(Message::new(
            175,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "GENERATOR SHELTER TEMP EXTREME",
        )),
        176 => Some(Message::new(
            176,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "GENERATOR FUEL STORAGE TANK LEVEL LOW",
        )),
        177 => Some(Message::new(
            177,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(1),
            "COMMANDED POWER SWITCH FAILED",
        )),
        178 => Some(Message::new(
            178,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::TowerUtilities),
            None,
            "RECOMMEND SWITCH TO UTILITY POWER",
        )),
        179..=180 => Some(Message::new(code, None, None, None, None, "SPARE")),
        181 => Some(Message::new(
            181,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "PMDC FAILED - PMDC RESTART INITIATED",
        )),
        182 => Some(Message::new(
            182,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RDAC FAILED - RSP REBOOT INITIATED",
        )),
        183 => Some(Message::new(
            183,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "WDOG FAILED - RSP REBOOT INITIATED",
        )),
        184 => Some(Message::new(
            184,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::TowerUtilities),
            Some(2),
            "AC UNIT#2 DISCHARGE TEMP EXTREME",
        )),
        185..=187 => Some(Message::new(code, None, None, None, None, "SPARE")),
        188 => Some(Message::new(
            188,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "NMSC FAILED - NMSC RESTART INITIATED",
        )),
        189 => Some(Message::new(
            189,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RPGC FAILED - RPGC RESTART INITIATED",
        )),
        190 => Some(Message::new(
            190,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "HCIS FAILED - HCIS RESTART INITIATED",
        )),
        191 => Some(Message::new(
            191,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RMSS FAILED - RMSS RESTART INITIATED",
        )),
        192 => Some(Message::new(192, None, None, None, None, "SPARE")),
        193 => Some(Message::new(
            193,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "NMPC FAILED - NMPC RESTART INITIATED",
        )),
        194 => Some(Message::new(
            194,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "VCPC FAILED - VCPC RESTART INITIATED",
        )),
        195 => Some(Message::new(
            195,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "DSPC FAILED - DSPC RESTART INITIATED",
        )),
        196 => Some(Message::new(
            196,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CHNS FAILED - CHNS RESTART INITIATED",
        )),
        197 => Some(Message::new(
            197,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RSTS FAILED - RSTS RESTART INITIATED",
        )),
        198..=201 => Some(Message::new(code, None, None, None, None, "SPARE")),
        202 => Some(Message::new(
            202,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "AMEC FAILED - AMEC RESTART INITIATED",
        )),
        203 => Some(Message::new(203, None, None, None, None, "SPARE")),
        204 => Some(Message::new(
            204,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "AME COMMUNICATIONS ERROR",
        )),
        205 => Some(Message::new(
            205,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "MULTIPLE AME COMM ERROR - RDA FORCED TO STBY",
        )),
        206 => Some(Message::new(
            206,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(5),
            "TX DETECT ERROR AT AME",
        )),
        207 => Some(Message::new(
            207,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME INTERNAL TEMPERATURE HIGH",
        )),
        208 => Some(Message::new(
            208,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME INTERNAL TEMPERATURE LOW",
        )),
        209 => Some(Message::new(
            209,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME RECEIVER MODULE TEMPERATURE HIGH",
        )),
        210 => Some(Message::new(
            210,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME RECEIVER MODULE TEMPERATURE LOW",
        )),
        211 => Some(Message::new(
            211,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME BITE/CAL MODULE TEMPERATURE HIGH",
        )),
        212 => Some(Message::new(
            212,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME BITE/CAL MODULE TEMPERATURE LOW",
        )),
        213 => Some(Message::new(
            213,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME +3.3V PS VOLTAGE OUT OF TOLERANCE",
        )),
        214 => Some(Message::new(
            214,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME +5V PS VOLTAGE OUT OF TOLERANCE",
        )),
        215 => Some(Message::new(
            215,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME +6.5V PS VOLTAGE OUT OF TOLERANCE",
        )),
        216 => Some(Message::new(
            216,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME +15V PS VOLTAGE OUT OF TOLERANCE",
        )),
        217 => Some(Message::new(
            217,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME +48V PS VOLTAGE OUT OF TOLERANCE",
        )),
        218 => Some(Message::new(
            218,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(2),
            "RF PALLET PHASE SHIFTER MOTOR TIMEOUT",
        )),
        219 => Some(Message::new(
            219,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME STALO POWER DEGRADED",
        )),
        220 => Some(Message::new(
            220,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME STALO POWER MAINTENANCE REQUIRED",
        )),
        221 => Some(Message::new(
            221,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "HORIZONTAL TR LIMITER DEGRADED",
        )),
        222 => Some(Message::new(
            222,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "HORIZONTAL TR LIMITER FAILED",
        )),
        223 => Some(Message::new(
            223,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "VERTICAL TR LIMITER DEGRADED",
        )),
        224 => Some(Message::new(
            224,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "VERTICAL TR LIMITER FAILED",
        )),
        225 => Some(Message::new(
            225,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME POWER SUPPLY TEMPERATURE DEGRADED",
        )),
        226 => Some(Message::new(
            226,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME POWER SUPPLY TEMPERATURE MAINT REQUIRED",
        )),
        227 => Some(Message::new(
            227,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME ADC CALIBRATION FAULT",
        )),
        228..=231 => Some(Message::new(code, None, None, None, None, "SPARE")),
        232 => Some(Message::new(
            232,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL INPUT WAVEGUIDE SWITCH POSITION ERROR",
        )),
        233 => Some(Message::new(
            233,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL OUTPUT WAVEGUIDE SWITCH POSITION ERROR",
        )),
        234 => Some(Message::new(
            234,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL INPUT WAVEGUIDE SWITCH POSITION ERROR",
        )),
        235 => Some(Message::new(
            235,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL OUTPUT WAVEGUIDE SWITCH POSITION ERROR",
        )),
        236 => Some(Message::new(
            236,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME PELTIER CURRENT FAULT",
        )),
        237 => Some(Message::new(
            237,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME PELTIER INSIDE FAN CURRENT FAULT",
        )),
        238 => Some(Message::new(
            238,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "AME PELTIER OUTSIDE FAN CURRENT FAULT",
        )),
        239..=250 => Some(Message::new(code, None, None, None, None, "SPARE")),
        251 => Some(Message::new(251, None, None, None, None, "SPARE")),
        252 => Some(Message::new(
            252,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Pedestal),
            Some(1),
            "EBC MAX CORRECTION APPLIED",
        )),
        253 => Some(Message::new(
            253,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(2),
            "SPIP +28V POWER SUPPLY FAIL",
        )),
        254 => Some(Message::new(
            254,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(2),
            "SPIP +15V POWER SUPPLY FAIL",
        )),
        255 => Some(Message::new(
            255,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(2),
            "SPIP +5V POWER SUPPLY FAIL",
        )),
        256 => Some(Message::new(
            256,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(2),
            "SPIP -15V POWER SUPPLY FAIL",
        )),
        257 => Some(Message::new(
            257,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "SPIP DAQ POWER BUTTON OFF",
        )),
        258 => Some(Message::new(
            258,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "SPIP PED POWER BUTTON OFF",
        )),
        259 => Some(Message::new(
            259,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "SPIP CH2 DAQ POWER BUTTON OFF",
        )),
        260 => Some(Message::new(
            260,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "SPIP CH2 PED POWER BUTTON OFF",
        )),
        261 => Some(Message::new(
            261,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION IN -DEAD LIMIT",
        )),
        262 => Some(Message::new(
            262,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION IN +DEAD LIMIT",
        )),
        263..=299 => Some(Message::new(code, None, None, None, None, "SPARE")),
        300 => Some(Message::new(
            300,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION AMPLIFIER INHIBIT",
        )),
        301 => Some(Message::new(
            301,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION AMPLIFIER CURRENT LIMIT",
        )),
        302 => Some(Message::new(
            302,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION AMPLIFIER OVERTEMP",
        )),
        303 => Some(Message::new(
            303,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "PEDESTAL +150V OVER VOLTAGE",
        )),
        304 => Some(Message::new(
            304,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "PEDESTAL +150V UNDER VOLTAGE",
        )),
        305 => Some(Message::new(
            305,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION MOTOR OVERTEMP",
        )),
        306 => Some(Message::new(
            306,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION STOW PIN ENGAGED",
        )),
        307..=309 => Some(Message::new(code, None, None, None, None, "SPARE")),
        310 => Some(Message::new(
            310,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION + NORMAL LIMIT",
        )),
        311 => Some(Message::new(
            311,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION - NORMAL LIMIT",
        )),
        312 => Some(Message::new(312, None, None, None, None, "SPARE")),
        313 => Some(Message::new(
            313,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION ENCODER LIGHT FAILURE",
        )),
        314 => Some(Message::new(
            314,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION GEARBOX OIL LEVEL LOW",
        )),
        315 => Some(Message::new(
            315,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH AMPLIFIER INHIBIT",
        )),
        316 => Some(Message::new(
            316,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH AMPLIFIER CURRENT LIMIT",
        )),
        317 => Some(Message::new(
            317,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH AMPLIFIER OVERTEMP",
        )),
        318..=319 => Some(Message::new(code, None, None, None, None, "SPARE")),
        320 => Some(Message::new(
            320,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH MOTOR OVERTEMP",
        )),
        321 => Some(Message::new(
            321,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH STOW PIN ENGAGED",
        )),
        322..=323 => Some(Message::new(code, None, None, None, None, "SPARE")),
        324 => Some(Message::new(
            324,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH ENCODER LIGHT FAILURE",
        )),
        325 => Some(Message::new(
            325,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH GEARBOX OIL LEVEL LOW",
        )),
        326 => Some(Message::new(
            326,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "BULL GEAR OIL LEVEL LOW",
        )),
        327 => Some(Message::new(327, None, None, None, None, "SPARE")),
        328 => Some(Message::new(
            328,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION HANDWHEEL ENGAGED",
        )),
        329 => Some(Message::new(
            329,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH HANDWHEEL ENGAGED",
        )),
        // note: appears to be error in ICD table since 333 is repeated
        330..=332 => Some(Message::new(code, None, None, None, None, "SPARE")),
        333 => Some(Message::new(
            333,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "PEDESTAL +28V POWER SUPPLY FAIL",
        )),
        334 => Some(Message::new(
            334,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "AZIMUTH AMP POWER SUPPLY FAIL",
        )),
        335 => Some(Message::new(
            335,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(2),
            "ELEVATION AMP POWER SUPPLY FAIL",
        )),
        336 => Some(Message::new(336, None, None, None, None, "SPARE")),
        337 => Some(Message::new(
            337,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "PEDESTAL SAFE SWITCH OPEN",
        )),
        338 => Some(Message::new(338, None, None, None, None, "SPARE")),
        339 => Some(Message::new(
            339,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "PEDESTAL UNABLE TO PARK",
        )),
        340..=353 => Some(Message::new(code, None, None, None, None, "SPARE")),
        354 => Some(Message::new(
            354,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "RCP SOFT ELEVATION +LIMIT",
        )),
        355 => Some(Message::new(
            355,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "RCP SOFT ELEVATION -LIMIT",
        )),
        356 => Some(Message::new(
            356,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "RCP IN CONTROL SHUTDOWN STATE",
        )),
        357 => Some(Message::new(
            357,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "RCP AZ CONTROL UNRESPONSIVE",
        )),
        358 => Some(Message::new(
            358,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "RCP EL CONTROL UNRESPONSIVE",
        )),
        359 => Some(Message::new(359, None, None, None, None, "SPARE")),
        360 => Some(Message::new(
            360,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "RF GEN FREQ SELECT OSCILLATOR FAIL",
        )),
        361 => Some(Message::new(
            361,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "RF GEN RF/STALO FAIL",
        )),
        362 => Some(Message::new(
            362,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "RF GEN PHASE SHIFTED COHO FAIL",
        )),
        363 => Some(Message::new(
            363,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "RF IFDR COHO INPUT MISSING",
        )),
        364 => Some(Message::new(
            364,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "RCVR +5V POWER SUPPLY 5 FAIL",
        )),
        365 => Some(Message::new(
            365,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "RCVR +/-18V POWER SUPPLY 1 FAIL",
        )),
        366 => Some(Message::new(
            366,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "RCVR -9V POWER SUPPLY 4 FAIL",
        )),
        367 => Some(Message::new(
            367,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "RCVR +9V POWER SUPPLY 6 FAIL",
        )),
        368 => Some(Message::new(
            368,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "SINGLE CHANNEL RDAIU +5V POWER SUPPLY 9 FAIL",
        )),
        369 => Some(Message::new(
            369,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(2),
            "COHO/CLOCK FAILURE",
        )),
        370 => Some(Message::new(
            370,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "SIGNAL PROCESSOR TO IFDR COMMUNICATION FAILURE",
        )),
        371 => Some(Message::new(
            371,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(4),
            "MISSING BURST PULSE SIGNAL",
        )),
        372..=380 => Some(Message::new(code, None, None, None, None, "SPARE")),
        381 => Some(Message::new(
            381,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "SIGNAL PROCESSOR TRIGGER SEQUENCE TRUNCATED",
        )),
        382 => Some(Message::new(
            382,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "SIGNAL PROCESSOR TRIGGER PATTERN ALTERED",
        )),
        383 => Some(Message::new(
            383,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "SIGNAL PROCESSOR TRIGGER PERIOD ALTERED",
        )),
        384..=386 => Some(Message::new(code, None, None, None, None, "SPARE")),
        387 => Some(Message::new(
            387,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "SIGNAL PROCESSOR TRIGGER ERROR",
        )),
        388 => Some(Message::new(
            388,
            Some(State::Secondary),
            Some(AlarmType::FilteredOccurrence),
            Some(Device::SignalProcessor),
            None,
            "SIGNAL PROCESSOR SELF CHECK FAILED",
        )),
        389 => Some(Message::new(
            389,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "IFDR TEST SWITCH POSITION ERROR",
        )),
        390 => Some(Message::new(390, None, None, None, None, "SPARE")),
        391 => Some(Message::new(
            391,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Communications),
            None,
            "RPG LOOP TEST TIMED OUT",
        )),
        392 => Some(Message::new(
            392,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Communications),
            None,
            "RPG LOOP TEST VERIFICATION ERROR",
        )),
        393 => Some(Message::new(
            393,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INVALID REMOTE VCP RECEIVED",
        )),
        394 => Some(Message::new(
            394,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "REMOTE VCP NOT DOWNLOADED",
        )),
        395 => Some(Message::new(
            395,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INVALID RPG COMMAND RECEIVED",
        )),
        396 => Some(Message::new(
            396,
            Some(State::Secondary),
            Some(AlarmType::FilteredOccurrence),
            Some(Device::SignalProcessor),
            None,
            "RADIAL DATA LOST",
        )),
        397 => Some(Message::new(397, None, None, None, None, "SPARE")),
        398 => Some(Message::new(
            398,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "STANDBY FORCED BY INOP ALARM",
        )),
        399..=400 => Some(Message::new(code, None, None, None, None, "SPARE")),
        401..=420 => Some(Message::new(
            code,
            None,
            None,
            None,
            None,
            "RESERVED FOR INTERNAL RDA USE",
        )),
        421..=429 => Some(Message::new(code, None, None, None, None, "SPARE")),
        430 => Some(Message::new(
            430,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "BYPASS MAP FILE READ FAILED",
        )),
        431 => Some(Message::new(
            431,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "BYPASS MAP FILE WRITE FAILED",
        )),
        432..=433 => Some(Message::new(code, None, None, None, None, "SPARE")),
        434 => Some(Message::new(
            434,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CLUTTER MAP FILE READ FAILED",
        )),
        435 => Some(Message::new(
            435,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CLUTTER MAP FILE WRITE FAILED",
        )),
        436 => Some(Message::new(
            436,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CLUTTER CENSOR FILE READ FAILED",
        )),
        437 => Some(Message::new(
            437,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CLUTTER CENSOR FILE WRITE FAILED",
        )),
        438 => Some(Message::new(
            438,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "STATE FILE READ FAILED",
        )),
        439 => Some(Message::new(
            439,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "STATE FILE WRITE FAILED",
        )),
        440 => Some(Message::new(
            440,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CURRENT ADAPTATION FILE READ FAILED",
        )),
        441 => Some(Message::new(
            441,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CURRENT ADAPTATION FILE WRITE FAILED",
        )),
        442 => Some(Message::new(
            442,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "BASELINE FILE READ FAILED",
        )),
        443 => Some(Message::new(443, None, None, None, None, "SPARE")),
        444 => Some(Message::new(
            444,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "CLUTTER MAP FILE GENERATION ERROR",
        )),
        445 => Some(Message::new(445, None, None, None, None, "SPARE")),
        446 => Some(Message::new(
            446,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "TOO MANY LOG FILES - PLEASE REMOVE SOME",
        )),
        447 => Some(Message::new(
            447,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "DISK I/O ERROR",
        )),
        448 => Some(Message::new(
            448,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RSP SYSTEM HARD DRIVE ‘SMART’ FAILURE DETECTED",
        )),
        449 => Some(Message::new(
            449,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "REMOTE VCP FILE WRITE FAILED",
        )),
        450 => Some(Message::new(
            450,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "REMOTE VCP FILE READ FAILED",
        )),
        451 => Some(Message::new(
            451,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RSP DATA HARD DRIVE ‘SMART’ FAILURE DETECTED",
        )),
        452 => Some(Message::new(
            452,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Communications),
            Some(1),
            "RPG LINK INITIALIZATION ERROR",
        )),
        453 => Some(Message::new(
            453,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "SPIP COMM ERROR",
        )),
        454 => Some(Message::new(
            454,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "MULTIPLE SIGNAL PROCESSOR COMMAND ERROR - RDA FORCED TO STBY",
        )),
        455 => Some(Message::new(
            455,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "SIGNAL PROCESSOR COMMAND ERROR",
        )),
        456 => Some(Message::new(
            456,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::SignalProcessor),
            Some(1),
            "SIGNAL PROCESSOR LAUNCH ERROR",
        )),
        457 => Some(Message::new(
            457,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "RSP COMPONENT OVERTEMP",
        )),
        458 => Some(Message::new(458, None, None, None, None, "SPARE")),
        459 => Some(Message::new(459, None, None, None, None, "SPARE")),
        460 => Some(Message::new(
            460,
            Some(State::Secondary),
            Some(AlarmType::FilteredOccurrence),
            Some(Device::Control),
            None,
            "HCI COMMUNICATION ERROR",
        )),
        461 => Some(Message::new(461, None, None, None, None, "SPARE")),
        462..=463 => Some(Message::new(code, None, None, None, None, "SPARE")),
        464 => Some(Message::new(
            464,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "REDUNDANT CHANNEL COMM ERROR",
        )),
        465..=468 => Some(Message::new(code, None, None, None, None, "SPARE")),
        469 => Some(Message::new(
            469,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "INTERPANEL LINK FAILED",
        )),
        470 => Some(Message::new(
            470,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL NOISE LEVEL DEGRADED",
        )),
        471 => Some(Message::new(
            471,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL NOISE TEMPERATURE DEGRADED",
        )),
        472 => Some(Message::new(
            472,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL NOISE LEVEL DEGRADED",
        )),
        473 => Some(Message::new(
            473,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL NOISE TEMPERATURE DEGRADED",
        )),
        474 => Some(Message::new(
            474,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL NOISE TEMPERATURE LOW",
        )),
        475 => Some(Message::new(
            475,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL NOISE TEMPERATURE LOW",
        )),
        476 => Some(Message::new(476, None, None, None, None, "SPARE")),
        477 => Some(Message::new(
            477,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL POWER SENSE LOW",
        )),
        478 => Some(Message::new(
            478,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL POWER SENSE LOW",
        )),
        479 => Some(Message::new(
            479,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "SYSTEM DIFFERENTIAL REFLECTIVITY OFFSET DEGRADED",
        )),
        480 => Some(Message::new(
            480,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL GAIN CALIBRATION CONSTANT DEGRADED",
        )),
        481 => Some(Message::new(
            481,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL GAIN CALIBRATION CONSTANT DEGRADED",
        )),
        482 => Some(Message::new(482, None, None, None, None, "SPARE")),
        483 => Some(Message::new(
            483,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VELOCITY/WIDTH CHECK DEGRADED",
        )),
        484 => Some(Message::new(484, None, None, None, None, "SPARE")),
        485 => Some(Message::new(
            485,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL DYNAMIC RANGE DEGRADED",
        )),
        486 => Some(Message::new(
            486,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL CLUTTER REJECTION DEGRADED",
        )),
        487..=489 => Some(Message::new(code, None, None, None, None, "SPARE")),
        490 => Some(Message::new(
            490,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL DYNAMIC RANGE DEGRADED",
        )),
        491..=521 => Some(Message::new(code, None, None, None, None, "SPARE")),
        522 => Some(Message::new(
            522,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL LINEARITY SLOPE DEGRADED",
        )),
        523 => Some(Message::new(
            523,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL LINEARITY TEST SIGNAL DEGRADED",
        )),
        524 => Some(Message::new(
            524,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "HORIZONTAL LINEARITY TEST SIGNAL - MAINT REQUIRED",
        )),
        525 => Some(Message::new(
            525,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL LINEARITY TEST SIGNAL DEGRADED",
        )),
        526 => Some(Message::new(
            526,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL LINEARITY TEST SIGNAL - MAINT REQUIRED",
        )),
        527 => Some(Message::new(
            527,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "VERTICAL LINEARITY SLOPE DEGRADED",
        )),
        528..=532 => Some(Message::new(code, None, None, None, None, "SPARE")),
        533 => Some(Message::new(
            533,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Receiver),
            Some(1),
            "KLYSTRON OUT TEST SIGNAL DEGRADED",
        )),
        534..=542 => Some(Message::new(code, None, None, None, None, "SPARE")),
        543 => Some(Message::new(
            543,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "RPG COMMAND REJECTED",
        )),
        544 => Some(Message::new(
            544,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "RMS COMMAND REJECTED",
        )),
        545 => Some(Message::new(
            545,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "RDA COMMAND REJECTED",
        )),
        546..=547 => Some(Message::new(code, None, None, None, None, "SPARE")),
        548 => Some(Message::new(
            548,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "RMS CONTROL COMMAND REJECTED INVALID COMMAND",
        )),
        549 => Some(Message::new(
            549,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "RMS CONTROL COMMAND REJECTED INVALID PARAMETER",
        )),
        550..=552 => Some(Message::new(code, None, None, None, None, "SPARE")),
        553 => Some(Message::new(
            553,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "CHANNEL ALREADY CONTROLLING - CMD REJECTED",
        )),
        554 => Some(Message::new(
            554,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "CHANNEL ALREADY NON CONTROLLING - CMD REJECTED",
        )),
        555 => Some(Message::new(
            555,
            Some(State::MaintenanceRequired),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "CHANNEL CONTROL FAILURE - RDAIU SWITCH MISMATCH",
        )),
        556 => Some(Message::new(
            556,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "CHANNEL SWITCH TIMEOUT",
        )),
        557 => Some(Message::new(
            557,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "CHANNEL SWITCH FAILED",
        )),
        558..=560 => Some(Message::new(code, None, None, None, None, "SPARE")),
        561 => Some(Message::new(
            561,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INVALID CONTROL FOR CHANNEL SWITCH",
        )),
        562 => Some(Message::new(
            562,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INVALID STATUS FOR CHANNEL SWITCH",
        )),
        563 => Some(Message::new(
            563,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INVALID CHANNEL SWITCH - OTHER CHANNEL IN MAINTENANCE MODE",
        )),
        564 => Some(Message::new(
            564,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            Some(1),
            "INVALID CHANNEL SWITCH - CALIBRATION IN PROGRESS",
        )),
        565 => Some(Message::new(
            565,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "ELEVATION HOUSING PS FAIL",
        )),
        566 => Some(Message::new(
            566,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "AZIMUTH HOUSING PS PAIL",
        )),
        567..=590 => Some(Message::new(code, None, None, None, None, "SPARE")),
        591 => Some(Message::new(
            591,
            Some(State::Inoperative),
            Some(AlarmType::EdgeDetected),
            Some(Device::Control),
            Some(1),
            "MULTIPLE PROCESS FAILURE - FORCED TO STANDBY INOP",
        )),
        592 => Some(Message::new(
            592,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "SYSTEM STATUS MONITOR INITIALIZATION ERROR - REBOOT INITIATED",
        )),
        593 => Some(Message::new(
            593,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "SYSTEM STATE TRANSITION TIMEOUT",
        )),
        594..=678 => Some(Message::new(code, None, None, None, None, "SPARE")),
        679 => Some(Message::new(
            679,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INVALID CENSOR ZONE MESSAGE RECEIVED",
        )),
        680..=697 => Some(Message::new(code, None, None, None, None, "SPARE")),
        698 => Some(Message::new(
            698,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Pedestal),
            Some(1),
            "CUT TRANSITION TIMEOUT",
        )),
        699 => Some(Message::new(
            699,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "CUT TIMEOUT-RESTART VCP INITIATED",
        )),
        700 => Some(Message::new(
            700,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "INIT SEQ TIMEOUT-REBOOT INITIATED",
        )),
        701 => Some(Message::new(
            701,
            Some(State::Secondary),
            Some(AlarmType::Occurrence),
            Some(Device::Control),
            None,
            "PERF CHECK TIMEOUT-REBOOT INITIATED",
        )),
        702 => Some(Message::new(
            702,
            Some(State::MaintenanceMandatory),
            Some(AlarmType::EdgeDetected),
            Some(Device::Transmitter),
            Some(1),
            "TRANSMIT BIAS DEGRADED",
        )),
        703..=800 => Some(Message::new(code, None, None, None, None, "SPARE")),
        _ => None,
    }
}
