Skip to main content

Crate kernel

Crate kernel 

Source
Expand description

ยงRektal Lighting Control Kernel

This is the main entry point for the Rektal lighting control kernel executable. It initializes the core logging infrastructure, parses command-line arguments, boots the fixture engine and DMX output interfaces, activates the TCP networking layer for client communication, and runs the primary interactive REPL shell.

Modulesยง

cli ๐Ÿ”’
Command Line Interface (CLI) Subcrate
fixture ๐Ÿ”’
Fixture Engine
networking ๐Ÿ”’
Kernel Networking Module

Macrosยง

debug_panic_or_return_log
Macro that either triggers a panic in debug mode (outside tests) or returns an error log tuple.

Functionsยง

get_arguments ๐Ÿ”’
Parses command-line arguments passed to the kernel executable.
main ๐Ÿ”’
Spawns the background fixture and DMX output worker threads, activates the TCP network socket, and enters the main REPL (Read-Eval-Print Loop) to process interactive user commands.