Added additional printers

+ Data types can be printed in different formats
+ The formats respect endianness
+ Fixed tests
+ clippy+fmt
This commit is contained in:
2022-04-09 13:33:55 -06:00
parent 6407335362
commit 1cf7f06230
4 changed files with 155 additions and 52 deletions
+2
View File
@@ -28,6 +28,7 @@ field_type = {type = "UInt", bit_width = 1, endianness = "BigEndian"}
[[formats.fields]]
name = "APID"
bit_flip = true
print_type = {print = "Base", base = 16}
field_type = {type = "UInt", bit_width = 11, endianness = "BigEndian"}
[[formats.fields]]
@@ -72,6 +73,7 @@ field_type = {type = "UInt", bit_width = 1, endianness = "BigEndian"}
[[formats.fields]]
name = "APID"
bit_flip = true
print_type = {print = "Base", base = 16}
field_type = {type = "UInt", bit_width = 11, endianness = "BigEndian"}
[[formats.fields]]