diff options
| author | Philip Heron <phil@sanslogic.co.uk> | 2012-03-04 09:43:52 +0000 |
|---|---|---|
| committer | Philip Heron <phil@sanslogic.co.uk> | 2012-03-04 09:43:52 +0000 |
| commit | fe8a1a642c1022fccbf410a1e32832ed726801c5 (patch) | |
| tree | 7f2ff72db23db52ad30666854c45910d84d3e8b3 /ssdv.h | |
| parent | 723c6bc426286731885731a603cbe17efbb19b83 (diff) | |
Byte-align the first MCU of each packet
Diffstat (limited to 'ssdv.h')
| -rw-r--r-- | ssdv.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,7 +33,7 @@ extern "C" { /* Packet details */ #define SSDV_PKT_SIZE (0x100) -#define SSDV_PKT_SIZE_HEADER (0x10) +#define SSDV_PKT_SIZE_HEADER (0x0F) #define SSDV_PKT_SIZE_CRC (0x02) #define SSDV_PKT_SIZE_RSCODES (0x20) #define SSDV_PKT_SIZE_PAYLOAD (SSDV_PKT_SIZE - SSDV_PKT_SIZE_HEADER - SSDV_PKT_SIZE_CRC - SSDV_PKT_SIZE_RSCODES) @@ -48,13 +48,13 @@ typedef struct uint16_t width; uint16_t height; uint32_t callsign; - uint8_t image_id; + uint8_t image_id; uint16_t packet_id; uint8_t mcu_mode; /* 0 = 2x2, 1 = 2x1, 2 = 1x2, 3 = 1x1 */ uint16_t mcu_id; uint16_t mcu_count; uint16_t packet_mcu_id; - uint16_t packet_mcu_offset; + uint8_t packet_mcu_offset; /* Source buffer */ uint8_t *inp; /* Pointer to next input byte */ @@ -123,7 +123,7 @@ typedef struct { uint16_t width; uint16_t height; uint16_t mcu_mode; - uint16_t mcu_offset; + uint8_t mcu_offset; uint16_t mcu_id; uint16_t mcu_count; } ssdv_packet_info_t; |
