src/libtsduck/dtv/linux/tsDTVProperties.cpp
const char* ts::DTVProperties::CommandName(uint32_t cmd)
{
    switch (cmd) {
        case DTV_UNDEFINED: return "DTV_UNDEFINED";
        case DTV_TUNE: return "DTV_TUNE";
        case DTV_CLEAR: return "DTV_CLEAR";
        case DTV_FREQUENCY: return "DTV_FREQUENCY";
        case DTV_MODULATION: return "DTV_MODULATION";
        case DTV_BANDWIDTH_HZ: return "DTV_BANDWIDTH_HZ";
        case DTV_INVERSION: return "DTV_INVERSION";
        case DTV_DISEQC_MASTER: return "DTV_DISEQC_MASTER";
        case DTV_SYMBOL_RATE: return "DTV_SYMBOL_RATE";
        case DTV_INNER_FEC: return "DTV_INNER_FEC";
        case DTV_VOLTAGE: return "DTV_VOLTAGE";
        case DTV_TONE: return "DTV_TONE";
        case DTV_PILOT: return "DTV_PILOT";
        case DTV_ROLLOFF: return "DTV_ROLLOFF";
        case DTV_DISEQC_SLAVE_REPLY: return "DTV_DISEQC_SLAVE_REPLY";
        case DTV_FE_CAPABILITY_COUNT: return "DTV_FE_CAPABILITY_COUNT";
        case DTV_FE_CAPABILITY: return "DTV_FE_CAPABILITY";
        case DTV_DELIVERY_SYSTEM: return "DTV_DELIVERY_SYSTEM";
#if TS_DVB_API_VERSION >= 501
        case DTV_ISDBT_PARTIAL_RECEPTION: return "DTV_ISDBT_PARTIAL_RECEPTION";
        case DTV_ISDBT_SOUND_BROADCASTING: return "DTV_ISDBT_SOUND_BROADCASTING";
        case DTV_ISDBT_SB_SUBCHANNEL_ID: return "DTV_ISDBT_SB_SUBCHANNEL_ID";
        case DTV_ISDBT_SB_SEGMENT_IDX: return "DTV_ISDBT_SB_SEGMENT_IDX";
        case DTV_ISDBT_SB_SEGMENT_COUNT: return "DTV_ISDBT_SB_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERA_FEC: return "DTV_ISDBT_LAYERA_FEC";
        case DTV_ISDBT_LAYERA_MODULATION: return "DTV_ISDBT_LAYERA_MODULATION";
        case DTV_ISDBT_LAYERA_SEGMENT_COUNT: return "DTV_ISDBT_LAYERA_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERA_TIME_INTERLEAVING: return "DTV_ISDBT_LAYERA_TIME_INTERLEAVING";
        case DTV_ISDBT_LAYERB_FEC: return "DTV_ISDBT_LAYERB_FEC";
        case DTV_ISDBT_LAYERB_MODULATION: return "DTV_ISDBT_LAYERB_MODULATION";
        case DTV_ISDBT_LAYERB_SEGMENT_COUNT: return "DTV_ISDBT_LAYERB_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERB_TIME_INTERLEAVING: return "DTV_ISDBT_LAYERB_TIME_INTERLEAVING";
        case DTV_ISDBT_LAYERC_FEC: return "DTV_ISDBT_LAYERC_FEC";
        case DTV_ISDBT_LAYERC_MODULATION: return "DTV_ISDBT_LAYERC_MODULATION";
        case DTV_ISDBT_LAYERC_SEGMENT_COUNT: return "DTV_ISDBT_LAYERC_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERC_TIME_INTERLEAVING: return "DTV_ISDBT_LAYERC_TIME_INTERLEAVING";
        case DTV_API_VERSION: return "DTV_API_VERSION";
#endif
        case DTV_CODE_RATE_HP: return "DTV_CODE_RATE_HP";
        case DTV_CODE_RATE_LP: return "DTV_CODE_RATE_LP";
        case DTV_GUARD_INTERVAL: return "DTV_GUARD_INTERVAL";
        case DTV_TRANSMISSION_MODE: return "DTV_TRANSMISSION_MODE";
        case DTV_HIERARCHY: return "DTV_HIERARCHY";
#if defined(DTV_ISDBT_LAYER_ENABLED)
        case DTV_ISDBT_LAYER_ENABLED: return "DTV_ISDBT_LAYER_ENABLED";
#endif
#if defined(DTV_ISDBS_TS_ID)
        case DTV_ISDBS_TS_ID: return "DTV_ISDBS_TS_ID";
#elif defined(DTV_STREAM_ID)
        case DTV_STREAM_ID: return "DTV_STREAM_ID";
#endif
#if defined(DTV_DVBT2_PLP_ID_LEGACY)
        case DTV_DVBT2_PLP_ID_LEGACY: return "DTV_DVBT2_PLP_ID_LEGACY";
#endif
#if defined(DTV_ENUM_DELSYS)
        case DTV_ENUM_DELSYS: return "DTV_ENUM_DELSYS";
#endif
        default: return nullptr;
    }
}
//-----------------------------------------------------------------------------
// Return the name of a command or zero if unknown
//-----------------------------------------------------------------------------
Return the name of a command or zero if unknown
Return the name of a command or zero if unknown
const char* ts::DTVProperties::CommandName(uint32_t cmd)
{
    switch (cmd) {
        case DTV_UNDEFINED: return "DTV_UNDEFINED";
        case DTV_TUNE: return "DTV_TUNE";
        case DTV_CLEAR: return "DTV_CLEAR";
        case DTV_FREQUENCY: return "DTV_FREQUENCY";
        case DTV_MODULATION: return "DTV_MODULATION";
        case DTV_BANDWIDTH_HZ: return "DTV_BANDWIDTH_HZ";
        case DTV_INVERSION: return "DTV_INVERSION";
        case DTV_DISEQC_MASTER: return "DTV_DISEQC_MASTER";
        case DTV_SYMBOL_RATE: return "DTV_SYMBOL_RATE";
        case DTV_INNER_FEC: return "DTV_INNER_FEC";
        case DTV_VOLTAGE: return "DTV_VOLTAGE";
        case DTV_TONE: return "DTV_TONE";
        case DTV_PILOT: return "DTV_PILOT";
        case DTV_ROLLOFF: return "DTV_ROLLOFF";
        case DTV_DISEQC_SLAVE_REPLY: return "DTV_DISEQC_SLAVE_REPLY";
        case DTV_FE_CAPABILITY_COUNT: return "DTV_FE_CAPABILITY_COUNT";
        case DTV_FE_CAPABILITY: return "DTV_FE_CAPABILITY";
        case DTV_DELIVERY_SYSTEM: return "DTV_DELIVERY_SYSTEM";
#if TS_DVB_API_VERSION >= 501
        case DTV_ISDBT_PARTIAL_RECEPTION: return "DTV_ISDBT_PARTIAL_RECEPTION";
        case DTV_ISDBT_SOUND_BROADCASTING: return "DTV_ISDBT_SOUND_BROADCASTING";
        case DTV_ISDBT_SB_SUBCHANNEL_ID: return "DTV_ISDBT_SB_SUBCHANNEL_ID";
        case DTV_ISDBT_SB_SEGMENT_IDX: return "DTV_ISDBT_SB_SEGMENT_IDX";
        case DTV_ISDBT_SB_SEGMENT_COUNT: return "DTV_ISDBT_SB_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERA_FEC: return "DTV_ISDBT_LAYERA_FEC";
        case DTV_ISDBT_LAYERA_MODULATION: return "DTV_ISDBT_LAYERA_MODULATION";
        case DTV_ISDBT_LAYERA_SEGMENT_COUNT: return "DTV_ISDBT_LAYERA_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERA_TIME_INTERLEAVING: return "DTV_ISDBT_LAYERA_TIME_INTERLEAVING";
        case DTV_ISDBT_LAYERB_FEC: return "DTV_ISDBT_LAYERB_FEC";
        case DTV_ISDBT_LAYERB_MODULATION: return "DTV_ISDBT_LAYERB_MODULATION";
        case DTV_ISDBT_LAYERB_SEGMENT_COUNT: return "DTV_ISDBT_LAYERB_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERB_TIME_INTERLEAVING: return "DTV_ISDBT_LAYERB_TIME_INTERLEAVING";
        case DTV_ISDBT_LAYERC_FEC: return "DTV_ISDBT_LAYERC_FEC";
        case DTV_ISDBT_LAYERC_MODULATION: return "DTV_ISDBT_LAYERC_MODULATION";
        case DTV_ISDBT_LAYERC_SEGMENT_COUNT: return "DTV_ISDBT_LAYERC_SEGMENT_COUNT";
        case DTV_ISDBT_LAYERC_TIME_INTERLEAVING: return "DTV_ISDBT_LAYERC_TIME_INTERLEAVING";
        case DTV_API_VERSION: return "DTV_API_VERSION";
#endif
        case DTV_CODE_RATE_HP: return "DTV_CODE_RATE_HP";
        case DTV_CODE_RATE_LP: return "DTV_CODE_RATE_LP";
        case DTV_GUARD_INTERVAL: return "DTV_GUARD_INTERVAL";
        case DTV_TRANSMISSION_MODE: return "DTV_TRANSMISSION_MODE";
        case DTV_HIERARCHY: return "DTV_HIERARCHY";
#if defined(DTV_ISDBT_LAYER_ENABLED)
        case DTV_ISDBT_LAYER_ENABLED: return "DTV_ISDBT_LAYER_ENABLED";
#endif
#if defined(DTV_ISDBS_TS_ID)
        case DTV_ISDBS_TS_ID: return "DTV_ISDBS_TS_ID";
#elif defined(DTV_STREAM_ID)
        case DTV_STREAM_ID: return "DTV_STREAM_ID";
#endif
#if defined(DTV_DVBT2_PLP_ID_LEGACY)
        case DTV_DVBT2_PLP_ID_LEGACY: return "DTV_DVBT2_PLP_ID_LEGACY";
#endif
#if defined(DTV_ENUM_DELSYS)
        case DTV_ENUM_DELSYS: return "DTV_ENUM_DELSYS";
#endif
        default: return nullptr;
    }
}
const char * ts :: DTVProperties :: CommandName ( uint32_t cmd ) { switch ( cmd ) { case DTV_UNDEFINED : return " " ; case DTV_TUNE : return " " ; case DTV_CLEAR : return " " ; case DTV_FREQUENCY : return " " ; case DTV_MODULATION : return " " ; case DTV_BANDWIDTH_HZ : return " " ; case DTV_INVERSION : return " " ; case DTV_DISEQC_MASTER : return " " ; case DTV_SYMBOL_RATE : return " " ; case DTV_INNER_FEC : return " " ; case DTV_VOLTAGE : return " " ; case DTV_TONE : return " " ; case DTV_PILOT : return " " ; case DTV_ROLLOFF : return " " ; case DTV_DISEQC_SLAVE_REPLY : return " " ; case DTV_FE_CAPABILITY_COUNT : return " " ; case DTV_FE_CAPABILITY : return " " ; case DTV_DELIVERY_SYSTEM : return " " ; #if TS_DVB_API_VERSION >= 501 case DTV_ISDBT_PARTIAL_RECEPTION : return " " ; case DTV_ISDBT_SOUND_BROADCASTING : return " " ; case DTV_ISDBT_SB_SUBCHANNEL_ID : return " " ; case DTV_ISDBT_SB_SEGMENT_IDX : return " " ; case DTV_ISDBT_SB_SEGMENT_COUNT : return " " ; case DTV_ISDBT_LAYERA_FEC : return " " ; case DTV_ISDBT_LAYERA_MODULATION : return " " ; case DTV_ISDBT_LAYERA_SEGMENT_COUNT : return " " ; case DTV_ISDBT_LAYERA_TIME_INTERLEAVING : return " " ; case DTV_ISDBT_LAYERB_FEC : return " " ; case DTV_ISDBT_LAYERB_MODULATION : return " " ; case DTV_ISDBT_LAYERB_SEGMENT_COUNT : return " " ; case DTV_ISDBT_LAYERB_TIME_INTERLEAVING : return " " ; case DTV_ISDBT_LAYERC_FEC : return " " ; case DTV_ISDBT_LAYERC_MODULATION : return " " ; case DTV_ISDBT_LAYERC_SEGMENT_COUNT : return " " ; case DTV_ISDBT_LAYERC_TIME_INTERLEAVING : return " " ; case DTV_API_VERSION : return " " ; #endif case DTV_CODE_RATE_HP : return " " ; case DTV_CODE_RATE_LP : return " " ; case DTV_GUARD_INTERVAL : return " " ; case DTV_TRANSMISSION_MODE : return " " ; case DTV_HIERARCHY : return " " ; #if defined ( DTV_ISDBT_LAYER_ENABLED ) case DTV_ISDBT_LAYER_ENABLED : return " " ; #endif #if defined ( DTV_ISDBS_TS_ID ) case DTV_ISDBS_TS_ID : return " " ; #elif defined ( DTV_STREAM_ID ) case DTV_STREAM_ID : return " " ; #endif #if defined ( DTV_DVBT2_PLP_ID_LEGACY ) case DTV_DVBT2_PLP_ID_LEGACY : return " " ; #endif #if defined ( DTV_ENUM_DELSYS ) case DTV_ENUM_DELSYS : return " " ; #endif default : return nullptr ; } }
Return the name of a command or zero if unknown
Return the name of a command or zero if unknown