|
pico-binary-info
Portable Pi Pico binary_info parser
|
Low-level functions for fetching raw field values. More...
Functions | |
| int | pico_binary_info_get_int (struct pico_binary_info *info, uint16_t tag, uint32_t id, uint32_t *out) |
| Fetch the integer value of an id-and-int record for the given tag. | |
| int | pico_binary_info_get_string (struct pico_binary_info *info, uint16_t tag, uint32_t id, char *out, size_t out_len) |
| Fetch the string value of an id-and-string record for the given tag. | |
Low-level functions for fetching raw field values.
| int pico_binary_info_get_int | ( | struct pico_binary_info * | info, |
| uint16_t | tag, | ||
| uint32_t | id, | ||
| uint32_t * | out ) |
Fetch the integer value of an id-and-int record for the given tag.
| info | the initialized binary info struct |
| tag | the 16-bit record tag |
| id | the record id |
| out | where to store the integer |
| int pico_binary_info_get_string | ( | struct pico_binary_info * | info, |
| uint16_t | tag, | ||
| uint32_t | id, | ||
| char * | out, | ||
| size_t | out_len ) |
Fetch the string value of an id-and-string record for the given tag.
| info | the initialized binary info struct |
| tag | the 16-bit record tag |
| id | the record id |
| out | where to store the string |
| out_len | the size of out string buffer |