Documentation ¶
Overview ¶
Package nrf24 allows interaction with nRF24LU1+ based dongles and RFStorm firmware. Ref. https://github.com/BastilleResearch/nrf-research-firmware
Index ¶
- Constants
- func ConvertAddress(address string) (error, []byte)
- func LoopChannels(idx *int) int
- func NthChannel(idx int) int
- type Command
- type Dongle
- func (d *Dongle) Close()
- func (d *Dongle) Command(cmd Command, data []byte) (int, error)
- func (d *Dongle) EnableLNA() error
- func (d *Dongle) EnterPromiscMode() error
- func (d *Dongle) EnterPromiscModeFor(prefix []byte) error
- func (d *Dongle) EnterPromiscModeGeneric() error
- func (d *Dongle) EnterPromiscModeGenericDefaultFor(prefix []byte) error
- func (d *Dongle) EnterPromiscModeGenericFor(prefix []byte, rate RfRate, payloadLength int) error
- func (d *Dongle) EnterSnifferMode() error
- func (d *Dongle) EnterSnifferModeFor(address []byte) error
- func (d *Dongle) EnterToneTestMode() error
- func (d *Dongle) GetChannel() (int, error)
- func (d *Dongle) Read() (int, []byte, error)
- func (d *Dongle) ReceivePayload() ([]byte, error)
- func (d *Dongle) SetChannel(ch int) error
- func (d *Dongle) String() string
- func (d *Dongle) TransmitAckPayload(payload []byte) error
- func (d *Dongle) TransmitPayload(payload []byte, timeout int, retransmits int) error
- func (d *Dongle) TransmitPayloadGeneric(payload []byte, address []byte) error
- type RfRate
Constants ¶
View Source
const ( VendorID gousb.ID = 0x1915 ProductID gousb.ID = 0x0102 )
View Source
const ( PacketSize = 64 MinChannel = 1 TopChannel = 83 MaxChannel = 125 )
Variables ¶
This section is empty.
Functions ¶
func ConvertAddress ¶
func LoopChannels ¶
func NthChannel ¶
Types ¶
type Command ¶
type Command byte
const ( CmdTransmitPayload Command = 0x04 CmdEnterSnifferMode Command = 0x05 CmdEnterPromiscMode Command = 0x06 CmdEnterToneTestMode Command = 0x07 CmdTransmitAckPayload Command = 0x08 CmdSetChannel Command = 0x09 CmdGetChannel Command = 0x0A CmdEnableLNAPA Command = 0x0B CmdTransmitPayloadGeneric Command = 0x0C CmdEnterPromiscModeGeneric Command = 0x0D CmdReceivePayload Command = 0x12 )
USB commands
type Dongle ¶
type Dongle struct {
// contains filtered or unexported fields
}
func (*Dongle) EnterPromiscMode ¶
func (*Dongle) EnterPromiscModeFor ¶
func (*Dongle) EnterPromiscModeGeneric ¶
func (*Dongle) EnterPromiscModeGenericDefaultFor ¶
func (*Dongle) EnterPromiscModeGenericFor ¶
func (*Dongle) EnterSnifferMode ¶
func (*Dongle) EnterSnifferModeFor ¶
func (*Dongle) EnterToneTestMode ¶
func (*Dongle) GetChannel ¶
func (*Dongle) ReceivePayload ¶
func (*Dongle) SetChannel ¶
func (*Dongle) TransmitAckPayload ¶
func (*Dongle) TransmitPayload ¶
Click to show internal directories.
Click to hide internal directories.