DesktopFirmwareUsbManager

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun deviceDetachFlow(): Flow<Unit>
Link copied to clipboard
open suspend override fun ensureSerialPermission(waitMillis: Long): Boolean

Desktop serial access has no permission model; there is nothing to preflight.

Link copied to clipboard
open suspend override fun serialPortKeys(): Set<String>

Desktop has no UF2 maintenance flow — there is no Storage Access Framework to vet a volume with, so isRemovableDestination refuses before anything reaches here.

Link copied to clipboard
open suspend override fun unblockCdcPort(excluding: Set<String>, waitMillis: Long, holdMillis: Long): Boolean

Opens the port that appeared since excluding was captured and holds DTR asserted, so firmware waiting on a host will run.