X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=usrp2%2Ffirmware%2Finclude%2Fusrp2_types.h;fp=usrp2%2Ffirmware%2Finclude%2Fusrp2_types.h;h=32cb25c4191e434da1119a78f814ec1aeb7292cc;hb=22a3ed8955a9d40796d58e83993b5f56f117a27a;hp=dd2bcf1edd5edc39a82c5a7104276a80f83b8978;hpb=7dba4b4a3cf9b2f0fab397494d84c948a3bf85d1;p=debian%2Fgnuradio diff --git a/usrp2/firmware/include/usrp2_types.h b/usrp2/firmware/include/usrp2_types.h index dd2bcf1e..32cb25c4 100644 --- a/usrp2/firmware/include/usrp2_types.h +++ b/usrp2/firmware/include/usrp2_types.h @@ -50,6 +50,12 @@ u2_fxpt_freq_round_to_int(u2_fxpt_freq_t fx) return (int)((fx+(1<<(U2_FPF_RP-1)))>>U2_FPF_RP); } +static inline unsigned int +u2_fxpt_freq_round_to_uint(u2_fxpt_freq_t fx) +{ + return (unsigned int)((fx+(1<<(U2_FPF_RP-1)))>>U2_FPF_RP); +} + static inline double u2_fxpt_freq_to_double(u2_fxpt_freq_t fx) {