Crate lasercube_core

Crate lasercube_core 

Source
Expand description

Core types and constants for the LaserCube network protocol.

This crate provides the fundamental data structures and protocol definitions for communicating with LaserCube devices, without any actual network implementation.

Re-exports§

pub use buffer::BufferState;
pub use cmds::Command;
pub use cmds::CommandType;
pub use cmds::SampleData;
pub use point::Point;

Modules§

buffer
Buffer management for LaserCube devices.
cmds
Command definitions for LaserCube protocol.
point
Point data representation for laser rendering.
port
Ports that the device listens on.

Structs§

LaserInfo
The fixed-size header along with the variable length model name.
LaserInfoHeader
Fixed-size header portion of the LaserInfo response

Enums§

ConnectionType
Connection type for the LaserCube.
LaserInfoParseError
Error types that can occur when parsing a LaserInfo response

Constants§

DEFAULT_BROADCAST_ADDR
Default broadcast address
MAX_POINTS_PER_MESSAGE
Maximum points per data message to stay under typical network MTU.