TSDuck v3.40-4033
MPEG Transport Stream Toolkit
|
Encapsulation of a HiDes modulator device. More...
#include <tsHiDesDevice.h>
Public Member Functions | |
HiDesDevice () | |
Constructor. | |
virtual | ~HiDesDevice () |
Destructor. | |
bool | close (Report &report=(ts::CerrReport::Instance())) |
Close the device. | |
bool | getGain (int &gain, Report &report=(ts::CerrReport::Instance())) |
Get the output gain in dB. | |
bool | getGainRange (int &minGain, int &maxGain, uint64_t frequency, BandWidth bandwidth, Report &report=(ts::CerrReport::Instance())) |
Get the allowed range of output gain in dB. | |
bool | getInfo (HiDesDeviceInfo &info, Report &report=(ts::CerrReport::Instance())) const |
Get information about the device. | |
bool | isOpen () const |
Check if the HiDes device is open. | |
bool | open (const UString &name, Report &report=(ts::CerrReport::Instance())) |
Open the HiDes device by adapter name or device name. | |
bool | open (int index, Report &report=(ts::CerrReport::Instance())) |
Open the HiDes device by adapter number. | |
bool | send (const TSPacket *data, size_t packet_count, Report &report=(ts::CerrReport::Instance()), AbortInterface *abort=nullptr) |
Send TS packets. | |
bool | setDCCalibration (int dcI, int dcQ, Report &report=(ts::CerrReport::Instance())) |
Set DC calibration values. | |
bool | setGain (int &gain, Report &report=(ts::CerrReport::Instance())) |
Set the output gain in dB. | |
bool | startTransmission (Report &report=(ts::CerrReport::Instance())) |
Start transmission (after having set tuning parameters). | |
bool | stopTransmission (Report &report=(ts::CerrReport::Instance())) |
Stop transmission. | |
bool | tune (const ModulationArgs ¶ms, Report &report=(ts::CerrReport::Instance())) |
Tune the modulator with DVB-T modulation parameters. | |
Static Public Member Functions | |
static bool | GetAllDevices (HiDesDeviceInfoList &devices, Report &report=(ts::CerrReport::Instance())) |
Get all HiDes devices in the system. | |
Static Public Attributes | |
static const int | IT95X_DC_CAL_MAX = 512 |
Maximum DC calibration value. | |
static const int | IT95X_DC_CAL_MIN = -512 |
Minimum DC calibration value. | |
Encapsulation of a HiDes modulator device.
|
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). |