Documentation ¶
Index ¶
- Constants
- type CC1101
- func (c *CC1101) Close()
- func (c *CC1101) FlushRx()
- func (c *CC1101) Init() error
- func (c *CC1101) ReadBurst(address byte, num byte) ([]byte, error)
- func (cc1101 *CC1101) ReadSingleByte(address byte) (byte, error)
- func (c *CC1101) Receive() ([]byte, error)
- func (cc1101 *CC1101) Reset() error
- func (cc1101 *CC1101) SelfTest() error
- func (c *CC1101) Send(packet []byte) error
- func (c *CC1101) SetIdle() error
- func (c *CC1101) SetRx() error
- func (c *CC1101) SetState(state byte) error
- func (cc1101 *CC1101) SetSyncWord(word uint16) error
- func (c *CC1101) SetTx() error
- func (cc1101 *CC1101) Strobe(address byte) (byte, error)
- func (c *CC1101) WriteBurst(address byte, data []byte) error
- func (cc1101 *CC1101) WriteSingleByte(address byte, in byte) error
Constants ¶
View Source
const ( // Read/write flags. WRITE_SINGLE_BYTE = 0x00 WRITE_BURST = 0x40 READ_SINGLE_BYTE = 0x80 READ_BURST = 0xc0 BYTES_IN_RXFIFO = 0x7f RXFIFO = 0x3f TXFIFO = 0x3f OVERFLOW = 0x80 // Bitmask for reading state out of chip status byte. STATE = 0x70 CRC_OK = 0x80 RSSI = 0 LQI = 1 RSSI_OFFSET = 74 // Strobes SRES = 0x30 // Reset SRX = 0x34 // Set receive mode STX = 0x35 // Set transmit mode SIDLE = 0x36 SFRX = 0x3a // Flush RX FIFO buffer SFTX = 0x3b // Flush TX FIFO buffer SNOP = 0x3d // Status Registers PARTNUM = 0xf0 VERSION = 0xf1 RXBYTES = 0x3b // Config Registers IOCFG2 = 0x00 IOCFG1 = 0x01 IOCFG0 = 0x02 FIFOTHR = 0x03 SYNC1 = 0x04 SYNC0 = 0x05 PKTLEN = 0x06 PKTCTRL1 = 0x07 PKTCTRL0 = 0x08 ADDR = 0x09 CHANNR = 0x0a FSCTRL1 = 0x0b FSCTRL0 = 0x0c FREQ2 = 0x0d FREQ1 = 0x0e FREQ0 = 0x0f MDMCFG4 = 0x10 MDMCFG3 = 0x11 MDMCFG2 = 0x12 MDMCFG1 = 0x13 MDMCFG0 = 0x14 DEVIATN = 0x15 MCSM2 = 0x16 MCSM1 = 0x17 MCSM0 = 0x18 FOCCFG = 0x19 BSCFG = 0x1a AGCCTRL2 = 0x1b AGCCTRL1 = 0x1c AGCCTRL0 = 0x1d WOREVT1 = 0x1e WOREVT0 = 0x1f WORCTRL = 0x20 FREND1 = 0x21 FREND0 = 0x22 FSCAL3 = 0x23 FSCAL2 = 0x24 FSCAL1 = 0x25 FSCAL0 = 0x26 RCCTRL1 = 0x27 RCCTRL0 = 0x28 FSTEST = 0x29 PTEST = 0x2a AGCTEST = 0x2b TEST2 = 0x2c TEST1 = 0x2d TEST0 = 0x2e )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CC1101 ¶
type CC1101 struct {
// contains filtered or unexported fields
}
func (*CC1101) SetSyncWord ¶
Directories ¶
Path | Synopsis |
---|---|
Package control is a generated protocol buffer package.
|
Package control is a generated protocol buffer package. |
status
|
|
Click to show internal directories.
Click to hide internal directories.