solis_models/models/
model1.rs1use super::*;
2
3pub fn model() -> SolModel {
4 let mut ret = SolModel {
5 start_addr: 2999,
6 end_addr: 3003,
7 reg_types: 3,
8 model_number: 1,
9 qtd: 5,
10 data: Vec::new(),
11 };
12 ret.data.push(SDataTypes::SolisU16(Point { name: "Product Model", offset: 0, length: 1, write_access: false, value: 0 } ));
13 ret.data.push(SDataTypes::SolisU16(Point { name: "DSP software version", offset: 1, length: 1, write_access: false, value: 0 } ));
14 ret.data.push(SDataTypes::SolisU16(Point { name: "LCD software version", offset: 2, length: 1, write_access: false, value: 0 } ));
15 ret.data.push(SDataTypes::SolisU16(Point { name: "AC output type", offset: 3, length: 1, write_access: false, value: 0 } ));
16 ret.data.push(SDataTypes::SolisU16(Point { name: "DC input type", offset: 4, length: 1, write_access: false, value: 0 } ));
17
18 ret
19}