Skip to content

Commit daecdde

Browse files
committed
expand Channel
1 parent f0b58f3 commit daecdde

3 files changed

Lines changed: 19 additions & 36 deletions

File tree

api/channel.proto

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,26 @@ syntax = "proto3";
22

33
package synapse;
44

5+
enum ChannelType {
6+
ELECTRODE = 0;
7+
TTL = 1;
8+
}
9+
510
message Channel {
611
uint32 id = 1;
712
uint32 electrode_id = 2;
813
uint32 reference_id = 3;
9-
}
14+
ChannelType type = 4;
15+
}
16+
17+
// Describes contiguous ranges of channel types in frame_data, in order.
18+
// Example:
19+
// [{type: ELECTRODE}, count: 64, {type:TTL, count:3, channel_ids:[0, 2, 5]}]
20+
// This means frame_data[0..63] are electrodes, frame_data[64..66] are TTL lines 0, 2, 5
21+
message ChannelRange {
22+
ChannelType type = 1;
23+
uint32 count = 2;
24+
// Optional: for non-contiguous channels (e.g., TTL), specifies which
25+
// channel ids are included, in order. Empty for contiguous
26+
repeated uint32 channel_ids = 3;
27+
}

api/datatype.proto

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,7 @@ message BroadbandFrame {
6767
// Used for reconstructing multiple frames
6868
uint32 sample_rate_hz = 4;
6969

70-
// Describes contiguous ranges of channel types in frame_data, in order.
7170
// When empty, all frame_data entries are electrode channels (legacy behavior).
72-
// Example:
73-
// [{type: ELECTRODE}, count: 64, {type:TTL, count:3, channel_ids:[0, 2, 5]}]
74-
// This means frame_data[0..63] are electrodes, frame_data[64..66] are TTL lines 0, 2, 5
75-
message ChannelRange {
76-
enum ChannelType {
77-
ELECTRODE = 0;
78-
TTL = 1;
79-
}
80-
ChannelType type = 1;
81-
82-
// Number of channels of this type in frame_data
83-
uint32 count = 2;
84-
85-
// Optional: for non-contiguous channels (e.g., TTL), specifies which
86-
// channel ids are included, in order. Empty for contiguous
87-
repeated uint32 channel_ids = 3;
88-
}
8971
repeated ChannelRange channel_ranges = 5;
9072
}
9173

api/nodes/signal_config.proto

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ message ElectrodeConfig {
1111
// Analog filter settings for electrode channels
1212
float low_cutoff_hz = 2;
1313
float high_cutoff_hz = 3;
14-
15-
// Additional data channels to record beyond electrodes
16-
// These will appear in the broadband data stream after electrode
17-
// channels in the order specified here
18-
message AuxiliaryChannel {
19-
enum ChannelType {
20-
TTL = 0; // Digital input line
21-
}
22-
ChannelType type = 1;
23-
24-
// Channel identifier (TTL line 0-31, etc.)
25-
uint32 channel_id = 2;
26-
27-
// Optional human-readable label
28-
string label = 3;
29-
}
30-
repeated AuxiliaryChannel auxiliary_channels = 4;
3114
}
3215

3316
message PixelConfig {

0 commit comments

Comments
 (0)