Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

pbwidth_t HAMLIB_API rig_passband_normal ( RIG rig,
rmode_t  mode 

get the normal passband of a mode

rigThe rig handle
modeThe mode to get the passband

Returns the normal (default) passband for the given mode.

the passband in Hz if the operation has been sucessful, or a 0 if an error occured (passband not found, whatever).
See also:
rig_passband_narrow(), rig_passband_wide()

Definition at line 940 of file rig.c.

References rig_state::filters, filter_list::modes, state, and filter_list::width.

Referenced by rig_get_mode(), rig_get_split_mode(), and tt565_set_mode().

      const struct rig_state *rs;
      int i;

      if (!rig)
            return RIG_PASSBAND_NORMAL;   /* huhu! */

      rs = &rig->state;

      for (i=0; i<FLTLSTSIZ && rs->filters[i].modes; i++) {
            if (rs->filters[i].modes & mode) {
                  return rs->filters[i].width;


Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index