From 2c893dfb32f9981e9cbd9295db4921500543277c Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 17 Apr 2008 15:18:39 +0100 Subject: channel hopping fixes. --- gsmdecode/src/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gsmdecode/src/common.h') diff --git a/gsmdecode/src/common.h b/gsmdecode/src/common.h index 8a3ae2e..61abc5f 100644 --- a/gsmdecode/src/common.h +++ b/gsmdecode/src/common.h @@ -22,6 +22,9 @@ # define DEBUGF(a...) #endif +/* True if bit at position 'pos' in 'data' is set */ +#define BIT(data, pos) ((data) >> (pos)) & 1 + # define HEXDUMPF(data, len, a...) do { \ printf("HEX %s:%d ", __func__, __LINE__); \ printf(a); \ -- cgit v1.2.3