kopia lustrzana https://github.com/pabr/leansdr
Cleanup type abbreviations
rodzic
c928aef4c7
commit
ab72b2f5de
|
@ -248,6 +248,15 @@ namespace leansdr {
|
|||
template<typename T>
|
||||
T max(const T &x, const T &y) { return (x<y) ? y : x; }
|
||||
|
||||
// Abreviations for integer types
|
||||
|
||||
typedef unsigned char u8;
|
||||
typedef unsigned short u16;
|
||||
typedef unsigned long u32;
|
||||
typedef signed char s8;
|
||||
typedef signed short s16;
|
||||
typedef signed long s32;
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // LEANSDR_FRAMEWORK_H
|
||||
|
|
|
@ -6,22 +6,19 @@
|
|||
|
||||
namespace leansdr {
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// SDR blocks
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef unsigned char u8;
|
||||
typedef unsigned short u16;
|
||||
typedef unsigned long u32;
|
||||
typedef signed char s8;
|
||||
// Abbreviations for floating-point types
|
||||
|
||||
typedef float f32;
|
||||
|
||||
|
||||
typedef complex<f32> cf32;
|
||||
typedef complex<f32> iqsymbol;
|
||||
typedef complex<u8> cu8;
|
||||
typedef complex<s8> cs8;
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// SDR blocks
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// AUTO-NOTCH FILTER
|
||||
|
||||
// Periodically detects the [nslots] strongest peaks with a FFT,
|
||||
|
|
Ładowanie…
Reference in New Issue