STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_ball_valve_commander.cpp File Reference
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <atomic>
#include <chrono>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
#include "BoardListener.hpp"
#include "control/ActuatorCommander.hpp"
#include "control/StateMachine.hpp"
#include "elodin/ElodinClient.hpp"
Include dependency graph for test_ball_valve_commander.cpp:

Go to the source code of this file.

Classes

class  FakeElodin
 Stands in for Elodin: accepts one connection and keeps every byte written to it. More...

Enumerations

enum class  State
 System state IDs — must match the TypeScript SystemState enum in web-gui/shared/types.ts. More...

Functions

static void check (bool ok, const std::string &what)
static std::string writeFixture (const fs::path &dir, uint16_t port)
static bool sawCommand (const std::vector< daqtest::Burst > &bursts, uint8_t ch, uint8_t hw)
int main ()

Variables

static int g_failures = 0

Enumeration Type Documentation

◆ State

enum class sequencer::State : uint8_t
strong

System state IDs — must match the TypeScript SystemState enum in web-gui/shared/types.ts.

Definition at line 14 of file StateMachine.hpp.

Function Documentation

◆ check()

void check ( bool ok,
const std::string & what )
static

Definition at line 37 of file test_ball_valve_commander.cpp.

References g_failures, and ok.

Referenced by main().

◆ main()

◆ sawCommand()

bool sawCommand ( const std::vector< daqtest::Burst > & bursts,
uint8_t ch,
uint8_t hw )
static

Definition at line 140 of file test_ball_valve_commander.cpp.

References b, and ch().

Referenced by main().

◆ writeFixture()

std::string writeFixture ( const fs::path & dir,
uint16_t port )
static

Definition at line 115 of file test_ball_valve_commander.cpp.

References port.

Referenced by main().

Variable Documentation

◆ g_failures

int g_failures = 0
static

Definition at line 35 of file test_ball_valve_commander.cpp.