MythTV  master
Public Member Functions | Public Attributes | List of all members
DarwinAVCInfo Class Reference

#include <darwinavcinfo.h>

Inheritance diagram for DarwinAVCInfo:
Inheritance graph
[legend]
Collaboration diagram for DarwinAVCInfo:
Collaboration graph
[legend]

Public Member Functions

 DarwinAVCInfo ()=default
 
void Update (uint64_t _guid, DarwinFirewireDevice *dev, IONotificationPortRef notify_port, CFRunLoopRef &thread_cf_ref, io_object_t obj)
 
bool OpenPort (CFRunLoopRef &thread_cf_ref)
 
bool ClosePort (void)
 
bool OpenAVCInterface (CFRunLoopRef &thread_cf_ref)
 
void CloseAVCInterface (void)
 
bool OpenDeviceInterface (CFRunLoopRef &thread_cf_ref)
 
void CloseDeviceInterface (void)
 
bool SendAVCCommand (const std::vector< uint8_t > &cmd, std::vector< uint8_t > &result, int retry_cnt) override
 
bool GetDeviceNodes (int &local_node, int &remote_node)
 
bool IsAVCInterfaceOpen (void) const
 
bool IsPortOpen (void) const
 
- Public Member Functions inherited from AVCInfo
 AVCInfo ()
 
 AVCInfo (const AVCInfo &o)=default
 
AVCInfooperator= (const AVCInfo &o)
 
virtual ~AVCInfo ()=default
 
bool GetSubunitInfo (void)
 
bool IsSubunitType (int subunit_type) const
 
QString GetSubunitInfoString (void) const
 
QString GetGUIDString (void) const
 

Public Attributes

io_service_t fw_node_ref {0}
 
io_service_t fw_device_ref {0}
 
io_service_t fw_service_ref {0}
 
io_service_t avc_service_ref {0}
 
io_object_t fw_device_notifier_ref {0}
 
IOFireWireAVCLibUnitInterface ** avc_handle {nullptr}
 
IOFireWireLibDeviceRef fw_handle {nullptr}
 
- Public Attributes inherited from AVCInfo
int m_port {-1}
 
int m_node {-1}
 
uint64_t m_guid {0}
 
uint m_specid {0}
 
uint m_vendorid {0}
 
uint m_modelid {0}
 
uint m_firmware_revision {0}
 
QString m_product_name
 
std::array< uint8_t, 32 > m_unit_table {}
 

Detailed Description

Definition at line 25 of file darwinavcinfo.h.

Constructor & Destructor Documentation

◆ DarwinAVCInfo()

DarwinAVCInfo::DarwinAVCInfo ( )
default

Member Function Documentation

◆ Update()

void DarwinAVCInfo::Update ( uint64_t  _guid,
DarwinFirewireDevice dev,
IONotificationPortRef  notify_port,
CFRunLoopRef &  thread_cf_ref,
io_object_t  obj 
)

Definition at line 27 of file darwinavcinfo.cpp.

◆ OpenPort()

bool DarwinAVCInfo::OpenPort ( CFRunLoopRef &  thread_cf_ref)

Definition at line 141 of file darwinavcinfo.cpp.

Referenced by DarwinFirewireDevice::OpenPort().

◆ ClosePort()

bool DarwinAVCInfo::ClosePort ( void  )

Definition at line 158 of file darwinavcinfo.cpp.

Referenced by DarwinFirewireDevice::ClosePort().

◆ OpenAVCInterface()

bool DarwinAVCInfo::OpenAVCInterface ( CFRunLoopRef &  thread_cf_ref)

Definition at line 165 of file darwinavcinfo.cpp.

Referenced by OpenPort(), and Update().

◆ CloseAVCInterface()

void DarwinAVCInfo::CloseAVCInterface ( void  )

Definition at line 225 of file darwinavcinfo.cpp.

Referenced by ClosePort(), OpenPort(), and Update().

◆ OpenDeviceInterface()

bool DarwinAVCInfo::OpenDeviceInterface ( CFRunLoopRef &  thread_cf_ref)

Definition at line 237 of file darwinavcinfo.cpp.

Referenced by OpenPort().

◆ CloseDeviceInterface()

void DarwinAVCInfo::CloseDeviceInterface ( void  )

Definition at line 287 of file darwinavcinfo.cpp.

Referenced by ClosePort().

◆ SendAVCCommand()

bool DarwinAVCInfo::SendAVCCommand ( const std::vector< uint8_t > &  cmd,
std::vector< uint8_t > &  result,
int  retry_cnt 
)
overridevirtual

Reimplemented from AVCInfo.

Definition at line 115 of file darwinavcinfo.cpp.

Referenced by DarwinFirewireDevice::SendAVCCommand().

◆ GetDeviceNodes()

bool DarwinAVCInfo::GetDeviceNodes ( int &  local_node,
int &  remote_node 
)

Definition at line 299 of file darwinavcinfo.cpp.

◆ IsAVCInterfaceOpen()

bool DarwinAVCInfo::IsAVCInterfaceOpen ( void  ) const
inline

Definition at line 50 of file darwinavcinfo.h.

Referenced by OpenAVCInterface(), and Update().

◆ IsPortOpen()

bool DarwinAVCInfo::IsPortOpen ( void  ) const
inline

Definition at line 51 of file darwinavcinfo.h.

Referenced by DarwinFirewireDevice::IsPortOpen(), and OpenPort().

Member Data Documentation

◆ fw_node_ref

io_service_t DarwinAVCInfo::fw_node_ref {0}

Definition at line 54 of file darwinavcinfo.h.

Referenced by Update().

◆ fw_device_ref

io_service_t DarwinAVCInfo::fw_device_ref {0}

Definition at line 55 of file darwinavcinfo.h.

Referenced by OpenDeviceInterface(), and Update().

◆ fw_service_ref

io_service_t DarwinAVCInfo::fw_service_ref {0}

Definition at line 56 of file darwinavcinfo.h.

Referenced by Update().

◆ avc_service_ref

io_service_t DarwinAVCInfo::avc_service_ref {0}

Definition at line 57 of file darwinavcinfo.h.

Referenced by OpenAVCInterface(), and Update().

◆ fw_device_notifier_ref

io_object_t DarwinAVCInfo::fw_device_notifier_ref {0}

Definition at line 59 of file darwinavcinfo.h.

Referenced by Update().

◆ avc_handle

IOFireWireAVCLibUnitInterface** DarwinAVCInfo::avc_handle {nullptr}

◆ fw_handle

IOFireWireLibDeviceRef DarwinAVCInfo::fw_handle {nullptr}

The documentation for this class was generated from the following files: