Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cyrf6936_regs.h File Reference

Register defines for the CYRF6936 2.4GHz radio chip. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CYRF_DIR   (1<<7)
 Bit for enabling writing. More...
 
#define CYRF_RST   (1<<0)
 
#define CYRF_RXF   (1<<1)
 
#define CYRF_FRC_END   (1<<5)
 
#define CYRF_ACK_EN   (1<<7)
 
#define CYRF_IRQ_GPIO   (1<<0)
 
#define CYRF_SPI_3PIN   (1<<1)
 
#define CYRF_PACTL_GPIO   (1<<2)
 
#define CYRF_PACTL_OD   (1<<3)
 
#define CYRF_XOUT_OD   (1<<4)
 
#define CYRF_MISO_OD   (1<<5)
 
#define CYRF_IRQ_POL   (1<<6)
 
#define CYRF_IRQ_OD   (1<<7)
 
#define CYRF_LEN_EN   (1<<5)
 
#define CYRF_SOP_LEN   (1<<6)
 
#define CYRF_SOP_EN   (1<<7)
 
#define CYRF_RX_CODE   (1<<2)
 
#define CYRF_BAD_CRC   (1<<3)
 
#define CYRF_CRC0   (1<<4)
 
#define CYRF_EOP_ERR   (1<<5)
 
#define CYRF_PKT_ERR   (1<<6)
 
#define CYRF_RX_ACK   (1<<7)
 
#define CYRF_TXE_IRQ   (1<<0)
 
#define CYRF_TXC_IRQ   (1<<1)
 
#define CYRF_TXBERR_IRQ   (1<<2)
 
#define CYRF_TXB0_IRQ   (1<<3)
 
#define CYRF_TXB8_IRQ   (1<<4)
 
#define CYRF_TXB15_IRQ   (1<<5)
 
#define CYRF_LV_IRQ   (1<<6)
 
#define CYRF_OS_IRQ   (1<<7)
 
#define CYRF_RXE_IRQ   (1<<0)
 
#define CYRF_RXC_IRQ   (1<<1)
 
#define CYRF_RXBERR_IRQ   (1<<2)
 
#define CYRF_RXB1_IRQ   (1<<3)
 
#define CYRF_RXB8_IRQ   (1<<4)
 
#define CYRF_RXB16_IRQ   (1<<5)
 
#define CYRF_SOPDET_IRQ   (1<<6)
 
#define CYRF_RXOW_IRQ   (1<<7)
 
#define CYRF_TXE_IRQEN   (1<<0)
 
#define CYRF_TXC_IRQEN   (1<<1)
 
#define CYRF_TXBERR_IRQEN   (1<<2)
 
#define CYRF_TXB0_IRQEN   (1<<3)
 
#define CYRF_TXB8_IRQEN   (1<<4)
 
#define CYRF_TXB15_IRQEN   (1<<5)
 
#define CYRF_TX_CLR   (1<<6)
 
#define CYRF_TX_GO   (1<<7)
 
#define CYRF_RXE_IRQEN   (1<<0)
 
#define CYRF_RXC_IRQEN   (1<<1)
 
#define CYRF_RXBERR_IRQEN   (1<<2)
 
#define CYRF_RXB1_IRQEN   (1<<3)
 
#define CYRF_RXB8_IRQEN   (1<<4)
 
#define CYRF_RXB16_IRQEN   (1<<5)
 
#define CYRF_RSVD   (1<<6)
 
#define CYRF_RX_GO   (1<<7)
 
#define CYRF_ACE   (1<<1)
 
#define CYRF_DIS_RXCRC   (1<<2)
 
#define CYRF_DIS_CRC0   (1<<3)
 
#define CYRF_FRC_RXDR   (1<<4)
 
#define CYRF_MAN_RXACK   (1<<5)
 
#define CYRF_RXTX_DLY   (1<<6)
 
#define CYRF_ACK_RX   (1<<7)
 
#define CYRF_TX_INV   (1<<0)
 
#define CYRF_DIS_TXCRC   (1<<2)
 
#define CYRF_OVRD_ACK   (1<<3)
 
#define CYRF_MAN_TXACK   (1<<4)
 
#define CYRF_FRC_PRE   (1<<6)
 
#define CYRF_ACK_TX   (1<<7)
 
#define CYRF_VLD_EN   (1<<0)
 
#define CYRF_RXOW_EN   (1<<1)
 
#define CYRF_FAST_TURN_EN   (1<<3)
 
#define CYRF_HILO   (1<<4)
 
#define CYRF_ATT   (1<<5)
 
#define CYRF_LNA   (1<<6)
 
#define CYRF_AGC_EN   (1<<7)
 
#define CYRF_DATA_CODE_LENGTH   (1<<5)
 

Enumerations

enum  {
  CYRF_CHANNEL = 0x00 , CYRF_TX_LENGTH = 0x01 , CYRF_TX_CTRL = 0x02 , CYRF_TX_CFG = 0x03 ,
  CYRF_TX_IRQ_STATUS = 0x04 , CYRF_RX_CTRL = 0x05 , CYRF_RX_CFG = 0x06 , CYRF_RX_IRQ_STATUS = 0x07 ,
  CYRF_RX_STATUS = 0x08 , CYRF_RX_COUNT = 0x09 , CYRF_RX_LENGTH = 0x0A , CYRF_PWR_CTRL = 0x0B ,
  CYRF_XTAL_CTRL = 0x0C , CYRF_IO_CFG = 0x0D , CYRF_GPIO_CTRL = 0x0E , CYRF_XACT_CFG = 0x0F ,
  CYRF_FRAMING_CFG = 0x10 , CYRF_DATA32_THOLD = 0x11 , CYRF_DATA64_THOLD = 0x12 , CYRF_RSSI = 0x13 ,
  CYRF_EOP_CTRL = 0x14 , CYRF_CRC_SEED_LSB = 0x15 , CYRF_CRC_SEED_MSB = 0x16 , CYRF_TX_CRC_LSB = 0x17 ,
  CYRF_TX_CRC_MSB = 0x18 , CYRF_RX_CRC_LSB = 0x19 , CYRF_RX_CRC_MSB = 0x1A , CYRF_TX_OFFSET_LSB = 0x1B ,
  CYRF_TX_OFFSET_MSB = 0x1C , CYRF_MODE_OVERRIDE = 0x1D , CYRF_RX_OVERRIDE = 0x1E , CYRF_TX_OVERRIDE = 0x1F ,
  CYRF_TX_BUFFER = 0x20 , CYRF_RX_BUFFER = 0x21 , CYRF_SOP_CODE = 0x22 , CYRF_DATA_CODE = 0x23 ,
  CYRF_PREAMBLE = 0x24 , CYRF_MFG_ID = 0x25 , CYRF_XTAL_CFG = 0x26 , CYRF_CLK_OFFSET = 0x27 ,
  CYRF_CLK_EN = 0x28 , CYRF_RX_ABORT = 0x29 , CYRF_AUTO_CAL_TIME = 0x32 , CYRF_AUTO_CAL_OFFSET = 0x35 ,
  CYRF_ANALOG_CTRL = 0x39
}
 
enum  {
  CYRF_MODE_SLEEP = (0x0 << 2) , CYRF_MODE_IDLE = (0x1 << 2) , CYRF_MODE_SYNTH_TX = (0x2 << 2) , CYRF_MODE_SYNTH_RX = (0x3 << 2) ,
  CYRF_MODE_RX = (0x4 << 2)
}
 
enum  { CYRF_RX_DATA_MODE_GFSK = 0x00 , CYRF_RX_DATA_MODE_8DR = 0x01 , CYRF_RX_DATA_MODE_DDR = 0x10 , CYRF_RX_DATA_MODE_NV = 0x11 }
 
enum  {
  CYRF_PA_M35 = 0x0 , CYRF_PA_M30 = 0x1 , CYRF_PA_M24 = 0x2 , CYRF_PA_M18 = 0x3 ,
  CYRF_PA_M13 = 0x4 , CYRF_PA_M5 = 0x5 , CYRF_PA_0 = 0x6 , CYRF_PA_4 = 0x7
}
 
enum  { CYRF_DATA_MODE_GFSK = (0x0 << 3) , CYRF_DATA_MODE_8DR = (0x1 << 3) , CYRF_DATA_MODE_DDR = (0x2 << 3) , CYRF_DATA_MODE_SDR = (0x3 << 3) }
 

Detailed Description

Register defines for the CYRF6936 2.4GHz radio chip.

Definition in file cyrf6936_regs.h.

Macro Definition Documentation

◆ CYRF_ACE

#define CYRF_ACE   (1<<1)

Definition at line 167 of file cyrf6936_regs.h.

◆ CYRF_ACK_EN

#define CYRF_ACK_EN   (1<<7)

Definition at line 95 of file cyrf6936_regs.h.

◆ CYRF_ACK_RX

#define CYRF_ACK_RX   (1<<7)

Definition at line 173 of file cyrf6936_regs.h.

◆ CYRF_ACK_TX

#define CYRF_ACK_TX   (1<<7)

Definition at line 181 of file cyrf6936_regs.h.

◆ CYRF_AGC_EN

#define CYRF_AGC_EN   (1<<7)

Definition at line 190 of file cyrf6936_regs.h.

◆ CYRF_ATT

#define CYRF_ATT   (1<<5)

Definition at line 188 of file cyrf6936_regs.h.

◆ CYRF_BAD_CRC

#define CYRF_BAD_CRC   (1<<3)

Definition at line 120 of file cyrf6936_regs.h.

◆ CYRF_CRC0

#define CYRF_CRC0   (1<<4)

Definition at line 121 of file cyrf6936_regs.h.

◆ CYRF_DATA_CODE_LENGTH

#define CYRF_DATA_CODE_LENGTH   (1<<5)

Definition at line 209 of file cyrf6936_regs.h.

◆ CYRF_DIR

#define CYRF_DIR   (1<<7)

Bit for enabling writing.

Definition at line 78 of file cyrf6936_regs.h.

◆ CYRF_DIS_CRC0

#define CYRF_DIS_CRC0   (1<<3)

Definition at line 169 of file cyrf6936_regs.h.

◆ CYRF_DIS_RXCRC

#define CYRF_DIS_RXCRC   (1<<2)

Definition at line 168 of file cyrf6936_regs.h.

◆ CYRF_DIS_TXCRC

#define CYRF_DIS_TXCRC   (1<<2)

Definition at line 177 of file cyrf6936_regs.h.

◆ CYRF_EOP_ERR

#define CYRF_EOP_ERR   (1<<5)

Definition at line 122 of file cyrf6936_regs.h.

◆ CYRF_FAST_TURN_EN

#define CYRF_FAST_TURN_EN   (1<<3)

Definition at line 186 of file cyrf6936_regs.h.

◆ CYRF_FRC_END

#define CYRF_FRC_END   (1<<5)

Definition at line 94 of file cyrf6936_regs.h.

◆ CYRF_FRC_PRE

#define CYRF_FRC_PRE   (1<<6)

Definition at line 180 of file cyrf6936_regs.h.

◆ CYRF_FRC_RXDR

#define CYRF_FRC_RXDR   (1<<4)

Definition at line 170 of file cyrf6936_regs.h.

◆ CYRF_HILO

#define CYRF_HILO   (1<<4)

Definition at line 187 of file cyrf6936_regs.h.

◆ CYRF_IRQ_GPIO

#define CYRF_IRQ_GPIO   (1<<0)

Definition at line 98 of file cyrf6936_regs.h.

◆ CYRF_IRQ_OD

#define CYRF_IRQ_OD   (1<<7)

Definition at line 105 of file cyrf6936_regs.h.

◆ CYRF_IRQ_POL

#define CYRF_IRQ_POL   (1<<6)

Definition at line 104 of file cyrf6936_regs.h.

◆ CYRF_LEN_EN

#define CYRF_LEN_EN   (1<<5)

Definition at line 108 of file cyrf6936_regs.h.

◆ CYRF_LNA

#define CYRF_LNA   (1<<6)

Definition at line 189 of file cyrf6936_regs.h.

◆ CYRF_LV_IRQ

#define CYRF_LV_IRQ   (1<<6)

Definition at line 133 of file cyrf6936_regs.h.

◆ CYRF_MAN_RXACK

#define CYRF_MAN_RXACK   (1<<5)

Definition at line 171 of file cyrf6936_regs.h.

◆ CYRF_MAN_TXACK

#define CYRF_MAN_TXACK   (1<<4)

Definition at line 179 of file cyrf6936_regs.h.

◆ CYRF_MISO_OD

#define CYRF_MISO_OD   (1<<5)

Definition at line 103 of file cyrf6936_regs.h.

◆ CYRF_OS_IRQ

#define CYRF_OS_IRQ   (1<<7)

Definition at line 134 of file cyrf6936_regs.h.

◆ CYRF_OVRD_ACK

#define CYRF_OVRD_ACK   (1<<3)

Definition at line 178 of file cyrf6936_regs.h.

◆ CYRF_PACTL_GPIO

#define CYRF_PACTL_GPIO   (1<<2)

Definition at line 100 of file cyrf6936_regs.h.

◆ CYRF_PACTL_OD

#define CYRF_PACTL_OD   (1<<3)

Definition at line 101 of file cyrf6936_regs.h.

◆ CYRF_PKT_ERR

#define CYRF_PKT_ERR   (1<<6)

Definition at line 123 of file cyrf6936_regs.h.

◆ CYRF_RST

#define CYRF_RST   (1<<0)

Definition at line 81 of file cyrf6936_regs.h.

◆ CYRF_RSVD

#define CYRF_RSVD   (1<<6)

Definition at line 163 of file cyrf6936_regs.h.

◆ CYRF_RX_ACK

#define CYRF_RX_ACK   (1<<7)

Definition at line 124 of file cyrf6936_regs.h.

◆ CYRF_RX_CODE

#define CYRF_RX_CODE   (1<<2)

Definition at line 119 of file cyrf6936_regs.h.

◆ CYRF_RX_GO

#define CYRF_RX_GO   (1<<7)

Definition at line 164 of file cyrf6936_regs.h.

◆ CYRF_RXB16_IRQ

#define CYRF_RXB16_IRQ   (1<<5)

Definition at line 142 of file cyrf6936_regs.h.

◆ CYRF_RXB16_IRQEN

#define CYRF_RXB16_IRQEN   (1<<5)

Definition at line 162 of file cyrf6936_regs.h.

◆ CYRF_RXB1_IRQ

#define CYRF_RXB1_IRQ   (1<<3)

Definition at line 140 of file cyrf6936_regs.h.

◆ CYRF_RXB1_IRQEN

#define CYRF_RXB1_IRQEN   (1<<3)

Definition at line 160 of file cyrf6936_regs.h.

◆ CYRF_RXB8_IRQ

#define CYRF_RXB8_IRQ   (1<<4)

Definition at line 141 of file cyrf6936_regs.h.

◆ CYRF_RXB8_IRQEN

#define CYRF_RXB8_IRQEN   (1<<4)

Definition at line 161 of file cyrf6936_regs.h.

◆ CYRF_RXBERR_IRQ

#define CYRF_RXBERR_IRQ   (1<<2)

Definition at line 139 of file cyrf6936_regs.h.

◆ CYRF_RXBERR_IRQEN

#define CYRF_RXBERR_IRQEN   (1<<2)

Definition at line 159 of file cyrf6936_regs.h.

◆ CYRF_RXC_IRQ

#define CYRF_RXC_IRQ   (1<<1)

Definition at line 138 of file cyrf6936_regs.h.

◆ CYRF_RXC_IRQEN

#define CYRF_RXC_IRQEN   (1<<1)

Definition at line 158 of file cyrf6936_regs.h.

◆ CYRF_RXE_IRQ

#define CYRF_RXE_IRQ   (1<<0)

Definition at line 137 of file cyrf6936_regs.h.

◆ CYRF_RXE_IRQEN

#define CYRF_RXE_IRQEN   (1<<0)

Definition at line 157 of file cyrf6936_regs.h.

◆ CYRF_RXF

#define CYRF_RXF   (1<<1)

Definition at line 84 of file cyrf6936_regs.h.

◆ CYRF_RXOW_EN

#define CYRF_RXOW_EN   (1<<1)

Definition at line 185 of file cyrf6936_regs.h.

◆ CYRF_RXOW_IRQ

#define CYRF_RXOW_IRQ   (1<<7)

Definition at line 144 of file cyrf6936_regs.h.

◆ CYRF_RXTX_DLY

#define CYRF_RXTX_DLY   (1<<6)

Definition at line 172 of file cyrf6936_regs.h.

◆ CYRF_SOP_EN

#define CYRF_SOP_EN   (1<<7)

Definition at line 110 of file cyrf6936_regs.h.

◆ CYRF_SOP_LEN

#define CYRF_SOP_LEN   (1<<6)

Definition at line 109 of file cyrf6936_regs.h.

◆ CYRF_SOPDET_IRQ

#define CYRF_SOPDET_IRQ   (1<<6)

Definition at line 143 of file cyrf6936_regs.h.

◆ CYRF_SPI_3PIN

#define CYRF_SPI_3PIN   (1<<1)

Definition at line 99 of file cyrf6936_regs.h.

◆ CYRF_TX_CLR

#define CYRF_TX_CLR   (1<<6)

Definition at line 153 of file cyrf6936_regs.h.

◆ CYRF_TX_GO

#define CYRF_TX_GO   (1<<7)

Definition at line 154 of file cyrf6936_regs.h.

◆ CYRF_TX_INV

#define CYRF_TX_INV   (1<<0)

Definition at line 176 of file cyrf6936_regs.h.

◆ CYRF_TXB0_IRQ

#define CYRF_TXB0_IRQ   (1<<3)

Definition at line 130 of file cyrf6936_regs.h.

◆ CYRF_TXB0_IRQEN

#define CYRF_TXB0_IRQEN   (1<<3)

Definition at line 150 of file cyrf6936_regs.h.

◆ CYRF_TXB15_IRQ

#define CYRF_TXB15_IRQ   (1<<5)

Definition at line 132 of file cyrf6936_regs.h.

◆ CYRF_TXB15_IRQEN

#define CYRF_TXB15_IRQEN   (1<<5)

Definition at line 152 of file cyrf6936_regs.h.

◆ CYRF_TXB8_IRQ

#define CYRF_TXB8_IRQ   (1<<4)

Definition at line 131 of file cyrf6936_regs.h.

◆ CYRF_TXB8_IRQEN

#define CYRF_TXB8_IRQEN   (1<<4)

Definition at line 151 of file cyrf6936_regs.h.

◆ CYRF_TXBERR_IRQ

#define CYRF_TXBERR_IRQ   (1<<2)

Definition at line 129 of file cyrf6936_regs.h.

◆ CYRF_TXBERR_IRQEN

#define CYRF_TXBERR_IRQEN   (1<<2)

Definition at line 149 of file cyrf6936_regs.h.

◆ CYRF_TXC_IRQ

#define CYRF_TXC_IRQ   (1<<1)

Definition at line 128 of file cyrf6936_regs.h.

◆ CYRF_TXC_IRQEN

#define CYRF_TXC_IRQEN   (1<<1)

Definition at line 148 of file cyrf6936_regs.h.

◆ CYRF_TXE_IRQ

#define CYRF_TXE_IRQ   (1<<0)

Definition at line 127 of file cyrf6936_regs.h.

◆ CYRF_TXE_IRQEN

#define CYRF_TXE_IRQEN   (1<<0)

Definition at line 147 of file cyrf6936_regs.h.

◆ CYRF_VLD_EN

#define CYRF_VLD_EN   (1<<0)

Definition at line 184 of file cyrf6936_regs.h.

◆ CYRF_XOUT_OD

#define CYRF_XOUT_OD   (1<<4)

Definition at line 102 of file cyrf6936_regs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CYRF_CHANNEL 
CYRF_TX_LENGTH 
CYRF_TX_CTRL 
CYRF_TX_CFG 
CYRF_TX_IRQ_STATUS 
CYRF_RX_CTRL 
CYRF_RX_CFG 
CYRF_RX_IRQ_STATUS 
CYRF_RX_STATUS 
CYRF_RX_COUNT 
CYRF_RX_LENGTH 
CYRF_PWR_CTRL 
CYRF_XTAL_CTRL 
CYRF_IO_CFG 
CYRF_GPIO_CTRL 
CYRF_XACT_CFG 
CYRF_FRAMING_CFG 
CYRF_DATA32_THOLD 
CYRF_DATA64_THOLD 
CYRF_RSSI 
CYRF_EOP_CTRL 
CYRF_CRC_SEED_LSB 
CYRF_CRC_SEED_MSB 
CYRF_TX_CRC_LSB 
CYRF_TX_CRC_MSB 
CYRF_RX_CRC_LSB 
CYRF_RX_CRC_MSB 
CYRF_TX_OFFSET_LSB 
CYRF_TX_OFFSET_MSB 
CYRF_MODE_OVERRIDE 
CYRF_RX_OVERRIDE 
CYRF_TX_OVERRIDE 
CYRF_TX_BUFFER 
CYRF_RX_BUFFER 
CYRF_SOP_CODE 
CYRF_DATA_CODE 
CYRF_PREAMBLE 
CYRF_MFG_ID 
CYRF_XTAL_CFG 
CYRF_CLK_OFFSET 
CYRF_CLK_EN 
CYRF_RX_ABORT 
CYRF_AUTO_CAL_TIME 
CYRF_AUTO_CAL_OFFSET 
CYRF_ANALOG_CTRL 

Definition at line 31 of file cyrf6936_regs.h.

◆ anonymous enum

anonymous enum
Enumerator
CYRF_MODE_SLEEP 
CYRF_MODE_IDLE 
CYRF_MODE_SYNTH_TX 
CYRF_MODE_SYNTH_RX 
CYRF_MODE_RX 

Definition at line 87 of file cyrf6936_regs.h.

◆ anonymous enum

anonymous enum
Enumerator
CYRF_RX_DATA_MODE_GFSK 
CYRF_RX_DATA_MODE_8DR 
CYRF_RX_DATA_MODE_DDR 
CYRF_RX_DATA_MODE_NV 

Definition at line 113 of file cyrf6936_regs.h.

◆ anonymous enum

anonymous enum
Enumerator
CYRF_PA_M35 
CYRF_PA_M30 
CYRF_PA_M24 
CYRF_PA_M18 
CYRF_PA_M13 
CYRF_PA_M5 
CYRF_PA_0 
CYRF_PA_4 

Definition at line 193 of file cyrf6936_regs.h.

◆ anonymous enum

anonymous enum
Enumerator
CYRF_DATA_MODE_GFSK 
CYRF_DATA_MODE_8DR 
CYRF_DATA_MODE_DDR 
CYRF_DATA_MODE_SDR 

Definition at line 203 of file cyrf6936_regs.h.