Skip to main content

Crate colorlight

Crate colorlight 

Source
Expand description

Colorlight receiver-card layer-2 protocol: raw Ethernet frames whose 2-byte “EtherType” is a packet type. Frame builders and reply parsers only; sequencing lives in the callers. Byte layouts: docs/pixel-protocol.md.

Re-exports§

pub use discovery::*;
pub use flash::*;
pub use pixel::*;

Modules§

discovery
Discovery, layout, test mode, parameter reload, and the upgrade-descriptor query.
eeprom
The receiver’s EEPROM (cabinet identity) and the type-0x1900 frames that write it: opcode 0x85 writes one record, 0x87 commits to the flash mirror.
flash
Flash read, erase and write frames.
params
Sub-indices of the type-0x05 real-time parameter packs.
pixel
Pixel rows, the latch (sync) frame, and brightness: the frames sent every refresh.
upgrade
SDRAM-staged firmware upgrade: descriptor query, 1 KiB chunk uploads (unacknowledged; the caller paces them), erase, program, completion poll.

Structs§

Colorlight
The Colorlight receiving-card protocol: the free functions of this crate behind Protocol.

Constants§

BROADCAST
Receiver index addressing every card on the link. The vendor uses it even for one card, and a card with a corrupt cabinet record answers only to it.
CARD_MAC
HEADER_LEN
Two MACs and the type.
SENDER_MAC

Traits§

Protocol
One vendor’s wire protocol as frame builders and reply parsers, the surface ops drives a card through.

Functions§

frame
frame_with
A frame with a zeroed payload_len-byte payload that fill writes in place.