cc2420reg.h File Reference

Description : cc2420 register descriptions given by ChipCon. More...

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

Go to the source code of this file.

Defines

#define CC2420_ADCTST   0x2D
#define CC2420_AGCCTRL   0x23
#define CC2420_AGCTST0   0x24
#define CC2420_AGCTST1   0x25
#define CC2420_AGCTST2   0x26
#define CC2420_BATTMON   0x1B
#define CC2420_BATTMON_BATTMON_EN   0x001F
#define CC2420_BATTMON_BATTMON_OK   6
#define CC2420_DACTST   0x2E
#define CC2420_ENC_BUSY   4
#define CC2420_FIFO_SIZE   128
#define CC2420_FSCTRL   0x18
#define CC2420_FSMSTATE   0x2C
#define CC2420_FSMTC   0x20
#define CC2420_FSTST0   0x27
#define CC2420_FSTST1   0x28
#define CC2420_FSTST2   0x29
#define CC2420_FSTST3   0x2A
#define CC2420_IOCFG0   0x1C
#define CC2420_IOCFG1   0x1D
#define CC2420_LOCK   2
#define CC2420_MAIN   0x10
#define CC2420_MANAND   0x21
#define CC2420_MANFIDH   0x1F
#define CC2420_MANFIDL   0x1E
#define CC2420_MANOR   0x22
#define CC2420_MDMCTRL0   0x11
#define CC2420_MDMCTRL1   0x12
#define CC2420_RAM_SIZE   368
#define CC2420_RESERVED   0x30
#define CC2420_RSSI   0x13
#define CC2420_RSSI_VALID   1
#define CC2420_RXBPFTST   0x2B
#define CC2420_RXCTRL0   0x16
#define CC2420_RXCTRL1   0x17
#define CC2420_RXFIFO   0x3F
#define CC2420_SACK   0x0A
#define CC2420_SACKPEND   0x0B
#define CC2420_SAES   0x0E
#define CC2420_SECCTRL0   0x19
#define CC2420_SECCTRL0_CBC_MAC   0x0001
#define CC2420_SECCTRL0_CCM   0x0003
#define CC2420_SECCTRL0_CTR   0x0002
#define CC2420_SECCTRL0_NO_SECURITY   0x0000
#define CC2420_SECCTRL0_RXFIFO_PROTECTION   0x0200
#define CC2420_SECCTRL0_RXKEYSEL0   0x0000
#define CC2420_SECCTRL0_RXKEYSEL1   0x0020
#define CC2420_SECCTRL0_SEC_CBC_HEAD   0x0100
#define CC2420_SECCTRL0_SEC_M_IDX   2
#define CC2420_SECCTRL0_TXKEYSEL0   0x0000
#define CC2420_SECCTRL0_TXKEYSEL1   0x0040
#define CC2420_SECCTRL1   0x1A
#define CC2420_SFLUSHRX   0x08
#define CC2420_SFLUSHTX   0x09
#define CC2420_SNOP   0x00
#define CC2420_SRFOFF   0x06
#define CC2420_SRXDEC   0x0C
#define CC2420_SRXON   0x03
#define CC2420_STXCAL   0x02
#define CC2420_STXENC   0x0D
#define CC2420_STXON   0x04
#define CC2420_STXONCCA   0x05
#define CC2420_SXOSCOFF   0x07
#define CC2420_SXOSCON   0x01
#define CC2420_SYNCWORD   0x14
#define CC2420_TOPTST   0x2F
#define CC2420_TX_ACTIVE   3
#define CC2420_TX_UNDERFLOW   5
#define CC2420_TXCTRL   0x15
#define CC2420_TXFIFO   0x3E
#define CC2420_XOSC16M_STABLE   6
#define CC2420RAM_CBCSTATE   0x150
#define CC2420RAM_IEEEADDR   0x160
#define CC2420RAM_KEY0   0x100
#define CC2420RAM_KEY1   0x130
#define CC2420RAM_PANID   0x168
#define CC2420RAM_RXFIFO   0x080
#define CC2420RAM_RXNONCE   0x110
#define CC2420RAM_SABUF   0x120
#define CC2420RAM_SHORTADDR   0x16A
#define CC2420RAM_TXFIFO   0x000
#define CC2420RAM_TXNONCE   0x140
#define ED_2_LQI(ed)   (((ed) > 63 ? 255 : ((ed) << 2)))
#define PA_LEVEL_11   0xA0EB
#define PA_LEVEL_15   0xA0EF
#define PA_LEVEL_19   0xA0F3
#define PA_LEVEL_23   0xA0F7
#define PA_LEVEL_27   0xA0FB
#define PA_LEVEL_3   0xA0E3
#define PA_LEVEL_31   0xA0FF
#define PA_LEVEL_7   0xA0E7
#define RSSI_2_ED(rssi)   ((rssi) < RSSI_OFFSET ? 0 : ((rssi) - (RSSI_OFFSET)))
#define RSSI_OFFSET   -90


Detailed Description

Description : cc2420 register descriptions given by ChipCon.

Definition in file cc2420reg.h.


Define Documentation

#define CC2420_ADCTST   0x2D

Definition at line 88 of file cc2420reg.h.

#define CC2420_AGCCTRL   0x23

Definition at line 78 of file cc2420reg.h.

#define CC2420_AGCTST0   0x24

Definition at line 79 of file cc2420reg.h.

#define CC2420_AGCTST1   0x25

Definition at line 80 of file cc2420reg.h.

#define CC2420_AGCTST2   0x26

Definition at line 81 of file cc2420reg.h.

#define CC2420_BATTMON   0x1B

Definition at line 70 of file cc2420reg.h.

Referenced by cc2420_active_batmon().

#define CC2420_BATTMON_BATTMON_EN   0x001F

Definition at line 149 of file cc2420reg.h.

Referenced by cc2420_active_batmon().

#define CC2420_BATTMON_BATTMON_OK   6

Definition at line 150 of file cc2420reg.h.

Referenced by cc2420_active_batmon().

#define CC2420_DACTST   0x2E

Definition at line 89 of file cc2420reg.h.

#define CC2420_ENC_BUSY   4

Definition at line 124 of file cc2420reg.h.

#define CC2420_FIFO_SIZE   128

Definition at line 103 of file cc2420reg.h.

#define CC2420_FSCTRL   0x18

Definition at line 67 of file cc2420reg.h.

Referenced by cc2420_change_channel(), and setup_cc2420().

#define CC2420_FSMSTATE   0x2C

Definition at line 87 of file cc2420reg.h.

#define CC2420_FSMTC   0x20

Definition at line 75 of file cc2420reg.h.

#define CC2420_FSTST0   0x27

Definition at line 82 of file cc2420reg.h.

#define CC2420_FSTST1   0x28

Definition at line 83 of file cc2420reg.h.

#define CC2420_FSTST2   0x29

Definition at line 84 of file cc2420reg.h.

#define CC2420_FSTST3   0x2A

Definition at line 85 of file cc2420reg.h.

#define CC2420_IOCFG0   0x1C

Definition at line 71 of file cc2420reg.h.

Referenced by setup_cc2420().

#define CC2420_IOCFG1   0x1D

Definition at line 72 of file cc2420reg.h.

#define CC2420_LOCK   2

Definition at line 126 of file cc2420reg.h.

#define CC2420_MAIN   0x10

Definition at line 59 of file cc2420reg.h.

#define CC2420_MANAND   0x21

Definition at line 76 of file cc2420reg.h.

#define CC2420_MANFIDH   0x1F

Definition at line 74 of file cc2420reg.h.

#define CC2420_MANFIDL   0x1E

Definition at line 73 of file cc2420reg.h.

#define CC2420_MANOR   0x22

Definition at line 77 of file cc2420reg.h.

#define CC2420_MDMCTRL0   0x11

Definition at line 60 of file cc2420reg.h.

Referenced by setup_cc2420().

#define CC2420_MDMCTRL1   0x12

Definition at line 61 of file cc2420reg.h.

Referenced by setup_cc2420().

#define CC2420_RAM_SIZE   368

Definition at line 102 of file cc2420reg.h.

#define CC2420_RESERVED   0x30

Definition at line 91 of file cc2420reg.h.

#define CC2420_RSSI   0x13

Definition at line 62 of file cc2420reg.h.

Referenced by halRfGetRSSI().

#define CC2420_RSSI_VALID   1

Definition at line 127 of file cc2420reg.h.

Referenced by sendFrame().

#define CC2420_RXBPFTST   0x2B

Definition at line 86 of file cc2420reg.h.

#define CC2420_RXCTRL0   0x16

Definition at line 65 of file cc2420reg.h.

#define CC2420_RXCTRL1   0x17

Definition at line 66 of file cc2420reg.h.

#define CC2420_RXFIFO   0x3F

Definition at line 94 of file cc2420reg.h.

#define CC2420_SACK   0x0A

Definition at line 53 of file cc2420reg.h.

#define CC2420_SACKPEND   0x0B

Definition at line 54 of file cc2420reg.h.

#define CC2420_SAES   0x0E

Definition at line 57 of file cc2420reg.h.

#define CC2420_SECCTRL0   0x19

Definition at line 68 of file cc2420reg.h.

Referenced by setup_cc2420().

#define CC2420_SECCTRL0_CBC_MAC   0x0001

Definition at line 133 of file cc2420reg.h.

#define CC2420_SECCTRL0_CCM   0x0003

Definition at line 135 of file cc2420reg.h.

#define CC2420_SECCTRL0_CTR   0x0002

Definition at line 134 of file cc2420reg.h.

#define CC2420_SECCTRL0_NO_SECURITY   0x0000

Definition at line 132 of file cc2420reg.h.

Referenced by setup_cc2420().

#define CC2420_SECCTRL0_RXFIFO_PROTECTION   0x0200

Definition at line 146 of file cc2420reg.h.

#define CC2420_SECCTRL0_RXKEYSEL0   0x0000

Definition at line 139 of file cc2420reg.h.

#define CC2420_SECCTRL0_RXKEYSEL1   0x0020

Definition at line 140 of file cc2420reg.h.

#define CC2420_SECCTRL0_SEC_CBC_HEAD   0x0100

Definition at line 145 of file cc2420reg.h.

#define CC2420_SECCTRL0_SEC_M_IDX   2

Definition at line 137 of file cc2420reg.h.

#define CC2420_SECCTRL0_TXKEYSEL0   0x0000

Definition at line 142 of file cc2420reg.h.

#define CC2420_SECCTRL0_TXKEYSEL1   0x0040

Definition at line 143 of file cc2420reg.h.

#define CC2420_SECCTRL1   0x1A

Definition at line 69 of file cc2420reg.h.

#define CC2420_SFLUSHRX   0x08

Definition at line 51 of file cc2420reg.h.

Referenced by fifo_interrupt(), init_cc2420_rx(), RecepFrame(), and sendFrame().

#define CC2420_SFLUSHTX   0x09

Definition at line 52 of file cc2420reg.h.

Referenced by sendFrame().

#define CC2420_SNOP   0x00

Definition at line 43 of file cc2420reg.h.

#define CC2420_SRFOFF   0x06

Definition at line 49 of file cc2420reg.h.

Referenced by RecepFrame(), and sendFrame().

#define CC2420_SRXDEC   0x0C

Definition at line 55 of file cc2420reg.h.

#define CC2420_SRXON   0x03

Definition at line 46 of file cc2420reg.h.

Referenced by init_cc2420_rx(), RecepFrame(), and sendFrame().

#define CC2420_STXCAL   0x02

Definition at line 45 of file cc2420reg.h.

#define CC2420_STXENC   0x0D

Definition at line 56 of file cc2420reg.h.

#define CC2420_STXON   0x04

Definition at line 47 of file cc2420reg.h.

#define CC2420_STXONCCA   0x05

Definition at line 48 of file cc2420reg.h.

Referenced by sendFrame().

#define CC2420_SXOSCOFF   0x07

Definition at line 50 of file cc2420reg.h.

Referenced by cc2420_powerdown().

#define CC2420_SXOSCON   0x01

Definition at line 44 of file cc2420reg.h.

Referenced by setup_cc2420(), and wakeup_cc2420().

#define CC2420_SYNCWORD   0x14

Definition at line 63 of file cc2420reg.h.

#define CC2420_TOPTST   0x2F

Definition at line 90 of file cc2420reg.h.

#define CC2420_TX_ACTIVE   3

Definition at line 125 of file cc2420reg.h.

Referenced by sendFrame().

#define CC2420_TX_UNDERFLOW   5

Definition at line 123 of file cc2420reg.h.

Referenced by sendFrame().

#define CC2420_TXCTRL   0x15

Definition at line 64 of file cc2420reg.h.

Referenced by cc2420_change_emission_power().

#define CC2420_TXFIFO   0x3E

Definition at line 93 of file cc2420reg.h.

#define CC2420_XOSC16M_STABLE   6

Definition at line 122 of file cc2420reg.h.

Referenced by halRfWaitForCrystalOscillator().

#define CC2420RAM_CBCSTATE   0x150

Definition at line 113 of file cc2420reg.h.

#define CC2420RAM_IEEEADDR   0x160

Definition at line 114 of file cc2420reg.h.

#define CC2420RAM_KEY0   0x100

Definition at line 108 of file cc2420reg.h.

#define CC2420RAM_KEY1   0x130

Definition at line 111 of file cc2420reg.h.

#define CC2420RAM_PANID   0x168

Definition at line 115 of file cc2420reg.h.

#define CC2420RAM_RXFIFO   0x080

Definition at line 107 of file cc2420reg.h.

#define CC2420RAM_RXNONCE   0x110

Definition at line 109 of file cc2420reg.h.

#define CC2420RAM_SABUF   0x120

Definition at line 110 of file cc2420reg.h.

#define CC2420RAM_SHORTADDR   0x16A

Definition at line 116 of file cc2420reg.h.

#define CC2420RAM_TXFIFO   0x000

Definition at line 106 of file cc2420reg.h.

#define CC2420RAM_TXNONCE   0x140

Definition at line 112 of file cc2420reg.h.

#define ED_2_LQI ( ed   )     (((ed) > 63 ? 255 : ((ed) << 2)))

Definition at line 167 of file cc2420reg.h.

#define PA_LEVEL_11   0xA0EB

Definition at line 159 of file cc2420reg.h.

#define PA_LEVEL_15   0xA0EF

Definition at line 158 of file cc2420reg.h.

#define PA_LEVEL_19   0xA0F3

Definition at line 157 of file cc2420reg.h.

#define PA_LEVEL_23   0xA0F7

Definition at line 156 of file cc2420reg.h.

#define PA_LEVEL_27   0xA0FB

Definition at line 155 of file cc2420reg.h.

#define PA_LEVEL_3   0xA0E3

Definition at line 161 of file cc2420reg.h.

#define PA_LEVEL_31   0xA0FF

Definition at line 154 of file cc2420reg.h.

#define PA_LEVEL_7   0xA0E7

Definition at line 160 of file cc2420reg.h.

#define RSSI_2_ED ( rssi   )     ((rssi) < RSSI_OFFSET ? 0 : ((rssi) - (RSSI_OFFSET)))

Definition at line 166 of file cc2420reg.h.

Referenced by halRfGetRSSI(), and PT_THREAD().

#define RSSI_OFFSET   -90

Definition at line 165 of file cc2420reg.h.


Generated on Wed Jun 3 12:05:40 2009 for PowWow v1.0 by  doxygen 1.5.6