devices

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptions = []Description{
	{
		VID: 0x05ac,
		PIDs: map[InterfaceKind]gousb.ID{
			DFU:  0x1223,
			WTF:  0x1242,
			Disk: 0x1262,
		},
		UpdaterFamilyID: 26,
		Kind:            Nano3,
	},
	{
		VID: 0x05ac,
		PIDs: map[InterfaceKind]gousb.ID{
			DFU:  0x1225,
			WTF:  0x1243,
			Disk: 0x1263,
		},
		UpdaterFamilyID: 31,
		Kind:            Nano4,
	},
	{
		VID: 0x05ac,
		PIDs: map[InterfaceKind]gousb.ID{
			DFU:  0x1231,
			WTF:  0x1246,
			Disk: 0x1265,
		},
		UpdaterFamilyID: 34,
		Kind:            Nano5,
	},
	{
		VID: 0x05ac,
		PIDs: map[InterfaceKind]gousb.ID{
			DFU:  0x1232,
			WTF:  0x1248,
			Disk: 0x1266,
		},
		UpdaterFamilyID: 36,
		Kind:            Nano6,
	},
	{
		VID: 0x05ac,
		PIDs: map[InterfaceKind]gousb.ID{
			DFU:  0x1234,
			WTF:  0x1249,
			Disk: 0x1267,
		},
		UpdaterFamilyID: 37,
		Kind:            Nano7,
	},
}

Functions

This section is empty.

Types

type Description

type Description struct {
	VID             gousb.ID
	PIDs            map[InterfaceKind]gousb.ID
	UpdaterFamilyID int
	Kind            Kind
}

type InterfaceKind

type InterfaceKind string
const (
	DFU  InterfaceKind = "dfu"
	WTF  InterfaceKind = "wtf"
	Disk InterfaceKind = "diskmode"
)

type Kind

type Kind string
const (
	Nano3 Kind = "n3g"
	Nano4 Kind = "n4g"
	Nano5 Kind = "n5g"
	Nano6 Kind = "n6g"
	Nano7 Kind = "n7g"
)

func (Kind) DFUVersion

func (k Kind) DFUVersion() dfu.ProtoVersion

func (Kind) Description

func (k Kind) Description() Description

func (Kind) SoCCode

func (k Kind) SoCCode() string

func (Kind) String

func (k Kind) String() string

Jump to

Keyboard shortcuts

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