Hinawa.FwNode¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Node ID of node which plays role of bus manager at current generation of bus topology. |
||
r |
The numeric index for 1394 OHCI hardware used for the communication with the node |
||
r |
Current generation of bus topology |
||
r |
Node ID of node which plays role of isochronous resource manager at current generation of bus topology. |
||
r |
Node ID of node which application uses to communicate to node associated to instance of object at current generation of bus topology. In general, it is for 1394 OHCI hardware. |
||
r |
Node ID of node associated to instance of object at current generation of bus topology. This parameter is effective after the association. |
||
r |
Node ID of root node in bus topology at current generation of the bus topology. |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when IEEE 1394 bus is updated. |
|
Emitted when the node is not available anymore in Linux system. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Hinawa.FwNode(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An event listener for node in IEEE 1394 bus. [class`FwNode`] listens to any events for an associated node in IEEE 1394 bus. Additionally, it provides some methods to retrieve fundamental information about the bus.
New in version 1.4.
- classmethod new()¶
- Returns:
an instance of [class`FwNode`].
- Return type:
Instantiate [class`FwNode`] object and return the instance.
New in version 1.4.
- create_source()¶
- Raises:
- Returns:
True
if the overall operation finishes successfully, otherwiseFalse
.- gsrc:
A [struct`GLib`.Source].
- Return type:
(
bool
, gsrc:GLib.Source
)
Create [struct`GLib`.Source] for [struct`GLib`.MainContext] to dispatch events for the node on IEEE 1394 bus.
New in version 4.0.
- get_config_rom()¶
- Raises:
- Returns:
True
if the overall operation finishes successfully, otherwiseFalse
.- image:
The content of configuration ROM.
- Return type:
Get cached content of configuration ROM aligned to big-endian.
New in version 4.0.
- open(path, open_flag)¶
- Parameters:
- Raises:
- Returns:
True
if the overall operation finishes successfully, otherwiseFalse
.- Return type:
Open Linux FireWire character device to operate node in IEEE 1394 bus.
New in version 4.0.
- read_cycle_time(clock_id, cycle_time)¶
- Parameters:
clock_id (
int
) – The numeric ID of clock source for the reference timestamp. One of CLOCK_REALTIME(0), CLOCK_MONOTONIC(1), and CLOCK_MONOTONIC_RAW(4) is available in UAPI of Linux kernel.cycle_time (
Hinawa.CycleTime
) – A [struct`CycleTime`].
- Raises:
- Returns:
True
if the overall operation finishes successfully, otherwiseFalse
.- cycle_time:
A [struct`CycleTime`].
- Return type:
(
bool
, cycle_time:Hinawa.CycleTime
)
Read current value of CYCLE_TIME register in 1394 OHCI hardware dedicated to communicate with the associated node in IEEE 1394 bus.
New in version 4.0.
- do_bus_update() virtual¶
Class closure for the [signal`FwNode`:py:func:::bus-update<Hinawa.FwNode.signals.bus_update>].
New in version 1.4.
- do_disconnected() virtual¶
Class closure for the [signal`FwNode`:py:func:::disconnected<Hinawa.FwNode.signals.disconnected>].
New in version 1.4.
Signal Details¶
- Hinawa.FwNode.signals.bus_update(fw_node)¶
- Signal Name:
bus-update
- Flags:
- Parameters:
fw_node (
Hinawa.FwNode
) – The object which received the signal
Emitted when IEEE 1394 bus is updated. Handlers can read current generation in the bus via [property`FwNode`:py:data::generation<Hinawa.FwNode.props.generation>] property.
New in version 1.4.
- Hinawa.FwNode.signals.disconnected(fw_node)¶
- Signal Name:
disconnected
- Flags:
- Parameters:
fw_node (
Hinawa.FwNode
) – The object which received the signal
Emitted when the node is not available anymore in Linux system. It’s preferable to call [method`GObject`.Object.unref] immediately to release file descriptor.
New in version 1.4.
Property Details¶
- Hinawa.FwNode.props.bus_manager_node_id¶
-
Node ID of node which plays role of bus manager at current generation of bus topology.
New in version 1.4.
- Hinawa.FwNode.props.card_id¶
-
The numeric index for 1394 OHCI hardware used for the communication with the node. The value is stable against bus generation.
New in version 4.0.
- Hinawa.FwNode.props.generation¶
-
Current generation of bus topology.
New in version 1.4.
- Hinawa.FwNode.props.ir_manager_node_id¶
-
Node ID of node which plays role of isochronous resource manager at current generation of bus topology.
New in version 1.4.
- Hinawa.FwNode.props.local_node_id¶
-
Node ID of node which application uses to communicate to node associated to instance of object at current generation of bus topology. In general, it is for 1394 OHCI hardware.
New in version 1.4.
- Hinawa.FwNode.props.node_id¶
-
Node ID of node associated to instance of object at current generation of bus topology. This parameter is effective after the association.
New in version 1.4.