You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB
C

/** @file vt100.h
* @brief VT100 Terminal
* @author Tom, DL7BJ
*/
#ifndef VT100_H_INCLUDED
#define VT100_H_INCLUDED
#include "functions.h"
#define SERMENUE 1
#define SERMSG 2
#define SERMSGMENUE 3
#define SERMSGCHANGE 4
#define SERMSG1 5
#define SERMSG2 6
#define SERMSG3 7
#define SERMSG4 8
#define SERMSG5 9
#define SERMSG0 0
#define SERSETUP 10
void SerialInfo(void);
void SerialAbout(void);
void SerialSetup(void);
void SerialMenue(void);
void SerialMsgOut(void);
void SerialMsgMenue(char c);
// Externals
extern void WriteMsgEEprom(uint8_t idx);
// Stringkonstanten für VT100 Terminals
static const char* const CLRSCR PROGMEM = "\033[2J";
char out[120]; // Ausgabebuffer
char inp[120]; // Eingabebuffer
uint8_t i; // Position Eingabebuffer
uint8_t o; // Position Ausgabebuffer
// Status der seriellen Schnittstelle
struct SerialState
{
uint8_t Ausgabe; // Welches Menue oder Ausgabe gerade aktiv ist
uint8_t Eingabe; // Eingabe Textspeicher
};
struct SerialState bSerialState;
#endif