dfu

package module
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: LGPL-3.0 Imports: 11 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) WriteMD380IndexedUsers added in v1.0.24

func (dfu *Dfu) WriteMD380IndexedUsers(db *userdb.UsersDB) 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
⌂ 换网址