dogtra2300ncp

package
v0.0.0-...-2b0a249 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Freq = 27150000 // 27.15 MHz

Variables

This section is empty.

Functions

func NewIQReader

func NewIQReader(sampleRate int, cmd Cmd, id CollarID, intensity int, duration time.Duration) io.Reader

NewIQReader returns a io.Reader that provides signed 8-bit IQ data for a Dogtra 2300NCP collar command. intensity must be between 0 and 127.

Types

type Cmd

type Cmd string
const ContinuousCmd Cmd = "111100001001001101101101101001001001"
const NickCmd Cmd = "111100001001001101101001001101101001"
const PairingCmd Cmd = "111100001101101101101001001001001001"
const VibrateCmd Cmd = "111100001001001101101101001001101001"

func (Cmd) String

func (c Cmd) String() string

type CollarID

type CollarID string
const CollarID1 CollarID = "101001001001001101001001101001101001"
const CollarID2 CollarID = "101001001001001101001001101001101101"

Jump to

Keyboard shortcuts

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