Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
at86rf230.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <linux/spinlock.h>
#include <linux/spi/spi.h>
#include <linux/spi/at86rf230.h>
#include <linux/skbuff.h>
#include <net/mac802154.h>
#include <net/wpan-phy.h>

Go to the source code of this file.

Data Structures

struct  at86rf230_local
 

Macros

#define RG_TRX_STATUS   (0x01)
 
#define SR_TRX_STATUS   0x01, 0x1f, 0
 
#define SR_RESERVED_01_3   0x01, 0x20, 5
 
#define SR_CCA_STATUS   0x01, 0x40, 6
 
#define SR_CCA_DONE   0x01, 0x80, 7
 
#define RG_TRX_STATE   (0x02)
 
#define SR_TRX_CMD   0x02, 0x1f, 0
 
#define SR_TRAC_STATUS   0x02, 0xe0, 5
 
#define RG_TRX_CTRL_0   (0x03)
 
#define SR_CLKM_CTRL   0x03, 0x07, 0
 
#define SR_CLKM_SHA_SEL   0x03, 0x08, 3
 
#define SR_PAD_IO_CLKM   0x03, 0x30, 4
 
#define SR_PAD_IO   0x03, 0xc0, 6
 
#define RG_TRX_CTRL_1   (0x04)
 
#define SR_IRQ_POLARITY   0x04, 0x01, 0
 
#define SR_IRQ_MASK_MODE   0x04, 0x02, 1
 
#define SR_SPI_CMD_MODE   0x04, 0x0c, 2
 
#define SR_RX_BL_CTRL   0x04, 0x10, 4
 
#define SR_TX_AUTO_CRC_ON   0x04, 0x20, 5
 
#define SR_IRQ_2_EXT_EN   0x04, 0x40, 6
 
#define SR_PA_EXT_EN   0x04, 0x80, 7
 
#define RG_PHY_TX_PWR   (0x05)
 
#define SR_TX_PWR   0x05, 0x0f, 0
 
#define SR_PA_LT   0x05, 0x30, 4
 
#define SR_PA_BUF_LT   0x05, 0xc0, 6
 
#define RG_PHY_RSSI   (0x06)
 
#define SR_RSSI   0x06, 0x1f, 0
 
#define SR_RND_VALUE   0x06, 0x60, 5
 
#define SR_RX_CRC_VALID   0x06, 0x80, 7
 
#define RG_PHY_ED_LEVEL   (0x07)
 
#define SR_ED_LEVEL   0x07, 0xff, 0
 
#define RG_PHY_CC_CCA   (0x08)
 
#define SR_CHANNEL   0x08, 0x1f, 0
 
#define SR_CCA_MODE   0x08, 0x60, 5
 
#define SR_CCA_REQUEST   0x08, 0x80, 7
 
#define RG_CCA_THRES   (0x09)
 
#define SR_CCA_ED_THRES   0x09, 0x0f, 0
 
#define SR_RESERVED_09_1   0x09, 0xf0, 4
 
#define RG_RX_CTRL   (0x0a)
 
#define SR_PDT_THRES   0x0a, 0x0f, 0
 
#define SR_RESERVED_0a_1   0x0a, 0xf0, 4
 
#define RG_SFD_VALUE   (0x0b)
 
#define SR_SFD_VALUE   0x0b, 0xff, 0
 
#define RG_TRX_CTRL_2   (0x0c)
 
#define SR_OQPSK_DATA_RATE   0x0c, 0x03, 0
 
#define SR_RESERVED_0c_2   0x0c, 0x7c, 2
 
#define SR_RX_SAFE_MODE   0x0c, 0x80, 7
 
#define RG_ANT_DIV   (0x0d)
 
#define SR_ANT_CTRL   0x0d, 0x03, 0
 
#define SR_ANT_EXT_SW_EN   0x0d, 0x04, 2
 
#define SR_ANT_DIV_EN   0x0d, 0x08, 3
 
#define SR_RESERVED_0d_2   0x0d, 0x70, 4
 
#define SR_ANT_SEL   0x0d, 0x80, 7
 
#define RG_IRQ_MASK   (0x0e)
 
#define SR_IRQ_MASK   0x0e, 0xff, 0
 
#define RG_IRQ_STATUS   (0x0f)
 
#define SR_IRQ_0_PLL_LOCK   0x0f, 0x01, 0
 
#define SR_IRQ_1_PLL_UNLOCK   0x0f, 0x02, 1
 
#define SR_IRQ_2_RX_START   0x0f, 0x04, 2
 
#define SR_IRQ_3_TRX_END   0x0f, 0x08, 3
 
#define SR_IRQ_4_CCA_ED_DONE   0x0f, 0x10, 4
 
#define SR_IRQ_5_AMI   0x0f, 0x20, 5
 
#define SR_IRQ_6_TRX_UR   0x0f, 0x40, 6
 
#define SR_IRQ_7_BAT_LOW   0x0f, 0x80, 7
 
#define RG_VREG_CTRL   (0x10)
 
#define SR_RESERVED_10_6   0x10, 0x03, 0
 
#define SR_DVDD_OK   0x10, 0x04, 2
 
#define SR_DVREG_EXT   0x10, 0x08, 3
 
#define SR_RESERVED_10_3   0x10, 0x30, 4
 
#define SR_AVDD_OK   0x10, 0x40, 6
 
#define SR_AVREG_EXT   0x10, 0x80, 7
 
#define RG_BATMON   (0x11)
 
#define SR_BATMON_VTH   0x11, 0x0f, 0
 
#define SR_BATMON_HR   0x11, 0x10, 4
 
#define SR_BATMON_OK   0x11, 0x20, 5
 
#define SR_RESERVED_11_1   0x11, 0xc0, 6
 
#define RG_XOSC_CTRL   (0x12)
 
#define SR_XTAL_TRIM   0x12, 0x0f, 0
 
#define SR_XTAL_MODE   0x12, 0xf0, 4
 
#define RG_RX_SYN   (0x15)
 
#define SR_RX_PDT_LEVEL   0x15, 0x0f, 0
 
#define SR_RESERVED_15_2   0x15, 0x70, 4
 
#define SR_RX_PDT_DIS   0x15, 0x80, 7
 
#define RG_XAH_CTRL_1   (0x17)
 
#define SR_RESERVED_17_8   0x17, 0x01, 0
 
#define SR_AACK_PROM_MODE   0x17, 0x02, 1
 
#define SR_AACK_ACK_TIME   0x17, 0x04, 2
 
#define SR_RESERVED_17_5   0x17, 0x08, 3
 
#define SR_AACK_UPLD_RES_FT   0x17, 0x10, 4
 
#define SR_AACK_FLTR_RES_FT   0x17, 0x20, 5
 
#define SR_RESERVED_17_2   0x17, 0x40, 6
 
#define SR_RESERVED_17_1   0x17, 0x80, 7
 
#define RG_FTN_CTRL   (0x18)
 
#define SR_RESERVED_18_2   0x18, 0x7f, 0
 
#define SR_FTN_START   0x18, 0x80, 7
 
#define RG_PLL_CF   (0x1a)
 
#define SR_RESERVED_1a_2   0x1a, 0x7f, 0
 
#define SR_PLL_CF_START   0x1a, 0x80, 7
 
#define RG_PLL_DCU   (0x1b)
 
#define SR_RESERVED_1b_3   0x1b, 0x3f, 0
 
#define SR_RESERVED_1b_2   0x1b, 0x40, 6
 
#define SR_PLL_DCU_START   0x1b, 0x80, 7
 
#define RG_PART_NUM   (0x1c)
 
#define SR_PART_NUM   0x1c, 0xff, 0
 
#define RG_VERSION_NUM   (0x1d)
 
#define SR_VERSION_NUM   0x1d, 0xff, 0
 
#define RG_MAN_ID_0   (0x1e)
 
#define SR_MAN_ID_0   0x1e, 0xff, 0
 
#define RG_MAN_ID_1   (0x1f)
 
#define SR_MAN_ID_1   0x1f, 0xff, 0
 
#define RG_SHORT_ADDR_0   (0x20)
 
#define SR_SHORT_ADDR_0   0x20, 0xff, 0
 
#define RG_SHORT_ADDR_1   (0x21)
 
#define SR_SHORT_ADDR_1   0x21, 0xff, 0
 
#define RG_PAN_ID_0   (0x22)
 
#define SR_PAN_ID_0   0x22, 0xff, 0
 
#define RG_PAN_ID_1   (0x23)
 
#define SR_PAN_ID_1   0x23, 0xff, 0
 
#define RG_IEEE_ADDR_0   (0x24)
 
#define SR_IEEE_ADDR_0   0x24, 0xff, 0
 
#define RG_IEEE_ADDR_1   (0x25)
 
#define SR_IEEE_ADDR_1   0x25, 0xff, 0
 
#define RG_IEEE_ADDR_2   (0x26)
 
#define SR_IEEE_ADDR_2   0x26, 0xff, 0
 
#define RG_IEEE_ADDR_3   (0x27)
 
#define SR_IEEE_ADDR_3   0x27, 0xff, 0
 
#define RG_IEEE_ADDR_4   (0x28)
 
#define SR_IEEE_ADDR_4   0x28, 0xff, 0
 
#define RG_IEEE_ADDR_5   (0x29)
 
#define SR_IEEE_ADDR_5   0x29, 0xff, 0
 
#define RG_IEEE_ADDR_6   (0x2a)
 
#define SR_IEEE_ADDR_6   0x2a, 0xff, 0
 
#define RG_IEEE_ADDR_7   (0x2b)
 
#define SR_IEEE_ADDR_7   0x2b, 0xff, 0
 
#define RG_XAH_CTRL_0   (0x2c)
 
#define SR_SLOTTED_OPERATION   0x2c, 0x01, 0
 
#define SR_MAX_CSMA_RETRIES   0x2c, 0x0e, 1
 
#define SR_MAX_FRAME_RETRIES   0x2c, 0xf0, 4
 
#define RG_CSMA_SEED_0   (0x2d)
 
#define SR_CSMA_SEED_0   0x2d, 0xff, 0
 
#define RG_CSMA_SEED_1   (0x2e)
 
#define SR_CSMA_SEED_1   0x2e, 0x07, 0
 
#define SR_AACK_I_AM_COORD   0x2e, 0x08, 3
 
#define SR_AACK_DIS_ACK   0x2e, 0x10, 4
 
#define SR_AACK_SET_PD   0x2e, 0x20, 5
 
#define SR_AACK_FVN_MODE   0x2e, 0xc0, 6
 
#define RG_CSMA_BE   (0x2f)
 
#define SR_MIN_BE   0x2f, 0x0f, 0
 
#define SR_MAX_BE   0x2f, 0xf0, 4
 
#define CMD_REG   0x80
 
#define CMD_REG_MASK   0x3f
 
#define CMD_WRITE   0x40
 
#define CMD_FB   0x20
 
#define IRQ_BAT_LOW   (1 << 7)
 
#define IRQ_TRX_UR   (1 << 6)
 
#define IRQ_AMI   (1 << 5)
 
#define IRQ_CCA_ED   (1 << 4)
 
#define IRQ_TRX_END   (1 << 3)
 
#define IRQ_RX_START   (1 << 2)
 
#define IRQ_PLL_UNL   (1 << 1)
 
#define IRQ_PLL_LOCK   (1 << 0)
 
#define STATE_P_ON   0x00 /* BUSY */
 
#define STATE_BUSY_RX   0x01
 
#define STATE_BUSY_TX   0x02
 
#define STATE_FORCE_TRX_OFF   0x03
 
#define STATE_FORCE_TX_ON   0x04 /* IDLE */
 
#define STATE_RX_ON   0x06
 
#define STATE_TRX_OFF   0x08
 
#define STATE_TX_ON   0x09
 
#define STATE_SLEEP   0x0F
 
#define STATE_BUSY_RX_AACK   0x11
 
#define STATE_BUSY_TX_ARET   0x12
 
#define STATE_BUSY_RX_AACK_ON   0x16
 
#define STATE_BUSY_TX_ARET_ON   0x19
 
#define STATE_RX_ON_NOCLK   0x1C
 
#define STATE_RX_AACK_ON_NOCLK   0x1D
 
#define STATE_BUSY_RX_AACK_NOCLK   0x1E
 
#define STATE_TRANSITION_IN_PROGRESS   0x1F
 

Functions

 module_spi_driver (at86rf230_driver)
 
 MODULE_DESCRIPTION ("AT86RF230 Transceiver Driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define CMD_FB   0x20

Definition at line 211 of file at86rf230.c.

#define CMD_REG   0x80

Definition at line 208 of file at86rf230.c.

#define CMD_REG_MASK   0x3f

Definition at line 209 of file at86rf230.c.

#define CMD_WRITE   0x40

Definition at line 210 of file at86rf230.c.

#define IRQ_AMI   (1 << 5)

Definition at line 215 of file at86rf230.c.

#define IRQ_BAT_LOW   (1 << 7)

Definition at line 213 of file at86rf230.c.

#define IRQ_CCA_ED   (1 << 4)

Definition at line 216 of file at86rf230.c.

#define IRQ_PLL_LOCK   (1 << 0)

Definition at line 220 of file at86rf230.c.

#define IRQ_PLL_UNL   (1 << 1)

Definition at line 219 of file at86rf230.c.

#define IRQ_RX_START   (1 << 2)

Definition at line 218 of file at86rf230.c.

#define IRQ_TRX_END   (1 << 3)

Definition at line 217 of file at86rf230.c.

#define IRQ_TRX_UR   (1 << 6)

Definition at line 214 of file at86rf230.c.

#define RG_ANT_DIV   (0x0d)

Definition at line 105 of file at86rf230.c.

#define RG_BATMON   (0x11)

Definition at line 129 of file at86rf230.c.

#define RG_CCA_THRES   (0x09)

Definition at line 93 of file at86rf230.c.

#define RG_CSMA_BE   (0x2f)

Definition at line 204 of file at86rf230.c.

#define RG_CSMA_SEED_0   (0x2d)

Definition at line 196 of file at86rf230.c.

#define RG_CSMA_SEED_1   (0x2e)

Definition at line 198 of file at86rf230.c.

#define RG_FTN_CTRL   (0x18)

Definition at line 150 of file at86rf230.c.

#define RG_IEEE_ADDR_0   (0x24)

Definition at line 176 of file at86rf230.c.

#define RG_IEEE_ADDR_1   (0x25)

Definition at line 178 of file at86rf230.c.

#define RG_IEEE_ADDR_2   (0x26)

Definition at line 180 of file at86rf230.c.

#define RG_IEEE_ADDR_3   (0x27)

Definition at line 182 of file at86rf230.c.

#define RG_IEEE_ADDR_4   (0x28)

Definition at line 184 of file at86rf230.c.

#define RG_IEEE_ADDR_5   (0x29)

Definition at line 186 of file at86rf230.c.

#define RG_IEEE_ADDR_6   (0x2a)

Definition at line 188 of file at86rf230.c.

#define RG_IEEE_ADDR_7   (0x2b)

Definition at line 190 of file at86rf230.c.

#define RG_IRQ_MASK   (0x0e)

Definition at line 111 of file at86rf230.c.

#define RG_IRQ_STATUS   (0x0f)

Definition at line 113 of file at86rf230.c.

#define RG_MAN_ID_0   (0x1e)

Definition at line 164 of file at86rf230.c.

#define RG_MAN_ID_1   (0x1f)

Definition at line 166 of file at86rf230.c.

#define RG_PAN_ID_0   (0x22)

Definition at line 172 of file at86rf230.c.

#define RG_PAN_ID_1   (0x23)

Definition at line 174 of file at86rf230.c.

#define RG_PART_NUM   (0x1c)

Definition at line 160 of file at86rf230.c.

#define RG_PHY_CC_CCA   (0x08)

Definition at line 89 of file at86rf230.c.

#define RG_PHY_ED_LEVEL   (0x07)

Definition at line 87 of file at86rf230.c.

#define RG_PHY_RSSI   (0x06)

Definition at line 83 of file at86rf230.c.

#define RG_PHY_TX_PWR   (0x05)

Definition at line 79 of file at86rf230.c.

#define RG_PLL_CF   (0x1a)

Definition at line 153 of file at86rf230.c.

#define RG_PLL_DCU   (0x1b)

Definition at line 156 of file at86rf230.c.

#define RG_RX_CTRL   (0x0a)

Definition at line 96 of file at86rf230.c.

#define RG_RX_SYN   (0x15)

Definition at line 137 of file at86rf230.c.

#define RG_SFD_VALUE   (0x0b)

Definition at line 99 of file at86rf230.c.

#define RG_SHORT_ADDR_0   (0x20)

Definition at line 168 of file at86rf230.c.

#define RG_SHORT_ADDR_1   (0x21)

Definition at line 170 of file at86rf230.c.

#define RG_TRX_CTRL_0   (0x03)

Definition at line 66 of file at86rf230.c.

#define RG_TRX_CTRL_1   (0x04)

Definition at line 71 of file at86rf230.c.

#define RG_TRX_CTRL_2   (0x0c)

Definition at line 101 of file at86rf230.c.

#define RG_TRX_STATE   (0x02)

Definition at line 63 of file at86rf230.c.

#define RG_TRX_STATUS   (0x01)

Definition at line 58 of file at86rf230.c.

#define RG_VERSION_NUM   (0x1d)

Definition at line 162 of file at86rf230.c.

#define RG_VREG_CTRL   (0x10)

Definition at line 122 of file at86rf230.c.

#define RG_XAH_CTRL_0   (0x2c)

Definition at line 192 of file at86rf230.c.

#define RG_XAH_CTRL_1   (0x17)

Definition at line 141 of file at86rf230.c.

#define RG_XOSC_CTRL   (0x12)

Definition at line 134 of file at86rf230.c.

#define SR_AACK_ACK_TIME   0x17, 0x04, 2

Definition at line 144 of file at86rf230.c.

#define SR_AACK_DIS_ACK   0x2e, 0x10, 4

Definition at line 201 of file at86rf230.c.

#define SR_AACK_FLTR_RES_FT   0x17, 0x20, 5

Definition at line 147 of file at86rf230.c.

#define SR_AACK_FVN_MODE   0x2e, 0xc0, 6

Definition at line 203 of file at86rf230.c.

#define SR_AACK_I_AM_COORD   0x2e, 0x08, 3

Definition at line 200 of file at86rf230.c.

#define SR_AACK_PROM_MODE   0x17, 0x02, 1

Definition at line 143 of file at86rf230.c.

#define SR_AACK_SET_PD   0x2e, 0x20, 5

Definition at line 202 of file at86rf230.c.

#define SR_AACK_UPLD_RES_FT   0x17, 0x10, 4

Definition at line 146 of file at86rf230.c.

#define SR_ANT_CTRL   0x0d, 0x03, 0

Definition at line 106 of file at86rf230.c.

#define SR_ANT_DIV_EN   0x0d, 0x08, 3

Definition at line 108 of file at86rf230.c.

#define SR_ANT_EXT_SW_EN   0x0d, 0x04, 2

Definition at line 107 of file at86rf230.c.

#define SR_ANT_SEL   0x0d, 0x80, 7

Definition at line 110 of file at86rf230.c.

#define SR_AVDD_OK   0x10, 0x40, 6

Definition at line 127 of file at86rf230.c.

#define SR_AVREG_EXT   0x10, 0x80, 7

Definition at line 128 of file at86rf230.c.

#define SR_BATMON_HR   0x11, 0x10, 4

Definition at line 131 of file at86rf230.c.

#define SR_BATMON_OK   0x11, 0x20, 5

Definition at line 132 of file at86rf230.c.

#define SR_BATMON_VTH   0x11, 0x0f, 0

Definition at line 130 of file at86rf230.c.

#define SR_CCA_DONE   0x01, 0x80, 7

Definition at line 62 of file at86rf230.c.

#define SR_CCA_ED_THRES   0x09, 0x0f, 0

Definition at line 94 of file at86rf230.c.

#define SR_CCA_MODE   0x08, 0x60, 5

Definition at line 91 of file at86rf230.c.

#define SR_CCA_REQUEST   0x08, 0x80, 7

Definition at line 92 of file at86rf230.c.

#define SR_CCA_STATUS   0x01, 0x40, 6

Definition at line 61 of file at86rf230.c.

#define SR_CHANNEL   0x08, 0x1f, 0

Definition at line 90 of file at86rf230.c.

#define SR_CLKM_CTRL   0x03, 0x07, 0

Definition at line 67 of file at86rf230.c.

#define SR_CLKM_SHA_SEL   0x03, 0x08, 3

Definition at line 68 of file at86rf230.c.

#define SR_CSMA_SEED_0   0x2d, 0xff, 0

Definition at line 197 of file at86rf230.c.

#define SR_CSMA_SEED_1   0x2e, 0x07, 0

Definition at line 199 of file at86rf230.c.

#define SR_DVDD_OK   0x10, 0x04, 2

Definition at line 124 of file at86rf230.c.

#define SR_DVREG_EXT   0x10, 0x08, 3

Definition at line 125 of file at86rf230.c.

#define SR_ED_LEVEL   0x07, 0xff, 0

Definition at line 88 of file at86rf230.c.

#define SR_FTN_START   0x18, 0x80, 7

Definition at line 152 of file at86rf230.c.

#define SR_IEEE_ADDR_0   0x24, 0xff, 0

Definition at line 177 of file at86rf230.c.

#define SR_IEEE_ADDR_1   0x25, 0xff, 0

Definition at line 179 of file at86rf230.c.

#define SR_IEEE_ADDR_2   0x26, 0xff, 0

Definition at line 181 of file at86rf230.c.

#define SR_IEEE_ADDR_3   0x27, 0xff, 0

Definition at line 183 of file at86rf230.c.

#define SR_IEEE_ADDR_4   0x28, 0xff, 0

Definition at line 185 of file at86rf230.c.

#define SR_IEEE_ADDR_5   0x29, 0xff, 0

Definition at line 187 of file at86rf230.c.

#define SR_IEEE_ADDR_6   0x2a, 0xff, 0

Definition at line 189 of file at86rf230.c.

#define SR_IEEE_ADDR_7   0x2b, 0xff, 0

Definition at line 191 of file at86rf230.c.

#define SR_IRQ_0_PLL_LOCK   0x0f, 0x01, 0

Definition at line 114 of file at86rf230.c.

#define SR_IRQ_1_PLL_UNLOCK   0x0f, 0x02, 1

Definition at line 115 of file at86rf230.c.

#define SR_IRQ_2_EXT_EN   0x04, 0x40, 6

Definition at line 77 of file at86rf230.c.

#define SR_IRQ_2_RX_START   0x0f, 0x04, 2

Definition at line 116 of file at86rf230.c.

#define SR_IRQ_3_TRX_END   0x0f, 0x08, 3

Definition at line 117 of file at86rf230.c.

#define SR_IRQ_4_CCA_ED_DONE   0x0f, 0x10, 4

Definition at line 118 of file at86rf230.c.

#define SR_IRQ_5_AMI   0x0f, 0x20, 5

Definition at line 119 of file at86rf230.c.

#define SR_IRQ_6_TRX_UR   0x0f, 0x40, 6

Definition at line 120 of file at86rf230.c.

#define SR_IRQ_7_BAT_LOW   0x0f, 0x80, 7

Definition at line 121 of file at86rf230.c.

#define SR_IRQ_MASK   0x0e, 0xff, 0

Definition at line 112 of file at86rf230.c.

#define SR_IRQ_MASK_MODE   0x04, 0x02, 1

Definition at line 73 of file at86rf230.c.

#define SR_IRQ_POLARITY   0x04, 0x01, 0

Definition at line 72 of file at86rf230.c.

#define SR_MAN_ID_0   0x1e, 0xff, 0

Definition at line 165 of file at86rf230.c.

#define SR_MAN_ID_1   0x1f, 0xff, 0

Definition at line 167 of file at86rf230.c.

#define SR_MAX_BE   0x2f, 0xf0, 4

Definition at line 206 of file at86rf230.c.

#define SR_MAX_CSMA_RETRIES   0x2c, 0x0e, 1

Definition at line 194 of file at86rf230.c.

#define SR_MAX_FRAME_RETRIES   0x2c, 0xf0, 4

Definition at line 195 of file at86rf230.c.

#define SR_MIN_BE   0x2f, 0x0f, 0

Definition at line 205 of file at86rf230.c.

#define SR_OQPSK_DATA_RATE   0x0c, 0x03, 0

Definition at line 102 of file at86rf230.c.

#define SR_PA_BUF_LT   0x05, 0xc0, 6

Definition at line 82 of file at86rf230.c.

#define SR_PA_EXT_EN   0x04, 0x80, 7

Definition at line 78 of file at86rf230.c.

#define SR_PA_LT   0x05, 0x30, 4

Definition at line 81 of file at86rf230.c.

#define SR_PAD_IO   0x03, 0xc0, 6

Definition at line 70 of file at86rf230.c.

#define SR_PAD_IO_CLKM   0x03, 0x30, 4

Definition at line 69 of file at86rf230.c.

#define SR_PAN_ID_0   0x22, 0xff, 0

Definition at line 173 of file at86rf230.c.

#define SR_PAN_ID_1   0x23, 0xff, 0

Definition at line 175 of file at86rf230.c.

#define SR_PART_NUM   0x1c, 0xff, 0

Definition at line 161 of file at86rf230.c.

#define SR_PDT_THRES   0x0a, 0x0f, 0

Definition at line 97 of file at86rf230.c.

#define SR_PLL_CF_START   0x1a, 0x80, 7

Definition at line 155 of file at86rf230.c.

#define SR_PLL_DCU_START   0x1b, 0x80, 7

Definition at line 159 of file at86rf230.c.

#define SR_RESERVED_01_3   0x01, 0x20, 5

Definition at line 60 of file at86rf230.c.

#define SR_RESERVED_09_1   0x09, 0xf0, 4

Definition at line 95 of file at86rf230.c.

#define SR_RESERVED_0a_1   0x0a, 0xf0, 4

Definition at line 98 of file at86rf230.c.

#define SR_RESERVED_0c_2   0x0c, 0x7c, 2

Definition at line 103 of file at86rf230.c.

#define SR_RESERVED_0d_2   0x0d, 0x70, 4

Definition at line 109 of file at86rf230.c.

#define SR_RESERVED_10_3   0x10, 0x30, 4

Definition at line 126 of file at86rf230.c.

#define SR_RESERVED_10_6   0x10, 0x03, 0

Definition at line 123 of file at86rf230.c.

#define SR_RESERVED_11_1   0x11, 0xc0, 6

Definition at line 133 of file at86rf230.c.

#define SR_RESERVED_15_2   0x15, 0x70, 4

Definition at line 139 of file at86rf230.c.

#define SR_RESERVED_17_1   0x17, 0x80, 7

Definition at line 149 of file at86rf230.c.

#define SR_RESERVED_17_2   0x17, 0x40, 6

Definition at line 148 of file at86rf230.c.

#define SR_RESERVED_17_5   0x17, 0x08, 3

Definition at line 145 of file at86rf230.c.

#define SR_RESERVED_17_8   0x17, 0x01, 0

Definition at line 142 of file at86rf230.c.

#define SR_RESERVED_18_2   0x18, 0x7f, 0

Definition at line 151 of file at86rf230.c.

#define SR_RESERVED_1a_2   0x1a, 0x7f, 0

Definition at line 154 of file at86rf230.c.

#define SR_RESERVED_1b_2   0x1b, 0x40, 6

Definition at line 158 of file at86rf230.c.

#define SR_RESERVED_1b_3   0x1b, 0x3f, 0

Definition at line 157 of file at86rf230.c.

#define SR_RND_VALUE   0x06, 0x60, 5

Definition at line 85 of file at86rf230.c.

#define SR_RSSI   0x06, 0x1f, 0

Definition at line 84 of file at86rf230.c.

#define SR_RX_BL_CTRL   0x04, 0x10, 4

Definition at line 75 of file at86rf230.c.

#define SR_RX_CRC_VALID   0x06, 0x80, 7

Definition at line 86 of file at86rf230.c.

#define SR_RX_PDT_DIS   0x15, 0x80, 7

Definition at line 140 of file at86rf230.c.

#define SR_RX_PDT_LEVEL   0x15, 0x0f, 0

Definition at line 138 of file at86rf230.c.

#define SR_RX_SAFE_MODE   0x0c, 0x80, 7

Definition at line 104 of file at86rf230.c.

#define SR_SFD_VALUE   0x0b, 0xff, 0

Definition at line 100 of file at86rf230.c.

#define SR_SHORT_ADDR_0   0x20, 0xff, 0

Definition at line 169 of file at86rf230.c.

#define SR_SHORT_ADDR_1   0x21, 0xff, 0

Definition at line 171 of file at86rf230.c.

#define SR_SLOTTED_OPERATION   0x2c, 0x01, 0

Definition at line 193 of file at86rf230.c.

#define SR_SPI_CMD_MODE   0x04, 0x0c, 2

Definition at line 74 of file at86rf230.c.

#define SR_TRAC_STATUS   0x02, 0xe0, 5

Definition at line 65 of file at86rf230.c.

#define SR_TRX_CMD   0x02, 0x1f, 0

Definition at line 64 of file at86rf230.c.

#define SR_TRX_STATUS   0x01, 0x1f, 0

Definition at line 59 of file at86rf230.c.

#define SR_TX_AUTO_CRC_ON   0x04, 0x20, 5

Definition at line 76 of file at86rf230.c.

#define SR_TX_PWR   0x05, 0x0f, 0

Definition at line 80 of file at86rf230.c.

#define SR_VERSION_NUM   0x1d, 0xff, 0

Definition at line 163 of file at86rf230.c.

#define SR_XTAL_MODE   0x12, 0xf0, 4

Definition at line 136 of file at86rf230.c.

#define SR_XTAL_TRIM   0x12, 0x0f, 0

Definition at line 135 of file at86rf230.c.

#define STATE_BUSY_RX   0x01

Definition at line 223 of file at86rf230.c.

#define STATE_BUSY_RX_AACK   0x11

Definition at line 234 of file at86rf230.c.

#define STATE_BUSY_RX_AACK_NOCLK   0x1E

Definition at line 240 of file at86rf230.c.

#define STATE_BUSY_RX_AACK_ON   0x16

Definition at line 236 of file at86rf230.c.

#define STATE_BUSY_TX   0x02

Definition at line 224 of file at86rf230.c.

#define STATE_BUSY_TX_ARET   0x12

Definition at line 235 of file at86rf230.c.

#define STATE_BUSY_TX_ARET_ON   0x19

Definition at line 237 of file at86rf230.c.

#define STATE_FORCE_TRX_OFF   0x03

Definition at line 225 of file at86rf230.c.

#define STATE_FORCE_TX_ON   0x04 /* IDLE */

Definition at line 226 of file at86rf230.c.

#define STATE_P_ON   0x00 /* BUSY */

Definition at line 222 of file at86rf230.c.

#define STATE_RX_AACK_ON_NOCLK   0x1D

Definition at line 239 of file at86rf230.c.

#define STATE_RX_ON   0x06

Definition at line 228 of file at86rf230.c.

#define STATE_RX_ON_NOCLK   0x1C

Definition at line 238 of file at86rf230.c.

#define STATE_SLEEP   0x0F

Definition at line 233 of file at86rf230.c.

#define STATE_TRANSITION_IN_PROGRESS   0x1F

Definition at line 241 of file at86rf230.c.

#define STATE_TRX_OFF   0x08

Definition at line 230 of file at86rf230.c.

#define STATE_TX_ON   0x09

Definition at line 231 of file at86rf230.c.

Function Documentation

MODULE_DESCRIPTION ( "AT86RF230 Transceiver Driver"  )
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( at86rf230_driver  )