app

package
v0.0.0-...-6437eea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Usb           *gousb.Device
	InterfaceKind devices.InterfaceKind

	Desc *devices.Description
	Ep   exploit.Parameters

	MSEndpoints struct {
		In  *gousb.InEndpoint
		Out *gousb.OutEndpoint
	}
	// contains filtered or unexported fields
}

func New

func New() (*App, error)

TODO: rename to NewDFU.

func NewAny

func NewAny() (*App, error)

func (*App) Close

func (a *App) Close()

func (*App) WaitSwitch

func (a *App) WaitSwitch(ctx context.Context, ik devices.InterfaceKind) error

func (*App) WaitWTF

func (a *App) WaitWTF(ctx context.Context) error

TODO: remove

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL