Skip to main content

Crate rcvbp

Crate rcvbp 

Source
Expand description

Reader and writer for Colorlight .rcvbp receiver-parameter files (docs/rcvbp-format.md). The record stream must tile the blob exactly.

file:   [32-byte header][zlib stream][u32 CRC trailer]
header: 0x00 16 bytes  signature
        0x10 u32       version (4)
        0x14 u32       compressed size
        0x18 u32       decompressed size
        0x1c u32       reserved (0)
record: [u16 size_le][u16 type][payload; size-4]   (size counts the header)

Re-exports§

pub use spec::ChipLookup;
pub use panelspec;

Modules§

image
The compiled parameter image: flash block 7, applied by the card at boot.
record01
Record 0x01, the main receiver-parameter record: named byte offsets and typed accessors. The field dictionary is docs/record-0x01-fields.md.
spec
A panel spec (panelspec::PanelSpec) to the config generated from it.

Structs§

Encoded
A generated configuration file and where each of its bytes came from.
Format
A registry entry: what a format is called and what its codec can do.
Rcvbp
RcvbpCodec
The .rcvbp format behind Codec.
Record

Traits§

Codec
One vendor’s configuration format: a panel spec in, the card’s file out, and that file read back.

Functions§

codec
The codec registered under name.
codecs
The registered codecs, one per format; rxp config formats and the site’s format list read this.
detect
The codec whose signature file starts with.
formats
The registry entries, in registration order.
trailer_crc
The trailer CRC: CRC-32 over the file up to the trailer, init 0, no final inversion (so it does not match a stock CRC-32). Pinned by crc_tests.