|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Stacklight Service — C++ STACKLIGHT_COMMAND sender. More...
Functions | |
| void | signalHandler (int) |
| daq::StacklightCommandPacket | stateToStacklight (uint8_t s) |
| void | elodinThread (std::string host, uint16_t port) |
Variables | |
| std::atomic< bool > | g_running {true} |
| std::atomic< uint8_t > | g_seq_state {static_cast<uint8_t>(sequencer::State::UNKNOWN)} |
| constexpr int | kStacklightRecvTimeoutMs = 500 |
Stacklight Service — C++ STACKLIGHT_COMMAND sender.
Subscribes to Elodin [0x5000] (SequencerState) for current state, maps it to a StacklightCommandPacket (red/yellow/green/buzzer), and sends it via UDP unicast to the stacklight board whenever the state changes (plus a periodic keepalive resend).
| void anonymous_namespace{stacklight_service_main.cpp}::elodinThread | ( | std::string | host, |
| uint16_t | port ) |
Definition at line 99 of file stacklight_service_main.cpp.
References g_running, g_seq_state, kStacklightRecvTimeoutMs, fsw::elodin::kTableSequencerState, and port.
Referenced by main().
| void anonymous_namespace{stacklight_service_main.cpp}::signalHandler | ( | int | ) |
Definition at line 36 of file stacklight_service_main.cpp.
References g_running.
| daq::StacklightCommandPacket anonymous_namespace{stacklight_service_main.cpp}::stateToStacklight | ( | uint8_t | s | ) |
Definition at line 44 of file stacklight_service_main.cpp.
Referenced by main().
| std::atomic<bool> anonymous_namespace{stacklight_service_main.cpp}::g_running {true} |
Definition at line 33 of file stacklight_service_main.cpp.
Referenced by elodinThread(), and signalHandler().
| std::atomic<uint8_t> anonymous_namespace{stacklight_service_main.cpp}::g_seq_state {static_cast<uint8_t>(sequencer::State::UNKNOWN)} |
Definition at line 34 of file stacklight_service_main.cpp.
Referenced by elodinThread(), and main().
|
constexpr |
Definition at line 97 of file stacklight_service_main.cpp.
Referenced by elodinThread().