00001
00002
00003
00004
00005
00006
00007 #ifndef DVBTYPES_H
00008 #define DVBTYPES_H
00009
00010
00011 #include <sys/poll.h>
00012 #include <sys/ioctl.h>
00013 #include <sys/param.h>
00014 #include <stdint.h>
00015 #include <unistd.h>
00016
00017
00018 #include <linux/dvb/version.h>
00019 #include <linux/dvb/frontend.h>
00020 #include <linux/dvb/dmx.h>
00021
00022 #if (DVB_API_VERSION != 3 && DVB_API_VERSION != 5)
00023 # error "DVB driver includes with API version 3 not found!"
00024 #endif
00025
00026 #ifndef DVB_API_VERSION_MINOR
00027 # define DVB_API_VERSION_MINOR 0
00028 #endif
00029
00030 #if ((DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR >= 1) || (DVB_API_VERSION > 3))
00031 # define USE_ATSC
00032 #else
00033 #warning DVB API version < 3.1
00034 #warning ATSC will not be supported using the Linux DVB drivers
00035 # define FE_ATSC (FE_OFDM+1)
00036 # define FE_CAN_8VSB 0x200000
00037 # define FE_CAN_16VSB 0x400000
00038 # define VSB_8 (fe_modulation)(QAM_AUTO+1)
00039 # define VSB_16 (fe_modulation)(QAM_AUTO+2)
00040 #endif
00041
00042 #ifdef FE_GET_EXTENDED_INFO
00043 #define dvb_fe_params dvb_frontend_parameters_new
00044 #else
00045 #define dvb_fe_params dvb_frontend_parameters
00046 #endif
00047
00048 class QString;
00049 QString toString(fe_status);
00050
00051 #endif // DVB_TYPES_H