2023-09-05 22:31:17 +02:00
|
|
|
/** @file main.h
|
|
|
|
* @brief BJ-Keyer
|
|
|
|
*
|
|
|
|
* @Author Tom, DL7BJ
|
|
|
|
*
|
|
|
|
*/
|
2023-08-06 23:11:24 +02:00
|
|
|
#ifndef MAIN_H_INCLUDED
|
|
|
|
#define MAIN_H_INCLUDED
|
|
|
|
|
|
|
|
#include "globals.h"
|
|
|
|
#include "encoder.h"
|
|
|
|
#include "functions.h"
|
2023-08-19 22:41:12 +02:00
|
|
|
#include "controls.h"
|
2023-08-27 23:26:03 +02:00
|
|
|
#include "vt100.h"
|
2023-08-06 23:11:24 +02:00
|
|
|
|
2023-09-05 22:31:17 +02:00
|
|
|
struct Config bConfig; ///< Struktur für die Einstellungen
|
|
|
|
struct MenuCtrl bMenuCtrl; ///< Struktur für die Menuesteuerung
|
|
|
|
struct State bState; ///< Struktur für den aktuellen Status
|
|
|
|
struct Message bMessage; ///< Struktur für die 5 Textspeicher
|
2023-08-06 23:11:24 +02:00
|
|
|
// Function prototypes
|
|
|
|
void Init(void);
|
|
|
|
void InitTimer(void);
|
2023-08-21 21:49:47 +02:00
|
|
|
void ReStart(void);
|
2023-08-06 23:11:24 +02:00
|
|
|
|
2023-08-21 21:49:47 +02:00
|
|
|
extern void CheckDahPaddle(void);
|
|
|
|
extern void CheckDitPaddle(void);
|
|
|
|
extern void CheckStraightKey(void);
|
2023-09-04 00:24:24 +02:00
|
|
|
extern void CheckButtons(void);
|
2023-08-21 21:49:47 +02:00
|
|
|
extern void SetFrequency(uint16_t f);
|
|
|
|
extern void DitDahBuffers(void);
|
2023-09-04 00:24:24 +02:00
|
|
|
extern void SetStandardMsg(void);
|
2023-08-23 00:13:39 +02:00
|
|
|
extern void DahPaddle(void);
|
|
|
|
extern void DitPaddle(void);
|
2023-09-05 22:31:17 +02:00
|
|
|
extern void ReadMsgEEprom(uint8_t i);
|
2023-09-05 00:22:55 +02:00
|
|
|
extern void SerialReceive(char c);
|
|
|
|
extern void SerialReset(void);
|
2023-08-06 23:11:24 +02:00
|
|
|
#endif // BJ-KEYER_H_INCLUDED
|