diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2022-08-28 09:35:46 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2022-08-28 09:35:46 +0100 |
| commit | e3ea58d23aae3aca6f382c4b95ec31a1f7875cae (patch) | |
| tree | 6aa82a196df5ce3330d112e047febc348c44dc1d /adif.h | |
23.186.0.23.18
Diffstat (limited to 'adif.h')
| -rw-r--r-- | adif.h | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +// ADIF Logging Bits
+
+typedef struct ADIF
+{
+ char Call[16];
+ time_t StartTime;
+ int Mode;
+ char LOC[7];
+ char Band[8]; // ?Derive from freq?
+ long long Freq;
+
+ // Extra fields for Trimode comment fields
+
+ char CMSCall[16];
+ char ServerSID[80];
+ char UserSID[80];
+ char ReportMode[16];
+ char Termination[8]; // Last "F" message from CMS
+ int Sent;
+ int Received;
+ int BytesSent;
+ int BytesReceived;
+
+ char Dirn; // Direction of current transfer (In/Out)
+
+ int FBBIndex; // For saving proposals
+ int FBBLen[5]; // Proposed messages
+ BOOL GotFC; // Flag for acking messages on first FC
+ char PartMessageRX[512]; // Some modes frame size too small for complete lines
+ char PartMessageTX[512]; // Some modes frame size too small for complete lines
+
+} ADIF;
+
+BOOL UpdateADIFRecord(ADIF * ADIF, char * Msg, char Dirn);
+BOOL WriteADIFRecord(ADIF * ADIF);
+
+
|
