libdrmconf
0.12.0
A library to program DMR radios.
|
Implements the chirp writer. More...
#include <chirpformat.hh>
Static Public Member Functions | |
static bool | write (QTextStream &stream, Config *config, const ErrorStack &err=ErrorStack()) |
Writes the (FM channels) of the given codeplug as a CHIRP CSV file into the given stream. | |
Static Protected Member Functions | |
static bool | writeHeader (QTextStream &stream, const ErrorStack &err=ErrorStack()) |
Writes the header into the given stream. | |
static bool | writeChannel (QTextStream &stream, int i, FMChannel *channel, const ErrorStack &err=ErrorStack()) |
Writes a channel into the given stream. | |
static bool | encodeFrequency (QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack()) |
Writes frequency related columns to the given stream. | |
static bool | encodeSubTone (QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack()) |
Wirtes sub tone related columns to the given stream. | |
static bool | encodeBandwidth (QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack()) |
Writes the bandwidth column to the given stream. | |
Additional Inherited Members | |
Protected Types inherited from ChirpFormat | |
enum class | Duplex { None , Positive , Negative , Split , Off } |
Possible values for the "duplex" column. More... | |
enum class | Mode { FM , NFM , WFM , AM , DV , DN } |
Possible CHIRP channel modes. More... | |
enum class | ToneMode { None , Tone , TSQL , TSQL_R , DTCS , DTCS_R , Cross } |
Possible modes for transmitting and processing sub tones. More... | |
enum class | Polarity { Normal , Reversed } |
Polarity of DCS codes. More... | |
enum class | CrossMode { NoneTone , NoneDTCS , ToneNone , ToneTone , ToneDTCS , DTCSNone , DTCSTone , DTCSDTCS } |
Generic mode for sub tones. More... | |
Static Protected Attributes inherited from ChirpFormat | |
static const QSet< QString > | _mandatoryHeaders |
Internal set of mandatory headers. More... | |
static const QSet< QString > | _knownHeaders |
Internal used set of known headers. More... | |
static const QHash< QString, Duplex > | _duplexCodes |
Mapping of duplex codes. More... | |
static const QHash< QString, Mode > | _modeCodes |
Mapping of mode codes. More... | |
static const QHash< QString, ToneMode > | _toneModeCodes |
Mapping of tone mode codes. More... | |
static const QHash< QString, CrossMode > | _crossModes |
Mapping of cross mode codes. More... | |
Implements the chirp writer.