Loop Timing Witness
Native controller and runtime interfaces; hardware qualification pending
Loading...
Searching...
No Matches
witness::RunOutput Class Reference

#include <run_output.h>

Public Member Functions

 RunOutput (const char *event_path, const char *tracking_path)
 ~RunOutput ()=default
 RunOutput (const RunOutput &)=delete
RunOutput & operator= (const RunOutput &)=delete
void event (const std::array< std::uint32_t, 4 > &words)
void sample (std::int32_t reference, std::int32_t position, std::int32_t velocity, const witness_command &command, bool submitted, std::uint64_t ticks, std::uint64_t generation, std::uint64_t work)
void finish ()

Detailed Description

Raw files are created exclusively; a failed run retains its partial evidence.

Definition at line 24 of file run_output.h.

Constructor & Destructor Documentation

◆ RunOutput()

witness::RunOutput::RunOutput ( const char * event_path,
const char * tracking_path )
inline

Refuse existing paths and flush the raw trace header before run configuration.

Definition at line 29 of file run_output.h.

◆ ~RunOutput()

witness::RunOutput::~RunOutput ( )
default

Owned streams retain partial evidence and close during failure cleanup.

Member Function Documentation

◆ event()

void witness::RunOutput::event ( const std::array< std::uint32_t, 4 > & words)
inline

Store exactly four little-endian words from the actual held FIFO window.

Definition at line 45 of file run_output.h.

◆ finish()

void witness::RunOutput::finish ( )
inline

Flush and close once; refuse later writes or repeated completion.

Definition at line 69 of file run_output.h.

◆ sample()

void witness::RunOutput::sample ( std::int32_t reference,
std::int32_t position,
std::int32_t velocity,
const witness_command & command,
bool submitted,
std::uint64_t ticks,
std::uint64_t generation,
std::uint64_t work )
inline

Preserve actual input, returned command/state, original ticks and IRQ generation.

Definition at line 55 of file run_output.h.


The documentation for this class was generated from the following file: