From c5a101d6f998b120b1705188c84e7258239ed510 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 19 Jun 2015 17:24:44 +0200 Subject: Add preliminary v6 header struct --- src/ufodecode.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/ufodecode.c') diff --git a/src/ufodecode.c b/src/ufodecode.c index a95e3cc..9519489 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -48,6 +48,23 @@ typedef struct { unsigned adc_resolution : 2; } header_v5_t; +typedef struct { + uint32_t magic_3; + uint32_t magic_4; + unsigned cmosis_start_address : 16; + unsigned adc_resolution : 4; + unsigned output_mode : 4; + unsigned five_1 : 4; + unsigned n_rows : 16; + unsigned n_skipped_rows : 12; + unsigned five_2 : 4; + unsigned frame_number : 24; + unsigned dataformat_version : 4; + unsigned five_3 : 4; + unsigned timestamp : 28; + unsigned five_4 : 4; +} header_v6_t; + typedef struct { unsigned int pixel_number : 8; unsigned int row_number : 12; -- cgit v1.2.3