Function tock_tbf::parse::parse_tbf_header
source · pub fn parse_tbf_header(
header: &'static [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.