radioshark

package module
v0.0.0-...-eb07ec2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VENDOR_ID  = 0x077D
	PRODUCT_ID = 0x627A
	ENDPOINT   = 0x5
)

Variables

This section is empty.

Functions

func List

func List() []string

func ParseAMFrequency

func ParseAMFrequency(freq string) (uint16, error)

func ParseFMFrequency

func ParseFMFrequency(freq string) (uint16, error)

func ValidateBlueLEDIntensity

func ValidateBlueLEDIntensity(intensity uint8) error

func ValidateBlueLEDPulse

func ValidateBlueLEDPulse(rate uint8) error

func ValidateModulation

func ValidateModulation(modulation string) error

Types

type RadioShark

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

func Open

func Open(path string) (*RadioShark, error)

func (*RadioShark) Close

func (shark *RadioShark) Close()

func (*RadioShark) SetAMFrequency

func (shark *RadioShark) SetAMFrequency(freq uint16) error

func (*RadioShark) SetBlueLEDIntensity

func (shark *RadioShark) SetBlueLEDIntensity(intensity uint8) error

func (*RadioShark) SetBlueLEDPulse

func (shark *RadioShark) SetBlueLEDPulse(rate uint8) error

func (*RadioShark) SetFMFrequency

func (shark *RadioShark) SetFMFrequency(freq uint16) error

func (*RadioShark) SetFrequency

func (shark *RadioShark) SetFrequency(modulation, freq string) error

func (*RadioShark) SetRedLED

func (shark *RadioShark) SetRedLED(toggle bool) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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