dfu

package module
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: LGPL-3.0 Imports: 11 Imported by: 3

README

Library for using the MD-380 (and other) DMR Radios in DFU mode

This library provides a go API for using the MD-380 (and other DMR radios) in DFU (Device Firmware Update) mode.

Author

Dale Farnsworth

dale@farnsworth.org

IRC: libera.chat channel: #md380, user: dfarnsworth

Documentation

Overview

Package dfu implements reading/writing from/to the md380 radio via usb.

Package dfu implements reading/writing from/to the md380 radio via usb.

Index

Constants

View Source
const (
	MinProgress = 0
	MaxProgress = 1000000
)
View Source
const CmdSleep = -2

Variables

This section is empty.

Functions

This section is empty.

Types

type Dfu

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

func New

func New(progressCallback func(progressCounter int) error) (*Dfu, error)

func (*Dfu) Close

func (dfu *Dfu) Close()

func (*Dfu) ReadCodeplug

func (dfu *Dfu) ReadCodeplug(data []byte) error

func (*Dfu) ReadMD380Users added in v1.0.18

func (dfu *Dfu) ReadMD380Users(writer io.Writer) error

func (*Dfu) ReadSPIFlash

func (dfu *Dfu) ReadSPIFlash(writer io.Writer) error

func (*Dfu) WriteCodeplug

func (dfu *Dfu) WriteCodeplug(data []byte) error

func (*Dfu) WriteFirmware

func (dfu *Dfu) WriteFirmware(iRdr io.Reader) error

func (*Dfu) WriteMD380Users added in v1.0.18

func (dfu *Dfu) WriteMD380Users(db *userdb.UsersDB) error

func (*Dfu) WriteRawMD380Users added in v1.0.21

func (dfu *Dfu) WriteRawMD380Users(rdr io.Reader, size int) error

func (*Dfu) WriteUV380Users

func (dfu *Dfu) WriteUV380Users(db *userdb.UsersDB) error

this function is also used for writing the MD2017 users

Jump to

Keyboard shortcuts

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