asterix_parser 0.1.1

Playground do Protocolo ASTERIX
Documentation
macro_rules! get_attributes {
    () => {
        {
            use crate::asterix::uap::common::datatypes::{AsterixAttribute, AttributeType}; 
            vec![
                // Attributes from 1st field 
                AsterixAttribute::new(1, 1, 8, 8, "(SRL) SSR plot runlength presence".to_string(), "srl_presence".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 7, 7, "(SRR) Number of received replies for M(SSR) presence".to_string(), "srr_presence".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 6, 6, "(SAM) Amplitude of received replies for M(SSR) presence".to_string(), "sam_presence".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 5, 5, "(PRL) PSR plot runlength presence".to_string(), "psr_presence".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 4, 4, "(PAM) PSR amplitude presence".to_string(), "pam_presence".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 3, 3, "(RPD) Difference in Range between PSR and SSR plot presence".to_string(), "rdp_presence".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 2, 2, "(APD) Difference in Azimuth between PSR and SSR plot presence".to_string(), "apd_presence".to_string(), AttributeType::Boolean),

                // Subfield # 1: SSR Plot Runlength
                AsterixAttribute::new(1, 2, 8, 1, "SSR plot runlength".to_string(), "tst".to_string(), AttributeType::Boolean),

                // Subfield # 2: Number of Received Replies for (M)SSR
                AsterixAttribute::new(1, 3, 8, 1, "Number of Received Replies for (M)SSR".to_string(), "srr".to_string(), AttributeType::Boolean),

                // Subfield # 3: Amplitude of (M)SSR Reply
                AsterixAttribute::new(1, 4, 8, 1, "Amplitude of (M)SSR Reply".to_string(), "sam".to_string(), AttributeType::Boolean),
                
                // Subfield # 4: Primary Plot Runlength
                AsterixAttribute::new(1, 5, 8, 1, "Primary Plot Runlength".to_string(), "prl".to_string(), AttributeType::Boolean),
                
                // Subfield # 5: Amplitude of Primary Plot
                AsterixAttribute::new(1, 6, 8, 1, "Amplitude of Primary Plot".to_string(), "pam".to_string(), AttributeType::Boolean),
                
                // Subfield # 6: Difference in Range between PSR and SSR plot
                AsterixAttribute::new(1, 7, 8, 1, "Difference in Range between PSR and SSR plot".to_string(), "rpd".to_string(), AttributeType::Boolean),
                
                // Subfield # 7: Difference in Azimuth between PSR and SSR plot
                AsterixAttribute::new(1, 8, 8, 1, "Difference in Azimuth between PSR and SSR plot".to_string(), "apd".to_string(), AttributeType::Boolean),
            ]
        }
    };
}

pub(crate) use get_attributes;