|
pico-binary-info
Portable Pi Pico binary_info parser
|
Portable C library to extract data from the "binary info" fields of a Pi Pico binary.
This is intended to be used on host systems which may wish to verify/validate binary images, for example before a custom DFU process. Data is parsed in an endianness-independent manner.
Currently supports string and integer field type, and provides wrappers for common field types such as program version, app name, and board name.
First, initialize a binary info struct from a memory buffer or file descriptor:
Then, use the pico_binary_info_*() functions to extract data from the binary info struct, for example:
See the API Reference for full documentation.
See examples/ for example usage.
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Vendored code in include/pico/binary_info/ is copyright Raspberry Pi (Trading) Ltd., and is licensed under the BSD-3-Clause license.