added Hold_Decode/Unhold_Decode macros to rule receiving

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@195 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.0
Stéphane Fillod, F8CFE 2000-10-08 21:43:41 +00:00
rodzic d908a8b360
commit 6446621f28
1 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
* Provides useful routines for data handling, used by backends
* as well as by the frontend.
*
* $Id: misc.h,v 1.1 2000-10-01 12:25:49 f4cfe Exp $
* $Id: misc.h,v 1.2 2000-10-08 21:43:41 f4cfe Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -28,6 +28,18 @@
#ifndef _MISC_H
#define _MISC_H 1
/*
* Carefull!! These marcos are NOT reentrant!
* ie. they may not be executed atomically,
* thus not ensure mutual exclusion.
* Fix it when making Hamlib reentrant! --SF
*/
#define Hold_Decode(rig) {(rig)->state.hold_decode = 1;}
#define Unhold_Decode(rig) {(rig)->state.hold_decode = 0;}
/*
* Convert char to packed decimal
* eg: 33 (0x21) => 0x33