Перенос на новую организацию GONEC

This commit is contained in:
cfif 2025-01-24 13:22:32 +03:00
commit be78cdf643
3 changed files with 75 additions and 0 deletions

55
Inc/AlmanahParser.h Normal file
View File

@ -0,0 +1,55 @@
//
// Created by xemon on 01.09.22.
//
#ifndef ALMANAH_PARSER_H
#define ALMANAH_PARSER_H
#include "stdint.h"
#include "ModemMain.h"
typedef struct __attribute__ ((packed)) {
uint8_t packetType; // Тип пакета
uint16_t sizeTransportPacket; // Размер транспортного служебного пакета
uint8_t numberRecipient[3]; // Номер получателя
uint8_t idArray; // Идентификатор массива
uint16_t offsetByteArray; // Смещение первого байта сегмента в массиве
uint8_t isEndSegment; // Признак последнего сегмент в массиве
uint8_t typeArray; // Тип массива
} tStructTransport_Packet;
typedef struct {
uint8_t numberKA; // Номер КА
uint16_t numberCoil; // Номер витка
struct {
uint8_t year;
uint8_t month;
uint8_t day;
} beginWorkAlmanah; // Начало работы альманаха
struct {
uint64_t seconds;
uint8_t minutes;
uint8_t hours;
} equatorTime; // Время экватора
uint64_t bigAxisOrbit; // Большая полуось орбиты
uint64_t averageValue1;
uint64_t averageValue2;
uint64_t averageValue3;
uint64_t averageValue4;
uint64_t averageValue5;
uint64_t averageValue6;
uint64_t averageValue7;
uint64_t averageValue8;
uint64_t averageValue9;
struct {
uint8_t year;
uint8_t month;
uint8_t day;
} endWorkAlmanah; // Конец работы альманаха
} tStructAlmanahTransportPacket;
#endif //ALMANAH_PARSER_H

10
Src/AlmanahParser.c Normal file
View File

@ -0,0 +1,10 @@
//
// Created by xemon on 01.09.22.
//
#include "AlmanahParser.h"
void ParseTransportPacket(uint8_t *buf, tStructTransport_Packet *structTransportPacket) {
}

10
modular.json Normal file
View File

@ -0,0 +1,10 @@
{
"cmake": {
"inc_dirs": [
"Inc"
],
"srcs": [
"Src/**.c"
]
}
}