31 lines
663 B
C
31 lines
663 B
C
//
|
|
// Created by cfif on 11.10.22.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_XFCTRANSPACKCOMMON_H
|
|
#define UVEOS_ON_NATION_XFCTRANSPACKCOMMON_H
|
|
|
|
#include "stdint.h"
|
|
|
|
|
|
#define XFC_TRANSPORT_HEADER_LEN 5
|
|
#define XFC_TRANSPORT_COMMAND_ID_OFFSET 1
|
|
#define XFC_TRANSPORT_DATA_LEN_OFFSET 3
|
|
#define XFC_TRANSPORT_CRC_LEN 2
|
|
|
|
|
|
typedef struct {
|
|
uint8_t request;
|
|
uint8_t response;
|
|
} tXfcProtMagicNumbers;
|
|
|
|
extern const tXfcProtMagicNumbers XFC_STD_MAGIC_NUMBERS;
|
|
|
|
|
|
////Mandatory request codes
|
|
//const uint16_t XFC_PROT_CMD_CODE_NULL = 0x0;
|
|
//const uint16_t XFC_PROT_CMD_CODE_PING = 0x1;
|
|
//const uint16_t XFC_PROT_CMD_CMD_TABLE = 0x2;
|
|
|
|
#endif //UVEOS_ON_NATION_XFCTRANSPACKCOMMON_H
|