The WdfAdaptorBase object acts as the base class for all WDF Adaptors; the static members allow for simplified connection of components. See the FX book for more details.
More...
#include <fxobjects.h>
|
IComponentAdaptor * | port1CompAdaptor = nullptr |
| componant or adaptor connected to port 1
|
|
IComponentAdaptor * | port2CompAdaptor = nullptr |
| componant or adaptor connected to port 2
|
|
IComponentAdaptor * | port3CompAdaptor = nullptr |
| componant or adaptor connected to port 3
|
|
IComponentAdaptor * | wdfComponent = nullptr |
| WDF componant connected to port 3 (default operation)
|
|
double | R1 = 0.0 |
| input port resistance
|
|
double | R2 = 0.0 |
| output port resistance
|
|
double | R3 = 0.0 |
| component resistance
|
|
double | in1 = 0.0 |
| stored port 1 input; not used in this implementation but may be required for extended versions
|
|
double | in2 = 0.0 |
| stored port 2 input; not used in this implementation but may be required for extended versions
|
|
double | in3 = 0.0 |
| stored port 3 input; not used in this implementation but may be required for extended versions
|
|
double | out1 = 0.0 |
| stored port 1 output; not used in this implementation but may be required for extended versions
|
|
double | out2 = 0.0 |
| stored port 2 output; it is y(n) for this library
|
|
double | out3 = 0.0 |
| stored port 3 output; not used in this implementation but may be required for extended versions
|
|
double | terminalResistance = 600.0 |
| value of terminal (load) resistance
|
|
bool | openTerminalResistance = false |
| flag for open circuit load
|
|
double | sourceResistance = 600.0 |
| source impedance; OK for this to be set to 0.0 for Rs = 0
|
|
The WdfAdaptorBase object acts as the base class for all WDF Adaptors; the static members allow for simplified connection of components. See the FX book for more details.
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ connectAdaptors()
connect two adapters together upstreamAdaptor --> downstreamAdaptor
◆ getPort1_CompAdaptor()
get adaptor connected at port 1: for extended functionality; not used in WDF ladder filter library
◆ getPort2_CompAdaptor()
get adaptor connected at port 2: for extended functionality; not used in WDF ladder filter library
◆ getPort3_CompAdaptor()
get adaptor connected at port 3: for extended functionality; not used in WDF ladder filter library
◆ initializeAdaptorChain()
virtual void WdfAdaptorBase::initializeAdaptorChain |
( |
| ) |
|
|
inlinevirtual |
initialize the chain of adaptors from upstreamAdaptor --> downstreamAdaptor
Reimplemented from IComponentAdaptor.
◆ reset()
virtual void WdfAdaptorBase::reset |
( |
double |
_sampleRate | ) |
|
|
inlinevirtual |
◆ setComponent()
void WdfAdaptorBase::setComponent |
( |
wdfComponent |
componentType, |
|
|
double |
value1 = 0.0 , |
|
|
double |
value2 = 0.0 |
|
) |
| |
|
inline |
creates a new WDF component and connects it to Port 3
◆ setComponentValue()
virtual void WdfAdaptorBase::setComponentValue |
( |
double |
_componentValue | ) |
|
|
inlinevirtual |
◆ setComponentValue_LC()
virtual void WdfAdaptorBase::setComponentValue_LC |
( |
double |
componentValue_L, |
|
|
double |
componentValue_C |
|
) |
| |
|
inlinevirtual |
◆ setComponentValue_RC()
virtual void WdfAdaptorBase::setComponentValue_RC |
( |
double |
componentValue_R, |
|
|
double |
componentValue_C |
|
) |
| |
|
inlinevirtual |
◆ setComponentValue_RL()
virtual void WdfAdaptorBase::setComponentValue_RL |
( |
double |
componentValue_R, |
|
|
double |
componentValue_L |
|
) |
| |
|
inlinevirtual |
◆ setOpenTerminalResistance()
void WdfAdaptorBase::setOpenTerminalResistance |
( |
bool |
_openTerminalResistance = true | ) |
|
|
inline |
set the termainal (load) resistance as open circuit for terminating adaptors
◆ setPort1_CompAdaptor()
set the component or connected adaptor at port 1; functions is generic and allows extending the functionality of the WDF Library
◆ setPort2_CompAdaptor()
set the component or connected adaptor at port 2; functions is generic and allows extending the functionality of the WDF Library
◆ setPort3_CompAdaptor()
set the component or connected adaptor at port 3; functions is generic and allows extending the functionality of the WDF Library
◆ setSourceResistance()
void WdfAdaptorBase::setSourceResistance |
( |
double |
_sourceResistance | ) |
|
|
inline |
set the input (source) resistance for an input adaptor
◆ setTerminalResistance()
void WdfAdaptorBase::setTerminalResistance |
( |
double |
_terminalResistance | ) |
|
|
inline |
set the termainal (load) resistance for terminating adaptors
The documentation for this class was generated from the following file: