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, "(CNF) Confirmed vs. Tentative Track".to_string(), "cnf".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 7, 6, "(RAD) Type of Sensor(s) maintaining Track".to_string(), "rad".to_string(), AttributeType::UInt8),
                AsterixAttribute::new(1, 1, 5, 5, "(DOU) Signals level of confidence in plot to track association process".to_string(), "dou".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 4, 4, "(MAH) Manoeuvre detection in Horizontal Sense".to_string(), "mah".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 1, 3, 2, "(CDM) Climbing / Descending Mode".to_string(), "cdm".to_string(), AttributeType::UInt8),

                // Attributes from possible 1st Extension Field 
                AsterixAttribute::new(1, 2, 8, 8, "(TRE) Signal for End_of_Track".to_string(), "tre".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 2, 7, 7, "(GHO) Ghost vs. true target".to_string(), "gho".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 2, 6, 6, "(SUP) Track maintained with track information from neighbouring Node B on the cluster, or network".to_string(), "sup".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 2, 5, 5, "(TCC) Type of plot coordinate transformation mechanism".to_string(), "tcc".to_string(), AttributeType::Boolean),
            ]
        }
    };
}

pub(crate) use get_attributes;