#ifndef MDEXTERN80_H
#define MDEXTERN80_H

/* Part specific for MD before 8.2 */

typedef struct TCA_System80 {
		 unsigned short CA_Typ;
		 unsigned short ECM;
		 unsigned short EMM;
} TCA_System80;


typedef struct TProgramm80
{
	char              Name[30];
	char              Anbieter[30];
	char              Land[30];
    unsigned long     freq;
    unsigned char     Typ;
	unsigned char     volt;              
	unsigned char     afc;
	unsigned char     diseqc;            
	unsigned int      srate;         
	unsigned char     qam;               
	unsigned char     fec;   
	unsigned char     norm;
	unsigned short    tp_id;        
	unsigned short    Video_pid;        
	unsigned short    Audio_pid;
    unsigned short    TeleText_pid;          
	unsigned short    PMT_pid;
    unsigned short    PCR_pid;
	unsigned short    ECM_PID;
	unsigned short    SID_pid;
	unsigned short    AC3_pid;
	unsigned char     TVType; 
	unsigned char     ServiceTyp;
    unsigned char     CA_ID;
	unsigned short    Temp_Audio;
	unsigned short    Filteranzahl;
    struct TPIDFilters		  Filters[12];
	unsigned short    CA_Anzahl;
    struct TCA_System80		  CA_System[6];
    char              CA_Land[5];
    unsigned char     Merker;
    unsigned short    Link_TP;
    unsigned short    Link_SID;
    unsigned char     Dynamisch;

    char Extern_Buffer[16];
} TProgramm80;


struct TTPCatio80 {
	int TPCatAnzahl;
    struct TTPCat TPCat[8];
};



#endif