@science-corporation/synapse 2.2.9 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.ts +1379 -861
- package/dist/api/api.js +4240 -2685
- package/dist/api/proto.json +321 -173
- package/package.json +70 -70
- package/scripts/postinstall.sh +185 -151
- package/src/api/api.d.ts +1379 -861
- package/src/api/api.js +4240 -2685
- package/src/api/proto.json +321 -173
- package/synapse-api/api/datatype.proto +23 -0
- package/synapse-api/api/device.proto +33 -6
- package/synapse-api/api/node.proto +4 -0
- package/synapse-api/api/nodes/camera.proto +18 -0
package/src/api/proto.json
CHANGED
|
@@ -237,7 +237,8 @@
|
|
|
237
237
|
"kSpectralFilter": 8,
|
|
238
238
|
"kDiskWriter": 9,
|
|
239
239
|
"kSpikeBinner": 10,
|
|
240
|
-
"kApplication": 11
|
|
240
|
+
"kApplication": 11,
|
|
241
|
+
"kCamera": 12
|
|
241
242
|
},
|
|
242
243
|
"reserved": [
|
|
243
244
|
[
|
|
@@ -262,7 +263,8 @@
|
|
|
262
263
|
"diskWriter",
|
|
263
264
|
"spikeSource",
|
|
264
265
|
"spikeBinner",
|
|
265
|
-
"application"
|
|
266
|
+
"application",
|
|
267
|
+
"camera"
|
|
266
268
|
]
|
|
267
269
|
}
|
|
268
270
|
},
|
|
@@ -310,6 +312,10 @@
|
|
|
310
312
|
"application": {
|
|
311
313
|
"type": "ApplicationNodeConfig",
|
|
312
314
|
"id": 14
|
|
315
|
+
},
|
|
316
|
+
"camera": {
|
|
317
|
+
"type": "CameraConfig",
|
|
318
|
+
"id": 15
|
|
313
319
|
}
|
|
314
320
|
},
|
|
315
321
|
"reserved": [
|
|
@@ -331,7 +337,8 @@
|
|
|
331
337
|
"electricalStimulation",
|
|
332
338
|
"application",
|
|
333
339
|
"opticalStimulation",
|
|
334
|
-
"diskWriter"
|
|
340
|
+
"diskWriter",
|
|
341
|
+
"camera"
|
|
335
342
|
]
|
|
336
343
|
}
|
|
337
344
|
},
|
|
@@ -363,6 +370,10 @@
|
|
|
363
370
|
"diskWriter": {
|
|
364
371
|
"type": "DiskWriterStatus",
|
|
365
372
|
"id": 10
|
|
373
|
+
},
|
|
374
|
+
"camera": {
|
|
375
|
+
"type": "CameraStatus",
|
|
376
|
+
"id": 11
|
|
366
377
|
}
|
|
367
378
|
},
|
|
368
379
|
"reserved": [
|
|
@@ -810,6 +821,221 @@
|
|
|
810
821
|
}
|
|
811
822
|
}
|
|
812
823
|
},
|
|
824
|
+
"CameraConfig": {
|
|
825
|
+
"fields": {
|
|
826
|
+
"peripheralId": {
|
|
827
|
+
"type": "uint32",
|
|
828
|
+
"id": 1
|
|
829
|
+
},
|
|
830
|
+
"width": {
|
|
831
|
+
"type": "uint32",
|
|
832
|
+
"id": 2
|
|
833
|
+
},
|
|
834
|
+
"height": {
|
|
835
|
+
"type": "uint32",
|
|
836
|
+
"id": 3
|
|
837
|
+
},
|
|
838
|
+
"format": {
|
|
839
|
+
"type": "PixelFormat",
|
|
840
|
+
"id": 4
|
|
841
|
+
},
|
|
842
|
+
"frameRateHz": {
|
|
843
|
+
"type": "uint32",
|
|
844
|
+
"id": 5
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"CameraStatus": {
|
|
849
|
+
"fields": {
|
|
850
|
+
"framesProduced": {
|
|
851
|
+
"type": "uint64",
|
|
852
|
+
"id": 1
|
|
853
|
+
},
|
|
854
|
+
"framesDropped": {
|
|
855
|
+
"type": "uint64",
|
|
856
|
+
"id": 2
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"DataType": {
|
|
861
|
+
"values": {
|
|
862
|
+
"kDataTypeUnknown": 0,
|
|
863
|
+
"kAny": 1,
|
|
864
|
+
"kBroadband": 2,
|
|
865
|
+
"kSpiketrain": 3,
|
|
866
|
+
"kTimestamps": 4,
|
|
867
|
+
"kImage": 5,
|
|
868
|
+
"kWaveforms": 6
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
"Tensor": {
|
|
872
|
+
"fields": {
|
|
873
|
+
"timestampNs": {
|
|
874
|
+
"type": "uint64",
|
|
875
|
+
"id": 1
|
|
876
|
+
},
|
|
877
|
+
"shape": {
|
|
878
|
+
"rule": "repeated",
|
|
879
|
+
"type": "int32",
|
|
880
|
+
"id": 2
|
|
881
|
+
},
|
|
882
|
+
"dtype": {
|
|
883
|
+
"type": "DType",
|
|
884
|
+
"id": 3
|
|
885
|
+
},
|
|
886
|
+
"endianness": {
|
|
887
|
+
"type": "Endianness",
|
|
888
|
+
"id": 4
|
|
889
|
+
},
|
|
890
|
+
"data": {
|
|
891
|
+
"type": "bytes",
|
|
892
|
+
"id": 5
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"nested": {
|
|
896
|
+
"DType": {
|
|
897
|
+
"values": {
|
|
898
|
+
"DT_INVALID": 0,
|
|
899
|
+
"DT_FLOAT": 1,
|
|
900
|
+
"DT_DOUBLE": 2,
|
|
901
|
+
"DT_UINT8": 3,
|
|
902
|
+
"DT_UINT16": 4,
|
|
903
|
+
"DT_UINT32": 5,
|
|
904
|
+
"DT_UINT64": 6,
|
|
905
|
+
"DT_INT8": 7,
|
|
906
|
+
"DT_INT16": 8,
|
|
907
|
+
"DT_INT32": 9,
|
|
908
|
+
"DT_INT64": 10,
|
|
909
|
+
"DT_BOOL": 11
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"Endianness": {
|
|
913
|
+
"values": {
|
|
914
|
+
"TENSOR_LITTLE_ENDIAN": 0,
|
|
915
|
+
"TENSOR_BIG_ENDIAN": 1
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"BroadbandFrame": {
|
|
921
|
+
"fields": {
|
|
922
|
+
"timestampNs": {
|
|
923
|
+
"type": "uint64",
|
|
924
|
+
"id": 1
|
|
925
|
+
},
|
|
926
|
+
"sequenceNumber": {
|
|
927
|
+
"type": "uint64",
|
|
928
|
+
"id": 2
|
|
929
|
+
},
|
|
930
|
+
"frameData": {
|
|
931
|
+
"rule": "repeated",
|
|
932
|
+
"type": "sint32",
|
|
933
|
+
"id": 3
|
|
934
|
+
},
|
|
935
|
+
"sampleRateHz": {
|
|
936
|
+
"type": "uint32",
|
|
937
|
+
"id": 4
|
|
938
|
+
},
|
|
939
|
+
"channelRanges": {
|
|
940
|
+
"rule": "repeated",
|
|
941
|
+
"type": "ChannelRange",
|
|
942
|
+
"id": 5
|
|
943
|
+
},
|
|
944
|
+
"unixTimestampNs": {
|
|
945
|
+
"type": "uint64",
|
|
946
|
+
"id": 6
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"Timeseries": {
|
|
951
|
+
"fields": {
|
|
952
|
+
"id": {
|
|
953
|
+
"type": "uint32",
|
|
954
|
+
"id": 1
|
|
955
|
+
},
|
|
956
|
+
"datapoints": {
|
|
957
|
+
"rule": "repeated",
|
|
958
|
+
"type": "Datapoint",
|
|
959
|
+
"id": 2
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"nested": {
|
|
963
|
+
"Datapoint": {
|
|
964
|
+
"fields": {
|
|
965
|
+
"timestampNs": {
|
|
966
|
+
"type": "uint64",
|
|
967
|
+
"id": 1
|
|
968
|
+
},
|
|
969
|
+
"sample": {
|
|
970
|
+
"type": "sint32",
|
|
971
|
+
"id": 2
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"AnnotatedTensor": {
|
|
978
|
+
"fields": {
|
|
979
|
+
"tensor": {
|
|
980
|
+
"type": "Tensor",
|
|
981
|
+
"id": 1
|
|
982
|
+
},
|
|
983
|
+
"metadata": {
|
|
984
|
+
"keyType": "string",
|
|
985
|
+
"type": "google.protobuf.Value",
|
|
986
|
+
"id": 2
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"PixelFormat": {
|
|
991
|
+
"values": {
|
|
992
|
+
"kPixelFormatUnknown": 0,
|
|
993
|
+
"kYUV420_888": 1,
|
|
994
|
+
"kRGB888": 2,
|
|
995
|
+
"kRGBA8888": 3,
|
|
996
|
+
"kGrayscale8": 4,
|
|
997
|
+
"kRAW10": 5,
|
|
998
|
+
"kRAW16": 6,
|
|
999
|
+
"kNV12": 7,
|
|
1000
|
+
"kNV21": 8
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"ImageFrame": {
|
|
1004
|
+
"fields": {
|
|
1005
|
+
"width": {
|
|
1006
|
+
"type": "uint32",
|
|
1007
|
+
"id": 1
|
|
1008
|
+
},
|
|
1009
|
+
"height": {
|
|
1010
|
+
"type": "uint32",
|
|
1011
|
+
"id": 2
|
|
1012
|
+
},
|
|
1013
|
+
"format": {
|
|
1014
|
+
"type": "PixelFormat",
|
|
1015
|
+
"id": 3
|
|
1016
|
+
},
|
|
1017
|
+
"sampleRateHz": {
|
|
1018
|
+
"type": "uint32",
|
|
1019
|
+
"id": 4
|
|
1020
|
+
},
|
|
1021
|
+
"sequenceNumber": {
|
|
1022
|
+
"type": "uint64",
|
|
1023
|
+
"id": 5
|
|
1024
|
+
},
|
|
1025
|
+
"timestampNs": {
|
|
1026
|
+
"type": "uint64",
|
|
1027
|
+
"id": 6
|
|
1028
|
+
},
|
|
1029
|
+
"unixTimestampNs": {
|
|
1030
|
+
"type": "uint64",
|
|
1031
|
+
"id": 7
|
|
1032
|
+
},
|
|
1033
|
+
"data": {
|
|
1034
|
+
"type": "bytes",
|
|
1035
|
+
"id": 8
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
813
1039
|
"FunctionProfile": {
|
|
814
1040
|
"fields": {
|
|
815
1041
|
"name": {
|
|
@@ -876,7 +1102,8 @@
|
|
|
876
1102
|
"kBroadbandSource": 1,
|
|
877
1103
|
"kElectricalStimulation": 2,
|
|
878
1104
|
"kOpticalStimulation": 3,
|
|
879
|
-
"kSpikeSource": 4
|
|
1105
|
+
"kSpikeSource": 4,
|
|
1106
|
+
"kCamera": 5
|
|
880
1107
|
}
|
|
881
1108
|
}
|
|
882
1109
|
}
|
|
@@ -929,18 +1156,64 @@
|
|
|
929
1156
|
}
|
|
930
1157
|
},
|
|
931
1158
|
"DeviceSettings": {
|
|
1159
|
+
"fields": {
|
|
1160
|
+
"values": {
|
|
1161
|
+
"type": "google.protobuf.Struct",
|
|
1162
|
+
"id": 4
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
"reserved": [
|
|
1166
|
+
[
|
|
1167
|
+
1,
|
|
1168
|
+
1
|
|
1169
|
+
],
|
|
1170
|
+
[
|
|
1171
|
+
2,
|
|
1172
|
+
2
|
|
1173
|
+
],
|
|
1174
|
+
[
|
|
1175
|
+
3,
|
|
1176
|
+
3
|
|
1177
|
+
],
|
|
1178
|
+
"name",
|
|
1179
|
+
"time_source",
|
|
1180
|
+
"fpga_clock_freq_hz"
|
|
1181
|
+
]
|
|
1182
|
+
},
|
|
1183
|
+
"SettingDescriptor": {
|
|
932
1184
|
"fields": {
|
|
933
1185
|
"name": {
|
|
934
1186
|
"type": "string",
|
|
935
1187
|
"id": 1
|
|
936
1188
|
},
|
|
937
|
-
"
|
|
938
|
-
"type": "
|
|
1189
|
+
"description": {
|
|
1190
|
+
"type": "string",
|
|
939
1191
|
"id": 2
|
|
940
1192
|
},
|
|
941
|
-
"
|
|
942
|
-
"type": "
|
|
1193
|
+
"kind": {
|
|
1194
|
+
"type": "Kind",
|
|
943
1195
|
"id": 3
|
|
1196
|
+
},
|
|
1197
|
+
"defaultValue": {
|
|
1198
|
+
"type": "google.protobuf.Value",
|
|
1199
|
+
"id": 4
|
|
1200
|
+
},
|
|
1201
|
+
"allowedValues": {
|
|
1202
|
+
"rule": "repeated",
|
|
1203
|
+
"type": "google.protobuf.Value",
|
|
1204
|
+
"id": 5
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"nested": {
|
|
1208
|
+
"Kind": {
|
|
1209
|
+
"values": {
|
|
1210
|
+
"kKindUnknown": 0,
|
|
1211
|
+
"kString": 1,
|
|
1212
|
+
"kInt": 2,
|
|
1213
|
+
"kDouble": 3,
|
|
1214
|
+
"kBool": 4,
|
|
1215
|
+
"kEnum": 5
|
|
1216
|
+
}
|
|
944
1217
|
}
|
|
945
1218
|
}
|
|
946
1219
|
},
|
|
@@ -952,6 +1225,11 @@
|
|
|
952
1225
|
"settings": {
|
|
953
1226
|
"type": "DeviceSettings",
|
|
954
1227
|
"id": 1
|
|
1228
|
+
},
|
|
1229
|
+
"schema": {
|
|
1230
|
+
"rule": "repeated",
|
|
1231
|
+
"type": "SettingDescriptor",
|
|
1232
|
+
"id": 2
|
|
955
1233
|
}
|
|
956
1234
|
}
|
|
957
1235
|
},
|
|
@@ -975,171 +1253,6 @@
|
|
|
975
1253
|
}
|
|
976
1254
|
}
|
|
977
1255
|
},
|
|
978
|
-
"TimeSyncPacket": {
|
|
979
|
-
"fields": {
|
|
980
|
-
"clientId": {
|
|
981
|
-
"type": "fixed32",
|
|
982
|
-
"id": 1
|
|
983
|
-
},
|
|
984
|
-
"sequence": {
|
|
985
|
-
"type": "fixed32",
|
|
986
|
-
"id": 2
|
|
987
|
-
},
|
|
988
|
-
"clientSendTimeNs": {
|
|
989
|
-
"type": "fixed64",
|
|
990
|
-
"id": 3
|
|
991
|
-
},
|
|
992
|
-
"serverReceiveTimeNs": {
|
|
993
|
-
"type": "fixed64",
|
|
994
|
-
"id": 4
|
|
995
|
-
},
|
|
996
|
-
"serverSendTimeNs": {
|
|
997
|
-
"type": "fixed64",
|
|
998
|
-
"id": 5
|
|
999
|
-
},
|
|
1000
|
-
"clientReceiveTimeNs": {
|
|
1001
|
-
"type": "fixed64",
|
|
1002
|
-
"id": 6
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
},
|
|
1006
|
-
"TimeSource": {
|
|
1007
|
-
"values": {
|
|
1008
|
-
"TIME_SOURCE_UNKNOWN": 0,
|
|
1009
|
-
"TIME_SOURCE_STEADY_CLOCK": 1,
|
|
1010
|
-
"TIME_SOURCE_SAMPLE_COUNTER": 2
|
|
1011
|
-
}
|
|
1012
|
-
},
|
|
1013
|
-
"DataType": {
|
|
1014
|
-
"values": {
|
|
1015
|
-
"kDataTypeUnknown": 0,
|
|
1016
|
-
"kAny": 1,
|
|
1017
|
-
"kBroadband": 2,
|
|
1018
|
-
"kSpiketrain": 3,
|
|
1019
|
-
"kTimestamps": 4,
|
|
1020
|
-
"kImage": 5,
|
|
1021
|
-
"kWaveforms": 6
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
"Tensor": {
|
|
1025
|
-
"fields": {
|
|
1026
|
-
"timestampNs": {
|
|
1027
|
-
"type": "uint64",
|
|
1028
|
-
"id": 1
|
|
1029
|
-
},
|
|
1030
|
-
"shape": {
|
|
1031
|
-
"rule": "repeated",
|
|
1032
|
-
"type": "int32",
|
|
1033
|
-
"id": 2
|
|
1034
|
-
},
|
|
1035
|
-
"dtype": {
|
|
1036
|
-
"type": "DType",
|
|
1037
|
-
"id": 3
|
|
1038
|
-
},
|
|
1039
|
-
"endianness": {
|
|
1040
|
-
"type": "Endianness",
|
|
1041
|
-
"id": 4
|
|
1042
|
-
},
|
|
1043
|
-
"data": {
|
|
1044
|
-
"type": "bytes",
|
|
1045
|
-
"id": 5
|
|
1046
|
-
}
|
|
1047
|
-
},
|
|
1048
|
-
"nested": {
|
|
1049
|
-
"DType": {
|
|
1050
|
-
"values": {
|
|
1051
|
-
"DT_INVALID": 0,
|
|
1052
|
-
"DT_FLOAT": 1,
|
|
1053
|
-
"DT_DOUBLE": 2,
|
|
1054
|
-
"DT_UINT8": 3,
|
|
1055
|
-
"DT_UINT16": 4,
|
|
1056
|
-
"DT_UINT32": 5,
|
|
1057
|
-
"DT_UINT64": 6,
|
|
1058
|
-
"DT_INT8": 7,
|
|
1059
|
-
"DT_INT16": 8,
|
|
1060
|
-
"DT_INT32": 9,
|
|
1061
|
-
"DT_INT64": 10,
|
|
1062
|
-
"DT_BOOL": 11
|
|
1063
|
-
}
|
|
1064
|
-
},
|
|
1065
|
-
"Endianness": {
|
|
1066
|
-
"values": {
|
|
1067
|
-
"TENSOR_LITTLE_ENDIAN": 0,
|
|
1068
|
-
"TENSOR_BIG_ENDIAN": 1
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
},
|
|
1073
|
-
"BroadbandFrame": {
|
|
1074
|
-
"fields": {
|
|
1075
|
-
"timestampNs": {
|
|
1076
|
-
"type": "uint64",
|
|
1077
|
-
"id": 1
|
|
1078
|
-
},
|
|
1079
|
-
"sequenceNumber": {
|
|
1080
|
-
"type": "uint64",
|
|
1081
|
-
"id": 2
|
|
1082
|
-
},
|
|
1083
|
-
"frameData": {
|
|
1084
|
-
"rule": "repeated",
|
|
1085
|
-
"type": "sint32",
|
|
1086
|
-
"id": 3
|
|
1087
|
-
},
|
|
1088
|
-
"sampleRateHz": {
|
|
1089
|
-
"type": "uint32",
|
|
1090
|
-
"id": 4
|
|
1091
|
-
},
|
|
1092
|
-
"channelRanges": {
|
|
1093
|
-
"rule": "repeated",
|
|
1094
|
-
"type": "ChannelRange",
|
|
1095
|
-
"id": 5
|
|
1096
|
-
},
|
|
1097
|
-
"unixTimestampNs": {
|
|
1098
|
-
"type": "uint64",
|
|
1099
|
-
"id": 6
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
},
|
|
1103
|
-
"Timeseries": {
|
|
1104
|
-
"fields": {
|
|
1105
|
-
"id": {
|
|
1106
|
-
"type": "uint32",
|
|
1107
|
-
"id": 1
|
|
1108
|
-
},
|
|
1109
|
-
"datapoints": {
|
|
1110
|
-
"rule": "repeated",
|
|
1111
|
-
"type": "Datapoint",
|
|
1112
|
-
"id": 2
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
|
-
"nested": {
|
|
1116
|
-
"Datapoint": {
|
|
1117
|
-
"fields": {
|
|
1118
|
-
"timestampNs": {
|
|
1119
|
-
"type": "uint64",
|
|
1120
|
-
"id": 1
|
|
1121
|
-
},
|
|
1122
|
-
"sample": {
|
|
1123
|
-
"type": "sint32",
|
|
1124
|
-
"id": 2
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
},
|
|
1130
|
-
"AnnotatedTensor": {
|
|
1131
|
-
"fields": {
|
|
1132
|
-
"tensor": {
|
|
1133
|
-
"type": "Tensor",
|
|
1134
|
-
"id": 1
|
|
1135
|
-
},
|
|
1136
|
-
"metadata": {
|
|
1137
|
-
"keyType": "string",
|
|
1138
|
-
"type": "google.protobuf.Value",
|
|
1139
|
-
"id": 2
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
},
|
|
1143
1256
|
"ListFilesResponse": {
|
|
1144
1257
|
"fields": {
|
|
1145
1258
|
"files": {
|
|
@@ -1640,6 +1753,41 @@
|
|
|
1640
1753
|
"responseType": "UpdateDeviceSettingsResponse"
|
|
1641
1754
|
}
|
|
1642
1755
|
}
|
|
1756
|
+
},
|
|
1757
|
+
"TimeSyncPacket": {
|
|
1758
|
+
"fields": {
|
|
1759
|
+
"clientId": {
|
|
1760
|
+
"type": "fixed32",
|
|
1761
|
+
"id": 1
|
|
1762
|
+
},
|
|
1763
|
+
"sequence": {
|
|
1764
|
+
"type": "fixed32",
|
|
1765
|
+
"id": 2
|
|
1766
|
+
},
|
|
1767
|
+
"clientSendTimeNs": {
|
|
1768
|
+
"type": "fixed64",
|
|
1769
|
+
"id": 3
|
|
1770
|
+
},
|
|
1771
|
+
"serverReceiveTimeNs": {
|
|
1772
|
+
"type": "fixed64",
|
|
1773
|
+
"id": 4
|
|
1774
|
+
},
|
|
1775
|
+
"serverSendTimeNs": {
|
|
1776
|
+
"type": "fixed64",
|
|
1777
|
+
"id": 5
|
|
1778
|
+
},
|
|
1779
|
+
"clientReceiveTimeNs": {
|
|
1780
|
+
"type": "fixed64",
|
|
1781
|
+
"id": 6
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
"TimeSource": {
|
|
1786
|
+
"values": {
|
|
1787
|
+
"TIME_SOURCE_UNKNOWN": 0,
|
|
1788
|
+
"TIME_SOURCE_STEADY_CLOCK": 1,
|
|
1789
|
+
"TIME_SOURCE_SAMPLE_COUNTER": 2
|
|
1790
|
+
}
|
|
1643
1791
|
}
|
|
1644
1792
|
}
|
|
1645
1793
|
},
|
|
@@ -107,3 +107,26 @@ message AnnotatedTensor {
|
|
|
107
107
|
// e.g. pipeline latencies
|
|
108
108
|
map<string, google.protobuf.Value> metadata = 2;
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
enum PixelFormat {
|
|
112
|
+
kPixelFormatUnknown = 0;
|
|
113
|
+
kYUV420_888 = 1;
|
|
114
|
+
kRGB888 = 2;
|
|
115
|
+
kRGBA8888 = 3;
|
|
116
|
+
kGrayscale8 = 4;
|
|
117
|
+
kRAW10 = 5;
|
|
118
|
+
kRAW16 = 6;
|
|
119
|
+
kNV12 = 7;
|
|
120
|
+
kNV21 = 8;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message ImageFrame {
|
|
124
|
+
uint32 width = 1;
|
|
125
|
+
uint32 height = 2;
|
|
126
|
+
PixelFormat format = 3;
|
|
127
|
+
uint32 sample_rate_hz = 4;
|
|
128
|
+
uint64 sequence_number = 5;
|
|
129
|
+
uint64 timestamp_ns = 6;
|
|
130
|
+
uint64 unix_timestamp_ns = 7;
|
|
131
|
+
bytes data = 8;
|
|
132
|
+
}
|
|
@@ -4,7 +4,8 @@ package synapse;
|
|
|
4
4
|
|
|
5
5
|
import "api/node.proto";
|
|
6
6
|
import "api/status.proto";
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/struct.proto";
|
|
8
9
|
|
|
9
10
|
message Peripheral {
|
|
10
11
|
enum Type {
|
|
@@ -13,6 +14,7 @@ message Peripheral {
|
|
|
13
14
|
kElectricalStimulation = 2;
|
|
14
15
|
kOpticalStimulation = 3;
|
|
15
16
|
kSpikeSource = 4;
|
|
17
|
+
kCamera = 5;
|
|
16
18
|
}
|
|
17
19
|
string name = 1;
|
|
18
20
|
string vendor = 2;
|
|
@@ -37,13 +39,35 @@ message DeviceConfiguration {
|
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
|
|
40
|
-
// Device settings that are configurable by the user
|
|
42
|
+
// Device settings that are configurable by the user.
|
|
43
|
+
// Keys and value types are defined by the device and advertised via
|
|
44
|
+
// GetSettingsResponse.schema.
|
|
41
45
|
message DeviceSettings {
|
|
46
|
+
reserved 1, 2, 3;
|
|
47
|
+
reserved "name", "time_source", "fpga_clock_freq_hz";
|
|
48
|
+
|
|
49
|
+
google.protobuf.Struct values = 4;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Describes a single settings key that the device accepts.
|
|
53
|
+
message SettingDescriptor {
|
|
54
|
+
enum Kind {
|
|
55
|
+
kKindUnknown = 0;
|
|
56
|
+
kString = 1;
|
|
57
|
+
kInt = 2;
|
|
58
|
+
kDouble = 3;
|
|
59
|
+
kBool = 4;
|
|
60
|
+
kEnum = 5;
|
|
61
|
+
}
|
|
62
|
+
|
|
42
63
|
string name = 1;
|
|
43
|
-
|
|
64
|
+
string description = 2;
|
|
65
|
+
Kind kind = 3;
|
|
66
|
+
google.protobuf.Value default_value = 4;
|
|
44
67
|
|
|
45
|
-
//
|
|
46
|
-
|
|
68
|
+
// Allowed values for enum-kind or discrete-set settings
|
|
69
|
+
// (e.g. valid FPGA clock frequencies).
|
|
70
|
+
repeated google.protobuf.Value allowed_values = 5;
|
|
47
71
|
}
|
|
48
72
|
|
|
49
73
|
message GetSettingsQuery {
|
|
@@ -52,10 +76,13 @@ message GetSettingsQuery {
|
|
|
52
76
|
|
|
53
77
|
message GetSettingsResponse {
|
|
54
78
|
DeviceSettings settings = 1;
|
|
79
|
+
|
|
80
|
+
// Describes the keys this device accepts in DeviceSettings.values.
|
|
81
|
+
repeated SettingDescriptor schema = 2;
|
|
55
82
|
}
|
|
56
83
|
|
|
57
84
|
message UpdateDeviceSettingsRequest {
|
|
58
|
-
//
|
|
85
|
+
// Only keys present in settings.values will be updated.
|
|
59
86
|
DeviceSettings settings = 1;
|
|
60
87
|
}
|
|
61
88
|
|
|
@@ -11,6 +11,7 @@ import "api/nodes/disk_writer.proto";
|
|
|
11
11
|
import "api/nodes/spike_source.proto";
|
|
12
12
|
import "api/nodes/spike_binner.proto";
|
|
13
13
|
import "api/nodes/application.proto";
|
|
14
|
+
import "api/nodes/camera.proto";
|
|
14
15
|
|
|
15
16
|
enum NodeType {
|
|
16
17
|
kNodeTypeUnknown = 0;
|
|
@@ -27,6 +28,7 @@ enum NodeType {
|
|
|
27
28
|
kDiskWriter = 9;
|
|
28
29
|
kSpikeBinner = 10;
|
|
29
30
|
kApplication = 11;
|
|
31
|
+
kCamera = 12;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
message NodeConfig {
|
|
@@ -47,6 +49,7 @@ message NodeConfig {
|
|
|
47
49
|
SpikeSourceConfig spike_source = 12;
|
|
48
50
|
SpikeBinnerConfig spike_binner = 13;
|
|
49
51
|
ApplicationNodeConfig application = 14;
|
|
52
|
+
CameraConfig camera = 15;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -63,6 +66,7 @@ message NodeStatus {
|
|
|
63
66
|
ApplicationNodeStatus application = 7;
|
|
64
67
|
OpticalStimulationStatus optical_stimulation = 8;
|
|
65
68
|
DiskWriterStatus disk_writer = 10;
|
|
69
|
+
CameraStatus camera = 11;
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
|