mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-26 21:07:54 +00:00
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
This commit is contained in:
parent
d908a8b360
commit
6446621f28
14
src/misc.h
14
src/misc.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user