MythTV
master
|
#include <libmythtv/recorders/firewiredevice.h>
Public Member Functions | |
virtual | ~FirewireDevice ()=default |
virtual bool | OpenPort (void)=0 |
virtual bool | ClosePort (void)=0 |
virtual bool | ResetBus (void) |
virtual void | AddListener (TSDataListener *listener) |
virtual void | RemoveListener (TSDataListener *listener) |
virtual bool | SetPowerState (bool on) |
virtual bool | SetChannel (const QString &panel_model, uint alt_method, uint channel) |
virtual bool | IsPortOpen (void) const =0 |
bool | IsSTBBufferCleared (void) const |
virtual PowerState | GetPowerState (void) |
Static Public Member Functions | |
static bool | IsSTBSupported (const QString &model) |
static QString | GetModelName (uint vendor_id, uint model_id) |
static std::vector< AVCInfo > | GetSTBList (void) |
Protected Member Functions | |
FirewireDevice (uint64_t guid, uint subunitid, uint speed) | |
virtual bool | SendAVCCommand (const std::vector< uint8_t > &cmd, std::vector< uint8_t > &result, int retry_cnt)=0 |
void | SetLastChannel (uint channel) |
void | ProcessPATPacket (const TSPacket &tspacket) |
virtual void | BroadcastToListeners (const unsigned char *data, uint dataSize) |
Protected Attributes | |
uint64_t | m_guid |
uint | m_subunitid |
uint | m_speed |
uint | m_lastChannel {0} |
uint | m_lastCrc {0} |
bool | m_bufferCleared {true} |
uint | m_openPortCnt {0} |
std::vector< TSDataListener * > | m_listeners |
QMutex | m_lock |
Static Protected Attributes | |
static QMap< uint64_t, QString > | s_idToModel |
Vendor ID + Model ID to FirewireDevice STB model string. More... | |
static QMutex | s_staticLock |
Definition at line 23 of file firewiredevice.h.
enum FirewireDevice::PowerState : std::uint8_t |
Enumerator | |
---|---|
kAVCPowerOn | |
kAVCPowerOff | |
kAVCPowerUnknown | |
kAVCPowerQueryFailed |
Definition at line 28 of file firewiredevice.h.
enum FirewireDevice::IEEE1394Command : std::uint8_t |
Definition at line 37 of file firewiredevice.h.
enum FirewireDevice::IEEE1394UnitAddress : std::uint8_t |
Definition at line 57 of file firewiredevice.h.
enum FirewireDevice::IEEE1394Opcode : std::uint8_t |
Definition at line 85 of file firewiredevice.h.
enum FirewireDevice::IEEE1394UnitPowerParam0 : std::uint8_t |
Enumerator | |
---|---|
kAVCPowerStateOn | |
kAVCPowerStateOff | |
kAVCPowerStateQuery |
Definition at line 120 of file firewiredevice.h.
enum FirewireDevice::IEEE1394PanelPassThroughParam0 : std::uint8_t |
Definition at line 127 of file firewiredevice.h.
|
virtualdefault |
Definition at line 31 of file firewiredevice.cpp.
|
pure virtual |
Implemented in LinuxFirewireDevice, and DarwinFirewireDevice.
Referenced by ChannelBase::ChangeInternalChannel(), FirewireChannel::Open(), FirewireRecorder::Open(), and FirewireSignalMonitor::RunTableMonitor().
|
pure virtual |
Implemented in LinuxFirewireDevice, and DarwinFirewireDevice.
Referenced by ChannelBase::ChangeInternalChannel(), FirewireChannel::Close(), FirewireRecorder::Close(), and FirewireSignalMonitor::RunTableMonitor().
|
inlinevirtual |
Reimplemented in LinuxFirewireDevice, and DarwinFirewireDevice.
Definition at line 197 of file firewiredevice.h.
|
virtual |
Reimplemented in LinuxFirewireDevice, and DarwinFirewireDevice.
Definition at line 37 of file firewiredevice.cpp.
Referenced by DarwinFirewireDevice::AddListener(), LinuxFirewireDevice::AddListener(), FirewireSignalMonitor::RunTableMonitor(), and FirewireRecorder::StartStreaming().
|
virtual |
Reimplemented in LinuxFirewireDevice, and DarwinFirewireDevice.
Definition at line 50 of file firewiredevice.cpp.
Referenced by LinuxFirewireDevice::CloseAVStream(), DarwinFirewireDevice::RemoveListener(), LinuxFirewireDevice::RemoveListener(), FirewireSignalMonitor::RunTableMonitor(), and FirewireRecorder::StopStreaming().
Definition at line 66 of file firewiredevice.cpp.
Referenced by FirewireChannel::SetPowerState().
|
virtual |
Definition at line 146 of file firewiredevice.cpp.
Referenced by ChannelBase::ChangeInternalChannel(), and FirewireChannel::Tune().
|
pure virtual |
Implemented in LinuxFirewireDevice, and DarwinFirewireDevice.
|
inline |
Definition at line 209 of file firewiredevice.h.
Referenced by FirewireSignalMonitor::HandlePAT().
|
virtual |
Definition at line 100 of file firewiredevice.cpp.
Referenced by FirewireChannel::GetPowerState().
|
static |
Definition at line 483 of file firewiredevice.cpp.
Referenced by FirewireChannel::Open(), and SetChannel().
Definition at line 350 of file firewiredevice.cpp.
Referenced by getFirewireList(), and FirewireModel::SetGUID().
|
static |
Definition at line 363 of file firewiredevice.cpp.
Referenced by FirewireGUID::FirewireGUID(), and getFirewireList().
|
protectedpure virtual |
Implemented in DarwinFirewireDevice, and LinuxFirewireDevice.
Referenced by GetPowerState(), SetChannel(), and SetPowerState().
|
protected |
Definition at line 320 of file firewiredevice.cpp.
Referenced by SetChannel().
|
protected |
Definition at line 329 of file firewiredevice.cpp.
Referenced by BroadcastToListeners().
|
protectedvirtual |
Reimplemented in DarwinFirewireDevice.
Definition at line 307 of file firewiredevice.cpp.
Referenced by DarwinFirewireDevice::BroadcastToListeners().
|
protected |
Definition at line 230 of file firewiredevice.h.
Referenced by DarwinFirewireDevice::GetInfoPtr(), LinuxFirewireDevice::GetInfoPtr(), and DarwinFirewireDevice::OpenPort().
|
protected |
Definition at line 231 of file firewiredevice.h.
Referenced by SetChannel().
|
protected |
Definition at line 232 of file firewiredevice.h.
Referenced by DarwinFirewireDevice::HandleBusReset(), LinuxFirewireDevice::HandleBusReset(), DarwinFirewireDevice::OpenAVStream(), LinuxFirewireDevice::OpenBroadcastNode(), LinuxFirewireDevice::SetAVStreamSpeed(), and DarwinFirewireDevice::StartStreaming().
|
protected |
Definition at line 233 of file firewiredevice.h.
Referenced by SetLastChannel().
|
protected |
Definition at line 234 of file firewiredevice.h.
Referenced by ProcessPATPacket().
Definition at line 235 of file firewiredevice.h.
Referenced by ProcessPATPacket(), and SetLastChannel().
|
protected |
Definition at line 237 of file firewiredevice.h.
Referenced by DarwinFirewireDevice::ClosePort(), LinuxFirewireDevice::ClosePort(), DarwinFirewireDevice::OpenPort(), and LinuxFirewireDevice::OpenPort().
|
protected |
Definition at line 238 of file firewiredevice.h.
Referenced by DarwinFirewireDevice::AddListener(), LinuxFirewireDevice::AddListener(), AddListener(), BroadcastToListeners(), LinuxFirewireDevice::CloseAVStream(), DarwinFirewireDevice::RemoveListener(), LinuxFirewireDevice::RemoveListener(), and RemoveListener().
|
mutableprotected |
Definition at line 239 of file firewiredevice.h.
Referenced by DarwinFirewireDevice::AddListener(), LinuxFirewireDevice::AddListener(), DarwinFirewireDevice::BroadcastToListeners(), DarwinFirewireDevice::ClosePort(), LinuxFirewireDevice::ClosePort(), GetPowerState(), DarwinFirewireDevice::GetSTBList(), LinuxFirewireDevice::GetSTBListPrivate(), DarwinFirewireDevice::GetSTBListPrivate(), DarwinFirewireDevice::IsPortOpen(), LinuxFirewireDevice::IsPortOpen(), DarwinFirewireDevice::OpenPort(), LinuxFirewireDevice::OpenPort(), DarwinFirewireDevice::RemoveListener(), LinuxFirewireDevice::RemoveListener(), LinuxFirewireDevice::run(), DarwinFirewireDevice::RunController(), SetChannel(), SetPowerState(), DarwinFirewireDevice::StartController(), DarwinFirewireDevice::StopController(), and DarwinFirewireDevice::UpdateDeviceListItem().
|
staticprotected |
Vendor ID + Model ID to FirewireDevice STB model string.
Definition at line 242 of file firewiredevice.h.
Referenced by GetModelName().
|
staticprotected |
Definition at line 243 of file firewiredevice.h.
Referenced by GetModelName().