1
0
mirror of https://github.com/JvanKatwijk/dab-cmdline synced 2025-10-06 08:02:52 +02:00
Files
SDR-DAB_dab-cmdline/library/includes/backend/msc-handler.h

94 lines
2.4 KiB
C
Raw Normal View History

2017-02-01 19:54:22 +01:00
#
/*
2017-02-24 22:29:06 +01:00
* Copyright (C) 2013 .. 2017
2017-02-01 19:54:22 +01:00
* Jan van Katwijk (J.vanKatwijk@gmail.com)
* Lazy Chair Programming
*
* This file is part of the DAB-library
* DAB-library is free software; you can redistribute it and/or modify
2017-02-01 19:54:22 +01:00
* 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.
*
* DAB-library is distributed in the hope that it will be useful,
2017-02-01 19:54:22 +01:00
* 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 DAB-library-J; if not, write to the Free Software
2017-02-01 19:54:22 +01:00
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#
/*
* MSC data
*/
#
#ifndef __MSC_HANDLER__
#define __MSC_HANDLER__
2017-02-01 19:54:22 +01:00
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <mutex>
#include <condition_variable>
#include "dab-constants.h"
#include "dab-api.h"
2017-05-19 15:20:19 +02:00
#include "dab-params.h"
2017-02-01 19:54:22 +01:00
class dabVirtual;
using namespace std;
class mscHandler {
public:
2017-05-19 15:20:19 +02:00
mscHandler (uint8_t,
audioOut_t,
dataOut_t,
programQuality_t,
void *);
2017-02-01 19:54:22 +01:00
~mscHandler (void);
void process_mscBlock (int16_t *, int16_t);
void set_audioChannel (audiodata *);
2017-05-19 15:20:19 +02:00
void set_dataChannel (packetdata *);
2017-02-01 19:54:22 +01:00
void stopProcessing (void);
void stopHandler (void);
private:
2017-05-19 15:20:19 +02:00
audioOut_t soundOut;
dataOut_t dataOut;
programQuality_t programQuality;
void *userData;
dabParams params;
2017-02-01 19:54:22 +01:00
bool audioService;
std::mutex mutexer;
dabVirtual *dabHandler;
int16_t *cifVector;
int16_t cifCount;
int16_t blkCount;
bool work_to_be_done;
bool newChannel;
int16_t new_packetAddress;
2017-05-19 15:20:19 +02:00
int16_t new_appType;
2017-02-01 19:54:22 +01:00
int16_t new_ASCTy;
int16_t new_DSCTy;
int16_t new_startAddr;
int16_t new_Length;
2017-02-18 13:46:38 +01:00
bool new_shortForm;
2017-02-01 19:54:22 +01:00
int16_t new_protLevel;
uint8_t new_DGflag;
int16_t new_bitRate;
int16_t new_language;
int16_t new_type;
int16_t new_FEC_scheme;
int16_t startAddr;
int16_t Length;
int8_t dabModus;
int8_t new_dabModus;
int16_t BitsperBlock;
int16_t numberofblocksperCIF;
int16_t blockCount;
};
#endif