1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Mode parameters, 2-3 and 2-6
//!
//! Both units implement exactly one page, Measurement Units, with exactly one
//! variable field in it. Everything else is fixed, and setting any of it to
//! something other than what is documented is answered with common error 2
/// The only page either unit implements
pub const MEASUREMENT_UNITS: u8 = 0x03;
/// The mode parameter header, 2-3-2. Byte 3 is the block descriptor length, which is 0 or 8
const HEADER: usize = 4;
/// The units of one step of window dimension
/// SET WINDOW positions are inches multiplied by this, so at the unit's maximum resolution a step is one pixel and at 1200 it is not.
/// Only those two values are accepted (2-3-4 note 5)
/// A parameter list that sets the divisor and nothing else
///
/// The block descriptor is omitted, which 2-3-2 note 4 explicitly permits, so
/// this is one of the four accepted lengths