deviceprofile

package
v0.16.12 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 8 Imported by: 0 modules, 0 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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HID

func HID(profile string, data []byte) (map[string]any, error)

func HIDReportDescriptor

func HIDReportDescriptor(data []byte) (map[string]any, error)

func I2CEEPROM

func I2CEEPROM(profile string, read bool, data []byte) (map[string]any, error)

func MDB

func MDB(profile string, master bool, command byte, data []byte) (map[string]any, error)

func USBDescriptor

func USBDescriptor(kind byte, data []byte) (map[string]any, error)

Types

type Config

type Config struct {
	Profiles []Rule
	Digest   string `json:"-"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) Match

func (c *Config) Match(iface int, link uint32, bus, address, endpoint int) string

type Rule

type Rule struct {
	Interface              int
	LinkType               uint32
	Bus, Address, Endpoint int
	Profile                string
}

Jump to

Keyboard shortcuts

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