Hinoko.FwIsoResourceOnce¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Hinoko.FwIsoResourceOnce(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object to initiate requests and listen events of isochronous resource allocation/deallocation by one shot. The [class`FwIsoResourceOnce`] is an object to initiate requests and listen events of isochronous resource allocation/deallocation by file descriptor owned internally. The allocated resource is left even if this object is destroyed, thus application is responsible for deallocation.
- classmethod new()¶
- Returns:
A [class`FwIsoResourceOnce`].
- Return type:
Allocate and return an instance of [class`FwIsoResourceOnce`].
New in version 0.7.
- deallocate(channel, bandwidth)¶
- Parameters:
- Raises:
- Returns:
True
if the overall operation finishes successfully, otherwiseFalse
.- Return type:
Initiate deallocation of isochronous resource without any wait. When the deallocation finishes, [signal`FwIsoResource`:py:func:::deallocated<Hinoko.FwIsoResourceOnce.signals.deallocated>] signal is emit to notify the result, channel, and bandwidth.
New in version 1.0.
- deallocate_wait(channel, bandwidth, timeout_ms)¶
- Parameters:
- Raises:
- Returns:
True
if the overall operation finishes successfully, otherwiseFalse
.- Return type:
Initiate deallocation of isochronous resource and wait for [signal`FwIsoResource`:py:func:::deallocated<Hinoko.FwIsoResourceOnce.signals.deallocated>] signal.
New in version 1.0.