aboutsummaryrefslogtreecommitdiffstats
path: root/util/dib3000-watch/dib3000-watch.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/dib3000-watch/dib3000-watch.h')
-rw-r--r--util/dib3000-watch/dib3000-watch.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/util/dib3000-watch/dib3000-watch.h b/util/dib3000-watch/dib3000-watch.h
new file mode 100644
index 0000000..6d50521
--- /dev/null
+++ b/util/dib3000-watch/dib3000-watch.h
@@ -0,0 +1,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
t .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 */
/* $Id: icon.h,v 1.4 2003/10/05 17:58:50 reinelt Exp $
 *
 * generic icon and heartbeat handling
 *
 * Copyright 2003 Michael Reinelt <reinelt@eunet.at>
 *
 * This file is part of LCD4Linux.
 *
 * LCD4Linux is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * LCD4Linux is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *
 * $Log: icon.h,v $
 * Revision 1.4  2003/10/05 17:58:50  reinelt
 * libtool junk; copyright messages cleaned up
 *
 * Revision 1.3  2003/09/09 05:30:34  reinelt
 * even more icons stuff
 *
 * Revision 1.2  2003/09/01 04:09:35  reinelt
 * icons nearly finished, but MatrixOrbital only
 *
 * Revision 1.1  2003/08/24 04:31:56  reinelt
 * icon.c icon.h added
 *
 *
 */

#ifndef _ICON_H_
#define _ICON_H_

int  icon_init (int rows, int cols, int xres, int yres, int chars, int icons, 
		void(*defchar)(int ascii, char *bitmap));
void icon_clear(void);
int  icon_draw (int num, int seq, int row, int col);
int  icon_peek (int row, int col);

#endif