Ginga  0.13.6
 All Classes Namespaces Functions Variables
frontend_parameter.h
1 #ifndef FRONTEND_PARAMETER
2 #define FRONTEND_PARAMETER
3 #include <linux/dvb/version.h>
4 
5 #include <linux/dvb/frontend.h>
6 
7 #if defined(DVB_API_VERSION) && DVB_API_VERSION>=5
8 #include <unistd.h>
9 
10 typedef unsigned char uint8_t;
11 typedef unsigned short int uint16_t;
12 #ifndef __uint32_t_defined
13 typedef unsigned int uint32_t;
14 # define __uint32_t_defined
15 #endif
16 
17 struct frontend_parameters {
18  fe_delivery_system_t delivery_system;
19  uint32_t frequency;
20  fe_spectral_inversion_t inversion;
21 
22  union {
23  struct dvb_qpsk_parameters qpsk;
24  struct dvb_qam_parameters qam;
25  struct dvb_ofdm_parameters ofdm;
26  struct dvb_vsb_parameters vsb;
27  struct isdbt_parameters
28  {
29  uint32_t bandwidth_hz;
30  fe_transmit_mode_t transmission_mode;
31  fe_guard_interval_t guard_interval;
32  uint8_t isdbt_partial_reception;
33  uint8_t isdbt_sb_mode;
34  uint8_t isdbt_sb_subchannel;
35  uint32_t isdbt_sb_segment_idx;
36  uint32_t isdbt_sb_segment_count;
37  uint8_t isdbt_layer_enabled;
38  struct {
39  uint8_t segment_count;
40  fe_code_rate_t fec;
41  fe_modulation_t modulation;
42  uint8_t interleaving;
43  } layer[3];
44  } isdbt;
45  } u;
46 };
47 #endif
48 
49 #endif