ATSC3  24.10.0
atsc_plf_frontend_hwcontrol.h
Go to the documentation of this file.
1 #ifndef ATSC_PLF_FRONTEND_HWCONTROL_H_
2 #define ATSC_PLF_FRONTEND_HWCONTROL_H_
3 
4 #include <stdbool.h>
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include <string.h>
8 
9 #include "atsc_basetype.h"
10 
17 #define FRONTEND_MODE_ATSC_10 0
18 
22 #define FRONTEND_MODE_ATSC_30 1
23 
27 #define FRONTEND_MAX_DEVICES 2
28 
32 typedef void(*DataCallback)(void *pParentInst,int32_t packetType,
33  int32_t plpID,uint8_t *pData,
34  int32_t len, uint32_t iHdrLen);
35 
36 
41 class CFeHwCtrl
42 {
43 
44 public:
51  CFeHwCtrl(int iDevId);
52 
59  ~CFeHwCtrl( );
60 
67  int32_t StopInput(void);
68 
75  int32_t StartInput(void);
76 
83  int32_t SetCallback(void *pParent,DataCallback dataCB);
84 
91  int32_t GetStatus(int32_t *pSnr,int32_t *pRssi, int32_t *pEas,int32_t *pLock);
92 
99  int32_t SetProperties(int32_t iMode,unsigned int iFreq,int32_t iBandwidth, int32_t iPlp);
100 
107  int32_t GetProperty(int32_t *pMode,unsigned int *pFreq,int *pBandwidth, int32_t *pPlp);
108 
109 
110 protected:
111  //
112 };
113 
114 #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