evc2

package module
v0.0.0-...-114f95b Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 4 Imported by: 0

README

evc2

Documentation

Index

Constants

View Source
const (
	Manufacturer = "ElmorLabs"
	Name         = "EVC 2.0"

	Vid    = gousb.ID(0x0483)
	Pid    = gousb.ID(0x5740)
	PidDFU = gousb.ID(0xDF11)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EVC2

type EVC2 struct {
	// contains filtered or unexported fields
}

func GetEVCs

func GetEVCs() (evcs []*EVC2, err error)

func (*EVC2) Close

func (e *EVC2) Close() (err error)

func (*EVC2) DeviceID

func (e *EVC2) DeviceID() (id uint16)

func (*EVC2) DeviceUID

func (e *EVC2) DeviceUID() (uid STM32UID)

func (*EVC2) FirmwareVersion

func (e *EVC2) FirmwareVersion() (fw uint16)

func (*EVC2) HardwareVersion

func (e *EVC2) HardwareVersion() (hw uint8)

func (*EVC2) IsConnected

func (e *EVC2) IsConnected() (connected bool)

func (*EVC2) IsDFU

func (e *EVC2) IsDFU() (dfu bool)

func (*EVC2) Open

func (e *EVC2) Open() (err error)

func (*EVC2) ProductID

func (e *EVC2) ProductID() (pid gousb.ID)

func (*EVC2) Read

func (e *EVC2) Read(buffer []byte) (n int, err error)

func (*EVC2) SerialNumber

func (e *EVC2) SerialNumber() (sn string)

func (*EVC2) VendorID

func (e *EVC2) VendorID() (vid gousb.ID)

func (*EVC2) WriteCommand

func (e *EVC2) WriteCommand(request byte, value uint16) (err error)

type STM32UID

type STM32UID struct {
	X   uint16
	Y   uint16
	WAF byte
	LOT [7]byte
}

func (STM32UID) String

func (stm STM32UID) String() (str string)

func (*STM32UID) Unpack

func (stm *STM32UID) Unpack(bytes []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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