pico-binary-info
Portable Pi Pico binary_info parser
Loading...
Searching...
No Matches
Low-Level Fetching

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.

Detailed Description

Low-level functions for fetching raw field values.

Function Documentation

◆ pico_binary_info_get_int()

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.

Parameters
infothe initialized binary info struct
tagthe 16-bit record tag
idthe record id
outwhere to store the integer
Returns
0 for success, negative error code on failure

◆ pico_binary_info_get_string()

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.

Parameters
infothe initialized binary info struct
tagthe 16-bit record tag
idthe record id
outwhere to store the string
out_lenthe size of out string buffer
Returns
0 for success, negative error code on failure