EndpointFile class abstract
Base class for FunctionFs endpoint file descriptors.
Manages the lifecycle (open, close, halt) for USB endpoints exposed via the Linux FunctionFs interface.
- Implementers
Constructors
- EndpointFile(String path)
-
Creates an endpoint file manager for
path.
Properties
- fd → int?
-
The file descriptor for this endpoint.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isHalted → bool
-
Whether the endpoint is currently halted (STALL state).
no setter
- isOpen → bool
-
Whether this endpoint is currently open.
no setter
- path → String
-
The path to the endpoint file (e.g., '/dev/usb-ffs/ep1').
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearHalt(
) → void - Clears the halt (STALL) condition on the endpoint.
-
close(
) → Future< void> - Closes the underlying file descriptor.
-
halt(
) → void - Halts (STALLs) the endpoint.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< void> - Opens the endpoint file with appropriate flags.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited