aboutsummaryrefslogtreecommitdiffstats
path: root/util/dib3000-watch/dib3000-watch.h
blob: 6d50521263a34c3bd846825731bd1399c9b694d0 (plain)
1
2
3
4
5
6
generated by cgit v1.2.3 (git 2.25.1) at 2024-11-01 04:32:52 +0000
 


* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#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