asterix_parser 0.1.1

Playground do Protocolo ASTERIX
Documentation
macro_rules! get_attributes {
    () => {
        {
            use crate::asterix::uap::common::datatypes::{AsterixAttribute, AttributeType}; 
            vec![
                AsterixAttribute::new(2, 1, 16, 14, "(COM) Communications capability of the transponder".to_string(), "com".to_string(), AttributeType::UInt8),
                AsterixAttribute::new(2, 1, 13, 11, "(STAT) Flight Status".to_string(), "stat".to_string(), AttributeType::UInt8),
                AsterixAttribute::new(2, 1, 10, 10, "(SI) SI/II Transponder Capability".to_string(), "si".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1,  8,  8, "(MSSC) Mode-S Specific Service Capability".to_string(), "mssc".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1,  7,  7, "(ARC) Altitude reporting capability".to_string(), "arc".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1,  6,  6, "(AIC) Altitude reporting capability".to_string(), "aic".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1,  5,  5, "(B1A) BDS 1,0 bit 16".to_string(), "b1a".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1,  4,  1, "(B1B) BDS 1,0 bits 37/40".to_string(), "b1b".to_string(), AttributeType::UInt8),
            ]
        }
    };
}

pub(crate) use get_attributes;