From aaec33e8a7e29aa0badb54b4012b3df3302af1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sun, 25 Feb 2001 23:06:18 +0000 Subject: [PATCH] * added RIG_LEVEL_IS_FLOAT macro to known which levels are of float type, and what are the others of integer type. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@399 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- include/hamlib/rig.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 464697366..debe1d716 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -5,7 +5,7 @@ * will be used for obtaining rig capabilities. * * - * $Id: rig.h,v 1.17 2001-02-14 23:51:44 f4cfe Exp $ + * $Id: rig.h,v 1.18 2001-02-25 23:06:18 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -278,6 +278,11 @@ typedef union value_u value_t; #define RIG_LEVEL_SQLSTAT (1<<30) /* SQL status, arg int (open=1/closed=0). Deprecated, use get_dcd instead */ #define RIG_LEVEL_STRENGTH (1<<31) /* Signal strength, arg int (dB) */ +#define RIG_LEVEL_FLOAT_LIST (RIG_LEVEL_AF|RIG_LEVEL_RF|RIG_LEVEL_SQL|RIG_LEVEL_APF|RIG_LEVEL_NR|RIG_LEVEL_PBT_IN|RIG_LEVEL_PBT_OUT|RIG_LEVEL_RFPOWER|RIG_LEVEL_MICGAIN|RIG_LEVEL_COMP|RIG_LEVEL_BALANCE|RIG_LEVEL_SWR|RIG_LEVEL_ALC) + +#define RIG_LEVEL_IS_FLOAT(l) ((l)&RIG_LEVEL_FLOAT_LIST) + + typedef unsigned long setting_t; /* 32 bits might not be enough.. */ /*