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(1, 1, 8, 8, "(V) Code Validated".to_string(), "validated".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 2, 7, 7, "(G) Garbled Code".to_string(), "garbled".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 3, 6, 6, "(L) Smoothed Mode-1 code as provided by a local tracker".to_string(), "local_tracker".to_string(), AttributeType::Boolean),
                AsterixAttribute::new(1, 4, 5, 1, "Mode-1 code in octal".to_string(), "mode_3a_reply".to_string(), AttributeType::UInt8),
            ]
        }
    };
}

pub(crate) use get_attributes;