ReactOS  0.4.15-dev-4857-g47842d7
CBDADigitalDemodulator Class Reference
Inheritance diagram for CBDADigitalDemodulator:
Collaboration diagram for CBDADigitalDemodulator:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE put_ModulationType (ModulationType *pModulationType)
 
HRESULT STDMETHODCALLTYPE get_ModulationType (ModulationType *pModulationType)
 
HRESULT STDMETHODCALLTYPE put_InnerFECMethod (FECMethod *pFECMethod)
 
HRESULT STDMETHODCALLTYPE get_InnerFECMethod (FECMethod *pFECMethod)
 
HRESULT STDMETHODCALLTYPE put_InnerFECRate (BinaryConvolutionCodeRate *pFECRate)
 
HRESULT STDMETHODCALLTYPE get_InnerFECRate (BinaryConvolutionCodeRate *pFECRate)
 
HRESULT STDMETHODCALLTYPE put_OuterFECMethod (FECMethod *pFECMethod)
 
HRESULT STDMETHODCALLTYPE get_OuterFECMethod (FECMethod *pFECMethod)
 
HRESULT STDMETHODCALLTYPE put_OuterFECRate (BinaryConvolutionCodeRate *pFECRate)
 
HRESULT STDMETHODCALLTYPE get_OuterFECRate (BinaryConvolutionCodeRate *pFECRate)
 
HRESULT STDMETHODCALLTYPE put_SymbolRate (ULONG *pSymbolRate)
 
HRESULT STDMETHODCALLTYPE get_SymbolRate (ULONG *pSymbolRate)
 
HRESULT STDMETHODCALLTYPE put_SpectralInversion (SpectralInversion *pSpectralInversion)
 
HRESULT STDMETHODCALLTYPE get_SpectralInversion (SpectralInversion *pSpectralInversion)
 
 CBDADigitalDemodulator (IKsPropertySet *pProperty, ULONG NodeId)
 
 ~CBDADigitalDemodulator ()
 

Protected Attributes

LONG m_Ref
 
IKsPropertySetm_pProperty
 
ULONG m_NodeId
 

Detailed Description

Definition at line 17 of file digitaldemo.cpp.

Constructor & Destructor Documentation

◆ CBDADigitalDemodulator()

CBDADigitalDemodulator::CBDADigitalDemodulator ( IKsPropertySet pProperty,
ULONG  NodeId 
)
inline

Definition at line 53 of file digitaldemo.cpp.

53 : m_Ref(0), m_pProperty(pProperty), m_NodeId(NodeId){};
_Must_inspect_result_ _In_ KSP_BDA_NODE_PIN * pProperty
Definition: bdasup.h:156
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58

◆ ~CBDADigitalDemodulator()

CBDADigitalDemodulator::~CBDADigitalDemodulator ( )
inline

Definition at line 54 of file digitaldemo.cpp.

54 {};

Member Function Documentation

◆ get_InnerFECMethod()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_InnerFECMethod ( FECMethod pFECMethod)

Definition at line 154 of file digitaldemo.cpp.

155 {
156  return E_NOINTERFACE;
157 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_InnerFECRate()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_InnerFECRate ( BinaryConvolutionCodeRate pFECRate)

Definition at line 184 of file digitaldemo.cpp.

185 {
186  return E_NOINTERFACE;
187 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_ModulationType()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_ModulationType ( ModulationType pModulationType)

Definition at line 123 of file digitaldemo.cpp.

124 {
125  return E_NOINTERFACE;
126 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_OuterFECMethod()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_OuterFECMethod ( FECMethod pFECMethod)

Definition at line 214 of file digitaldemo.cpp.

215 {
216  return E_NOINTERFACE;
217 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_OuterFECRate()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_OuterFECRate ( BinaryConvolutionCodeRate pFECRate)

Definition at line 244 of file digitaldemo.cpp.

245 {
246  return E_NOINTERFACE;
247 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_SpectralInversion()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_SpectralInversion ( SpectralInversion pSpectralInversion)

Definition at line 304 of file digitaldemo.cpp.

305 {
306  return E_NOINTERFACE;
307 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_SymbolRate()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::get_SymbolRate ( ULONG pSymbolRate)

Definition at line 274 of file digitaldemo.cpp.

275 {
276  return E_NOINTERFACE;
277 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ put_InnerFECMethod()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_InnerFECMethod ( FECMethod pFECMethod)

Definition at line 130 of file digitaldemo.cpp.

131 {
132  KSP_NODE Node;
133  HRESULT hr;
134 
135  // setup request
136  Node.NodeId = m_NodeId;
137  Node.Reserved = 0;
138 
139  // perform request
141 
142 
143 #ifdef BDAPLGIN_TRACE
144  WCHAR Buffer[100];
145  swprintf(Buffer, L"CBDADigitalDemodulator::put_InnerFECMethod: pFECMethod %lu hr %lx\n", *pFECMethod, hr);
147 #endif
148 
149  return hr;
150 }
FECMethod
Definition: bdatypes.h:253
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
Definition: dlist.c:348

◆ put_InnerFECRate()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_InnerFECRate ( BinaryConvolutionCodeRate pFECRate)

Definition at line 161 of file digitaldemo.cpp.

162 {
163  KSP_NODE Node;
164  HRESULT hr;
165 
166  // setup request
167  Node.NodeId = m_NodeId;
168  Node.Reserved = 0;
169 
170  // perform request
172 
173 #ifdef BDAPLGIN_TRACE
174  WCHAR Buffer[100];
175  swprintf(Buffer, L"CBDADigitalDemodulator::put_InnerFECRate: pFECRate %lu hr %lx\n", *pFECRate, hr);
177 #endif
178 
179  return hr;
180 }
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
BinaryConvolutionCodeRate
Definition: bdatypes.h:230
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
Definition: dlist.c:348

◆ put_ModulationType()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_ModulationType ( ModulationType pModulationType)

Definition at line 99 of file digitaldemo.cpp.

100 {
101  KSP_NODE Node;
102  HRESULT hr;
103 
104  // setup request
105  Node.NodeId = m_NodeId;
106  Node.Reserved = 0;
107 
108  // perform request
110 
111 
112 #ifdef BDAPLGIN_TRACE
113  WCHAR Buffer[100];
114  swprintf(Buffer, L"CBDADigitalDemodulator::put_ModulationType: pModulationType %lu hr %lx\n", *pModulationType, hr);
116 #endif
117 
118  return hr;
119 }
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
ModulationType
Definition: bdatypes.h:261
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
Definition: dlist.c:348

◆ put_OuterFECMethod()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_OuterFECMethod ( FECMethod pFECMethod)

Definition at line 191 of file digitaldemo.cpp.

192 {
193  KSP_NODE Node;
194  HRESULT hr;
195 
196  // setup request
197  Node.NodeId = m_NodeId;
198  Node.Reserved = 0;
199 
200  // perform request
202 
203 #ifdef BDAPLGIN_TRACE
204  WCHAR Buffer[100];
205  swprintf(Buffer, L"CBDADigitalDemodulator::put_OuterFECMethod: pFECMethod %lu hr %lx\n", *pFECMethod, hr);
207 #endif
208 
209  return hr;
210 }
FECMethod
Definition: bdatypes.h:253
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
Definition: dlist.c:348

◆ put_OuterFECRate()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_OuterFECRate ( BinaryConvolutionCodeRate pFECRate)

Definition at line 221 of file digitaldemo.cpp.

222 {
223  KSP_NODE Node;
224  HRESULT hr;
225 
226  // setup request
227  Node.NodeId = m_NodeId;
228  Node.Reserved = 0;
229 
230  // perform request
232 
233 #ifdef BDAPLGIN_TRACE
234  WCHAR Buffer[100];
235  swprintf(Buffer, L"CBDADigitalDemodulator::put_OuterFECRate: pFECRate %lu hr %lx\n", *pFECRate, hr);
237 #endif
238 
239  return hr;
240 }
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
BinaryConvolutionCodeRate
Definition: bdatypes.h:230
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
Definition: dlist.c:348

◆ put_SpectralInversion()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_SpectralInversion ( SpectralInversion pSpectralInversion)

Definition at line 281 of file digitaldemo.cpp.

282 {
283  KSP_NODE Node;
284  HRESULT hr;
285 
286  // setup request
287  Node.NodeId = m_NodeId;
288  Node.Reserved = 0;
289 
290  // perform request
292 
293 #ifdef BDAPLGIN_TRACE
294  WCHAR Buffer[100];
295  swprintf(Buffer, L"CBDADigitalDemodulator::put_SpectralInversion: pSpectralInversion %lu hr %lx\n", *pSpectralInversion, hr);
297 #endif
298 
299  return hr;
300 }
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
SpectralInversion
Definition: bdatypes.h:244
Definition: dlist.c:348

◆ put_SymbolRate()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::put_SymbolRate ( ULONG pSymbolRate)

Definition at line 251 of file digitaldemo.cpp.

252 {
253  KSP_NODE Node;
254  HRESULT hr;
255 
256  // setup request
257  Node.NodeId = m_NodeId;
258  Node.Reserved = 0;
259 
260  // perform request
261  hr = m_pProperty->Set(KSPROPSETID_BdaDigitalDemodulator, KSPROPERTY_BDA_SYMBOL_RATE, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), pSymbolRate, sizeof(ULONG));
262 
263 #ifdef BDAPLGIN_TRACE
264  WCHAR Buffer[100];
265  swprintf(Buffer, L"CBDADigitalDemodulator::put_SymbolRate: pSymbolRate %lu hr %lx\n", *pSymbolRate, hr);
267 #endif
268 
269  return hr;
270 }
HRESULT hr
Definition: shlfolder.c:183
const GUID KSPROPSETID_BdaDigitalDemodulator
Definition: digitaldemo.cpp:14
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
IKsPropertySet * m_pProperty
Definition: digitaldemo.cpp:58
int _cdecl swprintf(const WCHAR *,...)
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ QueryInterface()

HRESULT STDMETHODCALLTYPE CBDADigitalDemodulator::QueryInterface ( REFIID  InterfaceId,
PVOID Interface 
)

Definition at line 64 of file digitaldemo.cpp.

67 {
68  *Output = NULL;
69 
70  if (IsEqualGUID(refiid, IID_IUnknown))
71  {
72  *Output = PVOID(this);
73  reinterpret_cast<IUnknown*>(*Output)->AddRef();
74  return NOERROR;
75  }
76 
78  {
79  *Output = (IBDA_DigitalDemodulator*)(this);
80  reinterpret_cast<IBDA_DigitalDemodulator*>(*Output)->AddRef();
81  return NOERROR;
82  }
83 
84 #ifdef BDAPLGIN_TRACE
87  StringFromCLSID(refiid, &lpstr);
88  swprintf(Buffer, L"CBDADigitalDemodulator::QueryInterface: NoInterface for %s", lpstr);
91 DebugBreak();
92 #endif
93 
94  return E_NOINTERFACE;
95 }
#define E_NOINTERFACE
Definition: winerror.h:2364
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
#define NOERROR
Definition: winerror.h:2354
static LPOLESTR
Definition: stg_prop.c:27
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define L(x)
Definition: ntvdm.h:50
void WINAPI DebugBreak(void)
Definition: bufpool.h:45
void * PVOID
Definition: retypes.h:9
const GUID IID_IBDA_DigitalDemodulator
Definition: digitaldemo.cpp:13
__wchar_t WCHAR
Definition: xmlstorage.h:180
const GUID IID_IUnknown
#define MAX_PATH
Definition: compat.h:34
Definition: arc.h:85
int _cdecl swprintf(const WCHAR *,...)
#define NULL
Definition: types.h:112
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static LPCSTR lpstr
Definition: font.c:51
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

◆ STDMETHODIMP_() [1/2]

CBDADigitalDemodulator::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file digitaldemo.cpp.

23  {
25  return m_Ref;
26  }
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CBDADigitalDemodulator::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file digitaldemo.cpp.

28  {
30  if (!m_Ref)
31  {
32  delete this;
33  return 0;
34  }
35  return m_Ref;
36  }
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_NodeId

ULONG CBDADigitalDemodulator::m_NodeId
protected

◆ m_pProperty

IKsPropertySet* CBDADigitalDemodulator::m_pProperty
protected

◆ m_Ref

LONG CBDADigitalDemodulator::m_Ref
protected

Definition at line 54 of file digitaldemo.cpp.

Referenced by STDMETHODIMP_().


The documentation for this class was generated from the following file: