zapit/include/zapit/types.h: add CREATE_FREQ_ID

Origin commit data
------------------
Commit: 67ae1262ba
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-13 (Fri, 13 Apr 2012)
This commit is contained in:
[CST] Focus
2012-04-13 16:45:51 +04:00
parent e6b8dc72f5
commit ece936de89

View File

@@ -72,5 +72,6 @@ typedef uint64_t transponder_id_t;
#define GET_SATELLITEPOSITION_FROM_TRANSPONDER_ID(transponder_id) ((t_satellite_position )(transponder_id >> 32))
#define GET_SAT_FROM_TPID(transponder_id) ((t_satellite_position )(transponder_id >> 32) & 0xFFFF)
#define GET_FREQ_FROM_TPID(transponder_id) ((freq_id_t)(transponder_id >> 48))
#define CREATE_FREQ_ID(frequency, cable) (freq_id_t)(cable ? frequency/100 : frequency/1000)
#endif /* __zapit__types_h__ */