discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Addding enums to custom processing blocks


From: John Wilson
Subject: [Discuss-gnuradio] Addding enums to custom processing blocks
Date: Tue, 24 Sep 2013 14:26:51 +0100

Hi,

What's the process by which enums are added to the Python namespace via SWIG in gnuradio? I mean in gr_firdes, the following are added to the gr.firdes namespace in Python:

  enum win_type {
    WIN_HAMMING = 0,    // max attenuation 53 dB
    WIN_HANN = 1,    // max attenuation 44 dB
    WIN_BLACKMAN = 2,    // max attenuation 74 dB
    WIN_RECTANGULAR = 3,
    WIN_KAISER = 4,     // max attenuation variable with beta, google it
    WIN_BLACKMAN_hARRIS = 5,
  };

But I can't seem to get it to work with my code?

Cheers,

John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]