Legacy_EgtsEncoderDecoder/Inc/egts_commonExt.h

93 lines
2.5 KiB
C

//
// Created by cfif on 22.04.2024.
//
#ifndef SMART_COMPONENTS_EGTS_COMMONEXT_H
#define SMART_COMPONENTS_EGTS_COMMONEXT_H
#include "egts.h"
#include "egts_crc.h"
typedef uint16_t(*tEgtsServiceSubRecordGeneratorEx)(uint8_t *out, void *args, uint16_t step);
uint16_t vEgtsPackSrvEx(
uint8_t *out,
uint16_t counter,
uint8_t flags,
eEgtsServiceId sourceServiceId,
eEgtsServiceId recipientServiceId,
uint32_t epochTimestamp,
uint16_t subRecordCount,
eEgtsSubRecordId subRecordType,
tEgtsServiceSubRecordGeneratorEx subRecGen,
void *subRecArgs
);
uint16_t vEgtsPackTransportEx1(
uint16_t cid,
uint16_t packetId,
uint16_t *counter,
uint8_t *out,
uint8_t srvFlags,
eEgtsPacketTypeId packetTypeId,
eEgtsServiceId sourceServiceId,
eEgtsServiceId recipientServiceId,
uint32_t timestamp,
uint16_t subRecordCount,
eEgtsSubRecordId subRecordType,
tEgtsServiceSubRecordGeneratorEx subRecGen,
void *subRecArgs
);
uint16_t vEgtsPackTransportEx2(
uint16_t cid,
uint16_t packetId,
uint16_t *counter,
uint8_t *out,
uint8_t srvFlags,
eEgtsPacketTypeId packetTypeId,
eEgtsServiceId sourceServiceId,
eEgtsServiceId recipientServiceId,
uint32_t timestamp,
uint16_t subRecordCount1,
eEgtsSubRecordId subRecordType1,
tEgtsServiceSubRecordGeneratorEx subRecGen1,
void *subRecArgs1,
uint16_t subRecordCount2,
eEgtsSubRecordId subRecordType2,
tEgtsServiceSubRecordGeneratorEx subRecGen2,
void *subRecArgs2
);
uint16_t vEgtsPackTransportEx3(
uint16_t cid,
uint16_t packetId,
uint16_t *counter,
uint8_t *out,
uint8_t srvFlags,
eEgtsPacketTypeId packetTypeId,
eEgtsServiceId sourceServiceId,
eEgtsServiceId recipientServiceId,
uint32_t timestamp,
uint16_t subRecordCount1,
eEgtsSubRecordId subRecordType1,
tEgtsServiceSubRecordGeneratorEx subRecGen1,
void *subRecArgs1,
uint16_t subRecordCount2,
eEgtsSubRecordId subRecordType2,
tEgtsServiceSubRecordGeneratorEx subRecGen2,
void *subRecArgs2,
uint16_t subRecordCount3,
eEgtsSubRecordId subRecordType3,
tEgtsServiceSubRecordGeneratorEx subRecGen3,
void *subRecArgs3
);
#endif //SMART_COMPONENTS_EGTS_COMMONEXT_H