Commit Graph
15 Commits
Author SHA1 Message Date
joeyahines 38ed49fbe3 Added deframer support 2024-08-17 15:58:25 -06:00
joeyahines 3274386ccf Added support for layered formats
+ Formats can include sub-formats of previously defined formats
+ This search is done post config building so any format in the global config can be used
+ Clippy + fmt
2022-06-19 14:08:37 -06:00
joeyahines f2cec4c89e Added file input + stdin support
+ Files/stdin input can be binary or ascii
+ Handles piping from other programs
+ Misc test fixes
+ Updated readme
+ clippy + fmt
2022-05-07 18:35:06 -06:00
joeyahines 5a98f84063 Added global config directory
+ Should be platform independent thanks to platform-dirs
+ All config files in the directory are used
+ Some optimizations could be made so now all config files are loaded.
+ clippy + fmt
2022-05-03 20:11:54 -06:00
joeyahines ace4b9aa10 Add environment fallback for config path
+ FORMATY_CONFIG is the fallback for the optional config path
+ If -c is not provided, we go to the system config
2022-04-21 19:53:02 -06:00
joeyahines 9244cebad3 Added more options for input data
+ -b flag allows you to specify the base of the input data, useful if the data does not have a prefix or is a strange base
+ -i allows you to pass in array or string data
2022-04-21 19:28:04 -06:00
joeyahines d956c111d8 Fixed CCSDS parsing
+ Using bitvec now for parsing binary data
+ Fixed issues with how some data was handled across byte boundaries
+ Updated CCSDS def
+ Added test to verify good ccsds parsing
+ clippy + fmt
2022-04-17 10:19:44 -06:00
joeyahines 70a3c260e6 Improved docs + a bunch of fixes
+ Better error handling
  + Line numbers in toml errors should now match the file
  + Errors during parsing show where in the bit stream they failed
+ Fixed some issues with string, float, and double parsing reporting the wrong bit width
+ Updated docs and added the example.toml config
+ clipppy + fmt
2022-04-10 10:42:05 -06:00
joeyahines 6407335362 Fmt + Clippy 2022-04-09 12:40:37 -06:00
joeyahines 59351fb699 Added default formatters + error handling 2022-04-09 12:34:15 -06:00
joeyahines 2697b4b848 Added README.md LICENSE.md
+ Also made --help more useful
2021-10-09 14:09:21 -06:00
joeyahines ef8918d517 fmt + clippy 2021-10-09 14:00:49 -06:00
joeyahines 6daf3a55f2 Added examples and better error reporting
+ The field that errors is now reported
+ The formats/ dir contains all predefined formats
  + Includes CCSDS packet for now
+ There appears to be an issue with bit formatting, the APID field is not being parsed correctly (upper 8 bits is not being factored in
2021-10-09 10:57:34 -06:00
joeyahines 652682cb19 Added floating point formatting
+ Supports single and double precession formatting
+ Added Error handling from the formatting functions
2021-10-09 09:30:02 -06:00
joeyahines b85ba31f91 Initial Commit
+ Basic implementation working with just unsigned ints
+ Can fetch data from arbitrary bit positions in a byte string
+ TOML config implementation for describing data
+ Simple CLI
2021-09-11 12:21:34 -06:00