ATSC3  24.10.0
atsc_plf_frontend_hwcontrol_template.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  *
4  * This file is part of a DTVKit Software Component
5  * You are permitted to copy, modify or distribute this file subject to the terms
6  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
7  *
8  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
10  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  *
12  * If you or your organisation is not a member of DTVKit then you have access
13  * to this source code outside of the terms of the licence agreement
14  * and you are expected to delete this and any associated files immediately.
15  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
16  *******************************************************************************/
17 
18 #ifndef ATSC_PLF_FRONTEND_HWCONTROL_H_
19 #define ATSC_PLF_FRONTEND_HWCONTROL_H_
20 
21 #include <stdbool.h>
22 #include <stdlib.h>
23 #include <stdio.h>
24 #include <string.h>
25 
26 #include "atsc_basetype.h"
27 
35 #define FRONTEND_MODE_ATSC_10 0
36 
40 #define FRONTEND_MODE_ATSC_30 1
41 
45 #define FRONTEND_MAX_DEVICES 2
46 
50 typedef void(*DataCallback)(void *pParentInst,int32_t packetType,
51  int32_t plpID,uint8_t *pData,
52  int32_t len, uint32_t iHdrLen);
53 
54 
59 class CFeHwCtrl
60 {
61 
62 public:
69  CFeHwCtrl(int iDevId);
70 
77  ~CFeHwCtrl( );
78 
85  int32_t StopInput(void);
86 
93  int32_t StartInput(void);
94 
101  int32_t SetCallback(void *pParent,DataCallback dataCB);
102 
109  int32_t GetStatus(int32_t *pSnr,int32_t *pRssi, int32_t *pEas,int32_t *pLock);
110 
117  int32_t SetProperties(int32_t iMode,uint32_t iFreq,int32_t iBandwidth, int32_t iPlp);
118 
125  int32_t GetProperty(int32_t *pMode,uint32_t *pFreq,int *pBandwidth, int32_t *pPlp);
126 
127 protected:
128  //
129 };
130 
131 #endif /* ATSC_PLF_FRONTEND_HWCONTROL_H_ */
Definition: atsc_plf_frontend_hwcontrol.h:42
int32_t StopInput(void)
To Stop the demux.
Definition: atsc_plf_frontend_hwcontrol.cpp:124
~CFeHwCtrl()
Stop the demux and close frontend. And free the allocated memory for ALP,Frontend.
Definition: atsc_plf_frontend_hwcontrol.cpp:42
int32_t StartInput(void)
To Start the demux for collecting the data.
Definition: atsc_plf_frontend_hwcontrol.cpp:110