pub fn parse_tbf_header(
header: &[u8],
version: u16,
) -> Result<TbfHeader<'_>, TbfParseError>
Expand description
Parse a TBF header stored in flash.
The header
must be a slice that only contains the TBF header. The caller
should use the parse_tbf_header_lengths()
function to determine this
length to create the correct sized slice.