asterix_parser 0.1.1

Playground do Protocolo ASTERIX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
macro_rules! get_attributes {
    () => {
        {
            use crate::asterix::uap::common::datatypes::{AsterixAttribute, AttributeType}; 
            vec![
                // Attributes from 1st field 

                // Mode 3A Code 
                AsterixAttribute::new(2, 1, 16, 16, "(V) Code Validated".to_string(), "validated".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1, 15, 15, "(G) Garbled Code".to_string(), "garbled".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1, 14, 14, "(L) Mode-3/A Code Absent".to_string(), "not_extracted".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(2, 1, 12, 1,  "Mode-3/A reply in octal".to_string(), "mode_3a_reply".to_string(), AttributeType::UInt16),
            ]
        }
    };
}

pub(crate) use get_attributes;