mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
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:
@@ -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__ */
|
||||
|
Reference in New Issue
Block a user