Page 172 of 191
800581-2.11 NeurOne System User Manual.doc
Packet type specifics are described in the following subchapters. Every field is encoded in
big-endian byte order (i.e. most significant byte first). A packets type is identified by its first
byte. This way the receiving system may trigger conditional parsing based on packet type
–
or even decide to discard certain packets.
The data types referenced in packet type descriptions are:
Type
Description
int8
8-bit signed integer
uint8
8-bit unsigned integer
int16
16-bit signed integer
uint16
16-bit unsigned integer
int32
32-bit signed integer
uint32
32-bit unsigned integer
int64
64-bit signed integer
uint64
64-bit unsigned integer
t[N]
Array of values, each of type
t
. If
N
is specified it denotes array length. If N
isn’t given (i.e. “
[]
”) the array is variable-length.
MeasurementStartPacket
This packet is sent by NeurOne when it starts measuring, before any measurement data
(samples / triggers) is emitted and also upon receival of Join packet. The emission of this
packet is optional and may be enabled / disabled per-measurement. By default this packet
isn’t emitted.
The MeasurementStart packet structure is shown below:
Type
Name
Description
uint8
FrameType
1 = MeasurementStart
uint8
MainUnitNum
Indicates which main unit the packet is coming from (see
MainUnitNum field in Samples packet).
uint8[2]
Reserved
Reserved for future use
uint32
SamplingRateHz
Sampling frequency (Hz)
uint32
SampleFormat
Currently this field has a fixed value (
0x80000018
),
uint32
TriggerDefs
Indicates which trigger type is assigned to each source port. The
type of each port is expressed as a value encoded in 3 bits:
Bits
Trigger port
0-2
Isolated A
3-5
Isolated B
6-8
Parallel trigger
9-11
SyncBox button
12-14
SyncBox external
Value meaning:
Value
Trigger type
0
Disabled
1
Stimulus