aboutsummaryrefslogtreecommitdiffstats
path: root/util/dib3000-watch/dib3000-watch.h
blob: 6d50521263a34c3bd846825731bd1399c9b694d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __DIB_DEMOD_WATCH__
#define __DIB_DEMOD_WATCH__

#define err(args...)  fprintf(stderr,"error '%s': ",strerror(errno)); fprintf(stderr,args)
#define verb(args...) fprintf(stderr,args)

typedef enum {
	DIB3000MB = 0,
	DIB3000MC,
	DIB3000P,
} dib_demod_t;


struct dib_demod {
	int fd;
	__u8 i2c_addr;

	dib_demod_t rev;
};

struct dib3000mb_monitoring {
	int agc_lock;
	int carrier_lock;
	int tps_lock;
	int vit_lock;
	int ts_sync_lock;
	int ts_data_lock;

	int invspec;

	int per;
	int unc;

	int fft_pos;

	int nfft;

	double carrier_offset;
	double ber;
	double snr;
	double mer;
	double rf_power;
	double timing_offset_ppm;
};

#endif
AYERA_FEC = AUTO ISDBT_LAYERA_MODULATION = QAM/AUTO ISDBT_LAYERA_SEGMENT_COUNT = 0 ISDBT_LAYERA_TIME_INTERLEAVING = 0 ISDBT_LAYERB_FEC = AUTO ISDBT_LAYERB_MODULATION = QAM/AUTO ISDBT_LAYERB_SEGMENT_COUNT = 0 ISDBT_LAYERB_TIME_INTERLEAVING = 0 ISDBT_LAYERC_FEC = AUTO ISDBT_LAYERC_MODULATION = QAM/AUTO ISDBT_LAYERC_SEGMENT_COUNT = 0 ISDBT_LAYERC_TIME_INTERLEAVING = 0 # Physical channel 19 [TV Tribuna] DELIVERY_SYSTEM = ISDBT BANDWIDTH_HZ = 6000000 FREQUENCY = 503142857 INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO ISDBT_LAYER_ENABLED = 7 ISDBT_SOUND_BROADCASTING = 0 ISDBT_SB_SUBCHANNEL_ID = 0 ISDBT_SB_SEGMENT_IDX = 0 ISDBT_SB_SEGMENT_COUNT = 0 ISDBT_LAYERA_FEC = AUTO ISDBT_LAYERA_MODULATION = QAM/AUTO ISDBT_LAYERA_SEGMENT_COUNT = 0 ISDBT_LAYERA_TIME_INTERLEAVING = 0 ISDBT_LAYERB_FEC = AUTO ISDBT_LAYERB_MODULATION = QAM/AUTO ISDBT_LAYERB_SEGMENT_COUNT = 0 ISDBT_LAYERB_TIME_INTERLEAVING = 0 ISDBT_LAYERC_FEC = AUTO ISDBT_LAYERC_MODULATION = QAM/AUTO ISDBT_LAYERC_SEGMENT_COUNT = 0 ISDBT_LAYERC_TIME_INTERLEAVING = 0 # Physical channel 21 [TV Cultura, Univesp, Multicultura] DELIVERY_SYSTEM = ISDBT BANDWIDTH_HZ = 6000000 FREQUENCY = 515142857 INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO ISDBT_LAYER_ENABLED = 7 ISDBT_SOUND_BROADCASTING = 0 ISDBT_SB_SUBCHANNEL_ID = 0 ISDBT_SB_SEGMENT_IDX = 0 ISDBT_SB_SEGMENT_COUNT = 0 ISDBT_LAYERA_FEC = AUTO ISDBT_LAYERA_MODULATION = QAM/AUTO ISDBT_LAYERA_SEGMENT_COUNT = 0 ISDBT_LAYERA_TIME_INTERLEAVING = 0 ISDBT_LAYERB_FEC = AUTO ISDBT_LAYERB_MODULATION = QAM/AUTO ISDBT_LAYERB_SEGMENT_COUNT = 0 ISDBT_LAYERB_TIME_INTERLEAVING = 0 ISDBT_LAYERC_FEC = AUTO ISDBT_LAYERC_MODULATION = QAM/AUTO ISDBT_LAYERC_SEGMENT_COUNT = 0 ISDBT_LAYERC_TIME_INTERLEAVING = 0 # Physical channel 29 [VTV] DELIVERY_SYSTEM = ISDBT BANDWIDTH_HZ = 6000000 FREQUENCY = 563142857 INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO ISDBT_LAYER_ENABLED = 7 ISDBT_SOUND_BROADCASTING = 0 ISDBT_SB_SUBCHANNEL_ID = 0 ISDBT_SB_SEGMENT_IDX = 0 ISDBT_SB_SEGMENT_COUNT = 0 ISDBT_LAYERA_FEC = AUTO ISDBT_LAYERA_MODULATION = QAM/AUTO ISDBT_LAYERA_SEGMENT_COUNT = 0 ISDBT_LAYERA_TIME_INTERLEAVING = 0 ISDBT_LAYERB_FEC = AUTO ISDBT_LAYERB_MODULATION = QAM/AUTO ISDBT_LAYERB_SEGMENT_COUNT = 0 ISDBT_LAYERB_TIME_INTERLEAVING = 0 ISDBT_LAYERC_FEC = AUTO ISDBT_LAYERC_MODULATION = QAM/AUTO ISDBT_LAYERC_SEGMENT_COUNT = 0 ISDBT_LAYERC_TIME_INTERLEAVING = 0 # Physical channel 45 [VTV] DELIVERY_SYSTEM = ISDBT BANDWIDTH_HZ = 6000000 FREQUENCY = 659142857 INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO INVERSION = AUTO GUARD_INTERVAL = AUTO TRANSMISSION_MODE = AUTO ISDBT_LAYER_ENABLED = 7 ISDBT_SOUND_BROADCASTING = 0 ISDBT_SB_SUBCHANNEL_ID = 0 ISDBT_SB_SEGMENT_IDX = 0 ISDBT_SB_SEGMENT_COUNT = 0 ISDBT_LAYERA_FEC = AUTO ISDBT_LAYERA_MODULATION = QAM/AUTO ISDBT_LAYERA_SEGMENT_COUNT = 0 ISDBT_LAYERA_TIME_INTERLEAVING = 0 ISDBT_LAYERB_FEC = AUTO ISDBT_LAYERB_MODULATION = QAM/AUTO ISDBT_LAYERB_SEGMENT_COUNT = 0 ISDBT_LAYERB_TIME_INTERLEAVING = 0 ISDBT_LAYERC_FEC = AUTO ISDBT_LAYERC_MODULATION = QAM/AUTO ISDBT_LAYERC_SEGMENT_COUNT = 0 ISDBT_LAYERC_TIME_INTERLEAVING = 0