{
  Copyright (C)
  2026 - Uladzimir Karpenka, EW8BAK

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
}

unit RadioModes;

{$mode objfpc}{$H+}

// Canonical persisted mode indices. Append only: these values are stored in
// settings.json/channels.json and are exposed through CAT and the web API.
interface

const
  MODE_LSB   = 0;
  MODE_USB   = 1;
  MODE_DSB   = 2;
  MODE_CWL   = 3;
  MODE_CWU   = 4;
  MODE_FM    = 5;
  MODE_AM    = 6;
  MODE_SAM   = 7;
  MODE_DIGU  = 8;
  MODE_DIGL  = 9;
  MODE_WFM   = 10;
  MODE_DMR   = 11;
  MODE_FMRAW = 12;

  MODE_MIN   = MODE_LSB;
  MODE_MAX   = MODE_FMRAW;
  MODE_COUNT = MODE_MAX - MODE_MIN + 1;

implementation

end.
