Documentation
¶
Index ¶
- Constants
- type HackRF
- func (d *HackRF) Disable() error
- func (d *HackRF) EnableRx(callback func([]byte)) error
- func (d *HackRF) EnableTx() error
- func (d *HackRF) Init() error
- func (d *HackRF) SetCenterFrequency(freq uint64) error
- func (d *HackRF) SetLNA(lna uint16) error
- func (d *HackRF) SetSampleRate(sr float64) error
- func (d *HackRF) SetSampleRateManual(freq uint32, div uint32) error
- func (d *HackRF) SetTxVGA(txVga uint16) error
- func (d *HackRF) SetVGA(vga uint16) error
Constants ¶
View Source
const ( VendorRequestSetTransceiverMode uint8 = iota + 1 VendorRequestMax2837Write VendorRequestMax2837Read VendorRequestSi5351CWrite VendorRequestSi5351CRead VendorRequestSampleRateSet VendorRequestBasebandFilterBandwidthSet VendorRequestRFFC5071Write VendorRequestRFFC5071Read VendorRequestSPIFlashErase VendorRequestSPIFlashWrite VendorRequestSPIFlashRead VendorRequestBoardIDRead = iota + 2 VendorRequestVersionStringRead VendorRequestSetFreq VendorRequestAmpEnable VendorRequestBoardPartIDSerialNoRead VendorRequestSetLNAGain VendorRequestSetVGAGain VendorRequestSetTXVGAGain VendorRequestAntennaEnable = iota + 3 VendorRequestSetFreqExplicit VendorRequestUSBWCIDVendorReq VendorRequestInitSweep VendorRequestOperacakeGetBoards VendorRequestOperacakeSetPorts VendorRequestSetHWSyncMode VendorRequestReset VendorRequestOperacakeSetRanges VendorRequestClkoutEnable VendorRequestSPIFlashStatus VendorRequestSPIFlashClearStatus VendorRequestOperacakeGPIOTest VendorRequestCPLDChecksum VendorRequestUIEnable VendorRequestOperacakeSetMode VendorRequestOperacakeGetMode VendorRequestOperacakeSetDwellTimes VendorRequestGetM0State VendorRequestSetTXUnderrunLimit VendorRequestSetRXOverrunLimit VendorRequestGetCLKINStatus VendorRequestBoardRevRead VendorRequestSupportedPlatformRead )
View Source
const ( TranceiverModeOff uint16 = iota TranceiverModeReceive TranceiverModeTransmit TranceiverModeSS TranceiverModeCPLDUpdate TranceiverModeRxSweep )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HackRF ¶
type HackRF struct {
// contains filtered or unexported fields
}
func FindAllDevices ¶
FindAllDevices finds all devices HackRF available for interaction and returns a list of them
func (*HackRF) SetCenterFrequency ¶
SetCenterFrequency sets the central operating frequency
func (*HackRF) SetSampleRate ¶
SetSampleRate setting the sampling frequency with automatic calculation of the synthesizer frequency and the divider coefficient
func (*HackRF) SetSampleRateManual ¶
SetSampleRateManual manually sets the values of the synthesizer frequency and the divider coefficient
Click to show internal directories.
Click to hide internal directories.