39 lines
888 B
C
39 lines
888 B
C
//
|
|
// Created by cfif on 17.04.2026.
|
|
//
|
|
|
|
#ifndef HVAC_M7_DOWNLOADFILE_H
|
|
#define HVAC_M7_DOWNLOADFILE_H
|
|
|
|
#include "stdint.h"
|
|
|
|
#pragma scalar_storage_order big-endian
|
|
|
|
typedef struct __attribute__ ((packed)) {
|
|
uint8_t ServiceId;
|
|
uint8_t dataFormatIdentifier;
|
|
uint8_t addressAndLengthFormatIdentifier;
|
|
uint32_t memoryAddress;
|
|
uint32_t memorySize;
|
|
} tRequestDownload_Request;
|
|
|
|
typedef struct __attribute__ ((packed)) {
|
|
uint8_t ServiceId;
|
|
uint8_t lengthFormatIdentifier;
|
|
uint16_t maxNumberOfBlockLength;
|
|
} tRequestDownload_Response;
|
|
|
|
typedef struct __attribute__ ((packed)) {
|
|
uint8_t ServiceId;
|
|
uint8_t blockSequenceCounter;
|
|
} tTransferData_Request;
|
|
|
|
typedef struct __attribute__ ((packed)) {
|
|
uint8_t ServiceId;
|
|
uint8_t blockSequenceCounter;
|
|
} tTransferData_Response;
|
|
|
|
#pragma scalar_storage_order little-endian
|
|
|
|
#endif //HVAC_M7_DOWNLOADFILE_H
|