Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ message NodeStatus {
StreamInStatus stream_in = 5;
ElectricalStimulationStatus electrical_stimulation = 6;
ApplicationNodeStatus application = 7;
OpticalStimulationStatus optical_stimulation = 8;
}
}

Expand Down
5 changes: 5 additions & 0 deletions api/nodes/optical_stimulation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ message OpticalStimFrame {
// For active, this represents frame on time
uint64 duration_us = 7;
}

message OpticalStimulationStatus {
// How many frames have we written?
uint64 frames_written = 1;
}
3 changes: 2 additions & 1 deletion api/time.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ enum TimeSource {
TIME_SOURCE_STEADY_CLOCK = 1;

// Calculate timestamps based on sample counter and sampling rate
// timestamp = (sample_counter / sample_rate) + initial_steady_clock_value
// counter_diff = (counter - first_counter)
// timestamp_ns = (counter_diff * 1e9 / sample_rate) + initial_steady_clock_value
// Where initial_steady_clock_value = get_steady_clock_now() at start
TIME_SOURCE_SAMPLE_COUNTER = 2;
}