Skip to content

Commit

Permalink
Creating stream buffer header for MSUS file/firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
hsemwal committed Dec 12, 2024
1 parent 2cde49b commit 905feb8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mio/data/config/wireless/MSUS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pix_depth: 12

# Buffer data format. These have to match the firmware value
header_len: 384 # 12 * 32 (in bits)
buffer_block_length: 12
block_size: 3988
num_buffers: 12
dummy_words: 12
buffer_block_length: 12 # how many words per block lenght
block_size: 4000 # just buffer (header/data)
num_buffers: 6 # num of data buffers inside mcu
dummy_words: 12 #

# Flags to flip bit/byte order when recovering headers and data. See model document for details.
reverse_header_bits: True
Expand Down
21 changes: 20 additions & 1 deletion mio/data/config/wireless/stream-buffer-header.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Original
# ctrl k+c = comment, ctrl k+u = uncomment multiple lines
# id: stream-buffer-header
# mio_model: mio.models.stream.StreamBufferHeaderFormat
# mio_version: "v5.0.0"
# linked_list: 0
# frame_num: 1
# buffer_count: 2
# frame_buffer_count: 3
# write_buffer_count: 4
# dropped_buffer_count: 5
# timestamp: 6
# write_timestamp: 8
# pixel_count: 7
# battery_voltage_raw: 9
# input_voltage_raw: 10


# MSUS
id: stream-buffer-header
mio_model: mio.models.stream.StreamBufferHeaderFormat
mio_version: "v5.0.0"
Expand All @@ -11,4 +30,4 @@ timestamp: 6
write_timestamp: 8
pixel_count: 7
battery_voltage_raw: 9
input_voltage_raw: 10
input_voltage_raw: 10

0 comments on commit 905feb8

Please sign in to comment.