Module fitparser::de

source ·
Expand description

Deserialize a stream of FIT file data into the serde data model by parsing the file and applying the packaged FIT profile to the data.

Structs§

  • Stores a vector of raw fields described by the preceding Definition message, a Definition message must come before any Data message. The data here will be transfomed into a FitDataRecord using the information from its defintion message and the MessageInfo struct from the FIT profile
  • The definition message is used to create an association between the local message type contained in the record header, and a Global Message Number (mesg_num) that relates to the global FIT message. Although 1 byte is available for the number of fields and 1 byte is available for the field size, no single message may be defined that is larger than 255 bytes.
  • The file header provides information about the FIT File. The minimum size of the file header is 12 bytes including protocol and profile version numbers, the amount of data contained in the file and data type signature. The 12 byte header is considered legacy, using the 14 byte header is preferred. The header size should always be decoded before attempting to interpret a FIT file, Dynastream may extend the header as necessary. Computing the CRC is optional when using a 14 byte file header, it is permissible to set it to 0x0000.
  • Deserialize and decode a stream of bytes

Enums§

  • Decoding options for the deserializer
  • Stores a FIT file object (header, message or CRC)

Functions§

  • Deserialize a FIT file stored as an array of bytes and return the decoded data messages.
  • Deserialize a FIT file stored as an array of bytes and return the decoded data messages, with additional decode options
  • Deserialize a FIT file stored in a source that implements io::Read.
  • Deserialize a FIT file stored in a source that implements io::Read, with additional decode options