![]() |
TSDuck v3.46-4930
MPEG Transport Stream Toolkit
|
#include <tsHiDesDevice.h>
Static Public Member Functions | |
| static bool | GetAllDevices (HiDesDeviceInfoList &devices, Report &report=(ts::CerrReport::Instance())) |
Static Public Attributes | |
| static constexpr int | IT95X_DC_CAL_MAX = 512 |
| Maximum DC calibration value. | |
| static constexpr int | IT95X_DC_CAL_MIN = -512 |
| Minimum DC calibration value. | |
Encapsulation of a HiDes modulator device.
| ts::HiDesDevice::HiDesDevice | ( | ) |
Constructor.
|
virtual |
Destructor.
|
static |
Get all HiDes devices in the system.
| [out] | devices | Returned list of devices. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::open | ( | int | index, |
| Report & | report = (ts::CerrReport::Instance()) ) |
Open the HiDes device by adapter number.
| [in] | index | Adapter number. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::open | ( | const UString & | name, |
| Report & | report = (ts::CerrReport::Instance()) ) |
Open the HiDes device by adapter name or device name.
| [in] | name | Adapter name or device name. |
| [in,out] | report | Where to report errors. |
|
inline |
Check if the HiDes device is open.
| bool ts::HiDesDevice::getInfo | ( | HiDesDeviceInfo & | info, |
| Report & | report = (ts::CerrReport::Instance()) ) const |
Get information about the device.
| [out] | info | Returned information. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::close | ( | Report & | report = (ts::CerrReport::Instance()) | ) |
Close the device.
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::setGain | ( | int & | gain, |
| Report & | report = (ts::CerrReport::Instance()) ) |
Set the output gain in dB.
| [in,out] | gain | The gain (if positive) or attenuation (if negative) in dB. Upon return, gain contains the actually set value. The range of valid gain values depends on the frequency and the bandwidth. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::getGain | ( | int & | gain, |
| Report & | report = (ts::CerrReport::Instance()) ) |
Get the output gain in dB.
| [out] | gain | The gain (if positive) or attenuation (if negative) in dB. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::getGainRange | ( | int & | minGain, |
| int & | maxGain, | ||
| uint64_t | frequency, | ||
| BandWidth | bandwidth, | ||
| Report & | report = (ts::CerrReport::Instance()) ) |
Get the allowed range of output gain in dB. The range of valid gain values depends on the frequency and the bandwidth.
| [out] | minGain | Minimum allowed gain value in dB. |
| [out] | maxGain | Maximum allowed gain value in dB. |
| [in] | frequency | Target frequency in Hz. |
| [in] | bandwidth | Target bandwidth. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::setDCCalibration | ( | int | dcI, |
| int | dcQ, | ||
| Report & | report = (ts::CerrReport::Instance()) ) |
Set DC calibration values.
| [in] | dcI | DC offset compensation for I (-512 to +512). |
| [in] | dcQ | DC offset compensation for Q (-512 to +512). |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::tune | ( | const ModulationArgs & | params, |
| Report & | report = (ts::CerrReport::Instance()) ) |
Tune the modulator with DVB-T modulation parameters.
| [in] | params | Tuning parameters. |
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::startTransmission | ( | Report & | report = (ts::CerrReport::Instance()) | ) |
Start transmission (after having set tuning parameters).
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::stopTransmission | ( | Report & | report = (ts::CerrReport::Instance()) | ) |
Stop transmission.
| [in,out] | report | Where to report errors. |
| bool ts::HiDesDevice::send | ( | const TSPacket * | data, |
| size_t | packet_count, | ||
| Report & | report = (ts::CerrReport::Instance()), | ||
| AbortInterface * | abort = nullptr ) |
Send TS packets.
| [in] | data | Address of first TS packet to send. |
| [in] | packet_count | Number of contiguous packets to send. |
| [in,out] | report | Where to report errors. |
| [in] | abort | If non-zero, invoked when I/O is interrupted (in case of user-interrupt, return, otherwise retry). |