libvpb 4.2.61
|
Support for cards using the vtcore
driver.
More...
#include <vtcore.h>
Public Member Functions | |
VTCore (VPBREG ®) | |
Constructor. | |
~VTCore () | |
Destructor. | |
void | Reset (unsigned int port) |
Reset port to its default cold-start state. More... | |
void | SetCountry (int port, const Country *country) |
Configure the hardware for country on port of this board. More... | |
void | SetHookState (int port, HookState hookstate) |
Set the hook state of port. More... | |
void | SetFlashTime (int port, uint16_t min, uint16_t max) |
Configure the hook-flash detection window. More... | |
void | PadTxFrame (int port) |
Pad a partial transmit frame for forwarding to the hardware. More... | |
void | WaitForTxEmpty (int port) |
Block until the transmit buffers for port are empty. More... | |
void | SetPSImpedance (int port, int impedance) |
Override the default impedance for ProSLIC ports. More... | |
void | SetVDAAImpedance (int port, int impedance) |
Override the default impedance for VDAA ports. More... | |
float | GetHWPlayGain (unsigned int port) |
float | GetHWRecordGain (unsigned int port) |
void | TapListen (unsigned int port, unsigned int srcboard, unsigned int srcport) |
Create a full duplex tap to port of the audio from srcport on srcboard. More... | |
void | UNListen (unsigned int port) |
Remove a half duplex bridge or full duplex tap from port. More... | |
int | chan_state (int ch) |
Get the current state of a port. | |
VPB_PORT | chan_type (int ch) |
Get the type of a port. | |
HookState | hook_state (int ch) |
Get the hook state of a port. | |
![]() | |
HostDSP (VPBREG ®) | |
Constructor. | |
virtual | ~HostDSP () |
Destructor. | |
Additional Inherited Members | |
![]() | |
HostDSP (bool, VPBREG ®) | |
Bare bones constructor for hardware DSP implementations. | |
![]() | |
VPBREG & | m_reg |
Reference to the VPBREG structure for this HostDSP . | |
Support for cards using the vtcore
driver.
|
virtual |
Reimplemented from HostDSP.
|
virtual |
Reimplemented from HostDSP.
|
virtual |
Pad a partial transmit frame for forwarding to the hardware.
Implements HostDSP.
References HostDSP::m_reg, and VPBREG::txdf.
|
virtual |
Reset port to its default cold-start state.
Implements HostDSP.
References VPBREG::cardnum, VPBREG::country, get_country(), Comm::GetCountryCode(), VPBREG::handles, HostDSP::m_reg, play_reset_hw_gain(), record_reset_hw_gain(), set_country(), UNListen(), vpb_c, and vpb_get_country_data().
|
virtual |
Configure the hardware for country on port of this board.
Implements HostDSP.
References VPBREG::cardnum, VPBREG::cardtypnum, VPBREG::chans, Country::drop_max, Country::drop_min, Country::flash_max, Country::flash_min, Country::lv_offhook, Country::lv_onhook, HostDSP::m_reg, Country::name, VPB_FXO, and VPB_FXS.
Referenced by SetPSImpedance(), and SetVDAAImpedance().
|
virtual |
Configure the hook-flash detection window.
Reimplemented from HostDSP.
References VPBREG::cardnum, VPBREG::cardtypnum, and HostDSP::m_reg.
|
virtual |
Set the hook state of port.
Implements HostDSP.
References VPBREG::cardnum, VPBREG::cardtypnum, VPBREG::chans, HostDSP::m_reg, VPB_FASTOFFHOOK, VPB_OFFHOOK, and VPB_ONHOOK.
|
virtual |
Override the default impedance for ProSLIC ports.
Reimplemented from HostDSP.
References VPBREG::cardtypnum, VPBREG::chans, get_country(), HostDSP::m_reg, and SetCountry().
|
virtual |
Override the default impedance for VDAA ports.
Reimplemented from HostDSP.
References VPBREG::cardtypnum, VPBREG::chans, get_country(), HostDSP::m_reg, and SetCountry().
|
virtual |
Create a full duplex tap to port of the audio from srcport on srcboard.
Reimplemented from HostDSP.
References VPBREG::cardnum, VPBREG::cardtypnum, and HostDSP::m_reg.
|
virtual |
Remove a half duplex bridge or full duplex tap from port.
Reimplemented from HostDSP.
References VPBREG::cardtypnum, and HostDSP::m_reg.
Referenced by Reset().
|
virtual |
Block until the transmit buffers for port are empty.
Implements HostDSP.
References VPBREG::cardtypnum, HostDSP::m_reg, and VPBREG::txdf.