feat: initial port for Rectangular Micro QR

This is the intial port for rMQR support. Directly ported from 7a294f2f3c (diff-5d6a0ddd024f3102876492f502a41becde594de81f46d942b87b64cbfdc1985b)

subsequent improvements will be incorporated in future patches.
This commit is contained in:
Henry Schimke
2024-01-13 13:48:13 -06:00
parent 415001f622
commit 86689a87d9
29 changed files with 2876 additions and 1093 deletions

View File

@@ -75,9 +75,10 @@ pub struct FormatInformation {
pub microVersion: u32,
pub isMirrored: bool,
pub mask: u32, // = 0
pub data: u32, // = 255
pub bitsIndex: u8, // = 255;
pub mask: u32, // = 0
pub data: u32, // = 255
pub bitsIndex: u8, // = 255;
pub rMQRVersion: u8, //= 0;
}
impl Default for FormatInformation {
@@ -91,6 +92,7 @@ impl Default for FormatInformation {
mask: 0,
data: 255,
bitsIndex: 255,
rMQRVersion: 0,
}
}
}
@@ -110,6 +112,7 @@ impl FormatInformation {
mask: 0,
bitsIndex: 255,
data: 255,
rMQRVersion: 0,
})
}