Documentation ¶
Index ¶
- Constants
- func List() []string
- func ParseAMFrequency(freq string) (uint16, error)
- func ParseFMFrequency(freq string) (uint16, error)
- func ValidateBlueLEDIntensity(intensity uint8) error
- func ValidateBlueLEDPulse(rate uint8) error
- func ValidateModulation(modulation string) error
- type RadioShark
- func (shark *RadioShark) Close()
- func (shark *RadioShark) SetAMFrequency(freq uint16) error
- func (shark *RadioShark) SetBlueLEDIntensity(intensity uint8) error
- func (shark *RadioShark) SetBlueLEDPulse(rate uint8) error
- func (shark *RadioShark) SetFMFrequency(freq uint16) error
- func (shark *RadioShark) SetFrequency(modulation, freq string) error
- func (shark *RadioShark) SetRedLED(toggle bool) error
Constants ¶
View Source
const ( VENDOR_ID = 0x077D PRODUCT_ID = 0x627A ENDPOINT = 0x5 )
Variables ¶
This section is empty.
Functions ¶
func ParseAMFrequency ¶
func ParseFMFrequency ¶
func ValidateBlueLEDPulse ¶
func ValidateModulation ¶
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
Click to show internal directories.
Click to hide internal directories.