sunspec_models/models/
model13.rs

1use super::*;
2
3pub fn model13() -> Model {
4    let mut ret = Model {
5        start_addr: 0,
6        end_addr: 0,
7        model_number: 13,
8        qtd: 174,
9        update: false,
10        data: Vec::new(),
11    };
12    ret.data.push(DataTypes::SunspecString(Point { name: "Nam", offset: 2, length: 4, write_access: true, value: String::new() } ));
13    ret.data.push(DataTypes::SunspecU16(Point { name: "CfgSt", offset: 4+2, length: 1, write_access: false, value: 0xFFFF } ));
14    ret.data.push(DataTypes::SunspecU16(Point { name: "ChgSt", offset: 5+2, length: 1, write_access: false, value: 0xFFFF } ));
15    ret.data.push(DataTypes::SunspecU16(Point { name: "Cap", offset: 6+2, length: 1, write_access: false, value: 0xFFFF } ));
16    ret.data.push(DataTypes::SunspecU16(Point { name: "Cfg", offset: 7+2, length: 1, write_access: true, value: 0xFFFF } ));
17    ret.data.push(DataTypes::SunspecU16(Point { name: "Ctl", offset: 8+2, length: 1, write_access: true, value: 0xFFFF } ));
18    ret.data.push(DataTypes::SunspecString(Point { name: "Addr", offset: 9+2, length: 20, write_access: true, value: String::new() } ));
19    ret.data.push(DataTypes::SunspecString(Point { name: "CIDR", offset: 29+2, length: 20, write_access: true, value: String::new() } ));
20    ret.data.push(DataTypes::SunspecString(Point { name: "Gw", offset: 49+2, length: 20, write_access: true, value: String::new() } ));
21    ret.data.push(DataTypes::SunspecString(Point { name: "DNS1", offset: 69+2, length: 20, write_access: true, value: String::new() } ));
22    ret.data.push(DataTypes::SunspecString(Point { name: "DNS2", offset: 89+2, length: 20, write_access: true, value: String::new() } ));
23    ret.data.push(DataTypes::SunspecString(Point { name: "NTP1", offset: 109+2, length: 20, write_access: true, value: String::new() } ));
24    ret.data.push(DataTypes::SunspecString(Point { name: "NTP2", offset: 129+2, length: 20, write_access: true, value: String::new() } ));
25    ret.data.push(DataTypes::SunspecString(Point { name: "DomNam", offset: 149+2, length: 12, write_access: true, value: String::new() } ));
26    ret.data.push(DataTypes::SunspecString(Point { name: "HostNam", offset: 161+2, length: 12, write_access: true, value: String::new() } ));
27    ret.data.push(DataTypes::SunspecU16(Point { name: "Pad", offset: 173+2, length: 1, write_access: false, value: 0x8000 } ));
28    
29    ret
30}