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
macro_rules! get_attributes {
    () => {
        {
            use crate::asterix::uap::common::datatypes::{AsterixAttribute, AttributeType}; 
            vec![
                AsterixAttribute::new(1, 1,  8,  1, "REP Repetition Factor".to_string(), "repetition".to_string(), AttributeType::UInt16),

                // Repetitive attributes
                AsterixAttribute::new(7, 2, 56,  1, "Message conveying BDS Register Data".to_string(), "bds_data".to_string(), AttributeType::UInt16),
                AsterixAttribute::new(1, 3,  8,  5, "BDS Register Address 1".to_string(), "bds1".to_string(), AttributeType::UInt16),
                AsterixAttribute::new(1, 3,  4,  1, "BDS Register Address 2".to_string(), "bds2".to_string(), AttributeType::UInt16),
            ]
        }
    };
}

pub(crate) use get_attributes;