ccrf 2.0.0.0

Topics

 MikroBUS
 
 Error Code
 

Macros

#define CCRF_IOCFG2   0x00
 
#define CCRF_IOCFG1   0x01
 
#define CCRF_IOCFG0   0x02
 
#define CCRF_FIFOTHR   0x03
 
#define CCRF_SYNC1   0x04
 
#define CCRF_SYNC0   0x05
 
#define CCRF_PKTLEN   0x06
 
#define CCRF_PKTCTRL1   0x07
 
#define CCRF_PKTCTRL0   0x08
 
#define CCRF_ADDR   0x09
 
#define CCRF_CHANNR   0x0A
 
#define CCRF_FSCTRL1   0x0B
 
#define CCRF_FSCTRL0   0x0C
 
#define CCRF_FREQ2   0x0D
 
#define CCRF_FREQ1   0x0E
 
#define CCRF_FREQ0   0x0F
 
#define CCRF_MDMCFG4   0x10
 
#define CCRF_MDMCFG3   0x11
 
#define CCRF_MDMCFG2   0x12
 
#define CCRF_MDMCFG1   0x13
 
#define CCRF_MDMCFG0   0x14
 
#define CCRF_DEVIATN   0x15
 
#define CCRF_MCSM2   0x16
 
#define CCRF_MCSM1   0x17
 
#define CCRF_MCSM0   0x18
 
#define CCRF_FOCCFG   0x19
 
#define CCRF_BSCFG   0x1A
 
#define CCRF_AGCCTRL2   0x1B
 
#define CCRF_AGCCTRL1   0x1C
 
#define CCRF_AGCCTRL0   0x1D
 
#define CCRF_WOREVT1   0x1E
 
#define CCRF_WOREVT0   0x1F
 
#define CCRF_WORCTRL   0x20
 
#define CCRF_FREND1   0x21
 
#define CCRF_FREND0   0x22
 
#define CCRF_FSCAL3   0x23
 
#define CCRF_FSCAL2   0x24
 
#define CCRF_FSCAL1   0x25
 
#define CCRF_FSCAL0   0x26
 
#define CCRF_RCCTRL1   0x27
 
#define CCRF_RCCTRL0   0x28
 
#define CCRF_FSTEST   0x29
 
#define CCRF_PTEST   0x2A
 
#define CCRF_AGCTEST   0x2B
 
#define CCRF_TEST2   0x2C
 
#define CCRF_TEST1   0x2D
 
#define CCRF_TEST0   0x2E
 
#define CCRF_SRES   0x30
 
#define CCRF_SFSTXON   0x31
 
#define CCRF_SXOFF   0x32
 
#define CCRF_SCAL   0x33
 
#define CCRF_SRX   0x34
 
#define CCRF_STX   0x35
 
#define CCRF_SIDLE   0x36
 
#define CCRF_SAFC   0x37
 
#define CCRF_SWOR   0x38
 
#define CCRF_SPWD   0x39
 
#define CCRF_SFRX   0x3A
 
#define CCRF_SFTX   0x3B
 
#define CCRF_SWORRST   0x3C
 
#define CCRF_SNOP   0x3D
 
#define CCRF_PARTNUM   0x30
 
#define CCRF_VERSION   0x31
 
#define CCRF_FREQEST   0x32
 
#define CCRF_LQI   0x33
 
#define CCRF_RSSI   0x34
 
#define CCRF_MARCSTATE   0x35
 
#define CCRF_WORTIME1   0x36
 
#define CCRF_WORTIME0   0x37
 
#define CCRF_PKTSTATUS   0x38
 
#define CCRF_VCO_VC_DAC   0x39
 
#define CCRF_TXBYTES   0x3A
 
#define CCRF_RXBYTES   0x3B
 
#define CCRF_RCCTRL1_STATUS   0x3C
 
#define CCRF_RCCTRL0_STATUS   0x3D
 
#define CCRF_NUM_RXBYTES   0x7F
 
#define CCRF_PATABLE   0x3E
 
#define CCRF_TXFIFO   0x3F
 
#define CCRF_RXFIFO   0x3F
 
#define CCRF_LQI_RX   0x01
 
#define CCRF_CRC_OK   0x80
 
#define CCRF_WRITE_BURST   0x40
 
#define CCRF_READ_SINGLE   0x80
 
#define CCRF_READ_BURST   0xC0
 
#define CCRF_RECEIVE_CRC_ERROR   0x00
 
#define CCRF_RECEIVE_CRC_OK   0x80
 
#define CCRF_BURST_IN_RXFIFO   0x7F
 
#define CCRF_SINGLE_TXFIFO   0x3F
 
#define CCRF_BURST_TXFIFO   0x7F
 
#define CCRF_SINGLE_RXFIFO   0xBF
 
#define CCRF_BURST_RXFIFO   0xFF
 
#define CCRF_TX_MODE   0
 
#define CCRF_RX_MODE   1
 
#define CCRF_IDLE_MODE   2
 

Detailed Description

Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.

Macro Definition Documentation

◆ CCRF_ADDR

#define CCRF_ADDR   0x09

◆ CCRF_AGCCTRL0

#define CCRF_AGCCTRL0   0x1D

◆ CCRF_AGCCTRL1

#define CCRF_AGCCTRL1   0x1C

◆ CCRF_AGCCTRL2

#define CCRF_AGCCTRL2   0x1B

◆ CCRF_AGCTEST

#define CCRF_AGCTEST   0x2B

◆ CCRF_BSCFG

#define CCRF_BSCFG   0x1A

◆ CCRF_BURST_IN_RXFIFO

#define CCRF_BURST_IN_RXFIFO   0x7F

◆ CCRF_BURST_RXFIFO

#define CCRF_BURST_RXFIFO   0xFF

◆ CCRF_BURST_TXFIFO

#define CCRF_BURST_TXFIFO   0x7F

◆ CCRF_CHANNR

#define CCRF_CHANNR   0x0A

◆ CCRF_CRC_OK

#define CCRF_CRC_OK   0x80

◆ CCRF_DEVIATN

#define CCRF_DEVIATN   0x15

◆ CCRF_FIFOTHR

#define CCRF_FIFOTHR   0x03

◆ CCRF_FOCCFG

#define CCRF_FOCCFG   0x19

◆ CCRF_FREND0

#define CCRF_FREND0   0x22

◆ CCRF_FREND1

#define CCRF_FREND1   0x21

◆ CCRF_FREQ0

#define CCRF_FREQ0   0x0F

◆ CCRF_FREQ1

#define CCRF_FREQ1   0x0E

◆ CCRF_FREQ2

#define CCRF_FREQ2   0x0D

◆ CCRF_FREQEST

#define CCRF_FREQEST   0x32

◆ CCRF_FSCAL0

#define CCRF_FSCAL0   0x26

◆ CCRF_FSCAL1

#define CCRF_FSCAL1   0x25

◆ CCRF_FSCAL2

#define CCRF_FSCAL2   0x24

◆ CCRF_FSCAL3

#define CCRF_FSCAL3   0x23

◆ CCRF_FSCTRL0

#define CCRF_FSCTRL0   0x0C

◆ CCRF_FSCTRL1

#define CCRF_FSCTRL1   0x0B

◆ CCRF_FSTEST

#define CCRF_FSTEST   0x29

◆ CCRF_IDLE_MODE

#define CCRF_IDLE_MODE   2

◆ CCRF_IOCFG0

#define CCRF_IOCFG0   0x02

◆ CCRF_IOCFG1

#define CCRF_IOCFG1   0x01

◆ CCRF_IOCFG2

#define CCRF_IOCFG2   0x00

◆ CCRF_LQI

#define CCRF_LQI   0x33

◆ CCRF_LQI_RX

#define CCRF_LQI_RX   0x01

◆ CCRF_MARCSTATE

#define CCRF_MARCSTATE   0x35

◆ CCRF_MCSM0

#define CCRF_MCSM0   0x18

◆ CCRF_MCSM1

#define CCRF_MCSM1   0x17

◆ CCRF_MCSM2

#define CCRF_MCSM2   0x16

◆ CCRF_MDMCFG0

#define CCRF_MDMCFG0   0x14

◆ CCRF_MDMCFG1

#define CCRF_MDMCFG1   0x13

◆ CCRF_MDMCFG2

#define CCRF_MDMCFG2   0x12

◆ CCRF_MDMCFG3

#define CCRF_MDMCFG3   0x11

◆ CCRF_MDMCFG4

#define CCRF_MDMCFG4   0x10

◆ CCRF_NUM_RXBYTES

#define CCRF_NUM_RXBYTES   0x7F

◆ CCRF_PARTNUM

#define CCRF_PARTNUM   0x30

◆ CCRF_PATABLE

#define CCRF_PATABLE   0x3E

◆ CCRF_PKTCTRL0

#define CCRF_PKTCTRL0   0x08

◆ CCRF_PKTCTRL1

#define CCRF_PKTCTRL1   0x07

◆ CCRF_PKTLEN

#define CCRF_PKTLEN   0x06

◆ CCRF_PKTSTATUS

#define CCRF_PKTSTATUS   0x38

◆ CCRF_PTEST

#define CCRF_PTEST   0x2A

◆ CCRF_RCCTRL0

#define CCRF_RCCTRL0   0x28

◆ CCRF_RCCTRL0_STATUS

#define CCRF_RCCTRL0_STATUS   0x3D

◆ CCRF_RCCTRL1

#define CCRF_RCCTRL1   0x27

◆ CCRF_RCCTRL1_STATUS

#define CCRF_RCCTRL1_STATUS   0x3C

◆ CCRF_READ_BURST

#define CCRF_READ_BURST   0xC0

◆ CCRF_READ_SINGLE

#define CCRF_READ_SINGLE   0x80

◆ CCRF_RECEIVE_CRC_ERROR

#define CCRF_RECEIVE_CRC_ERROR   0x00

◆ CCRF_RECEIVE_CRC_OK

#define CCRF_RECEIVE_CRC_OK   0x80

◆ CCRF_RSSI

#define CCRF_RSSI   0x34

◆ CCRF_RX_MODE

#define CCRF_RX_MODE   1

◆ CCRF_RXBYTES

#define CCRF_RXBYTES   0x3B

◆ CCRF_RXFIFO

#define CCRF_RXFIFO   0x3F

◆ CCRF_SAFC

#define CCRF_SAFC   0x37

◆ CCRF_SCAL

#define CCRF_SCAL   0x33

◆ CCRF_SFRX

#define CCRF_SFRX   0x3A

◆ CCRF_SFSTXON

#define CCRF_SFSTXON   0x31

◆ CCRF_SFTX

#define CCRF_SFTX   0x3B

◆ CCRF_SIDLE

#define CCRF_SIDLE   0x36

◆ CCRF_SINGLE_RXFIFO

#define CCRF_SINGLE_RXFIFO   0xBF

◆ CCRF_SINGLE_TXFIFO

#define CCRF_SINGLE_TXFIFO   0x3F

◆ CCRF_SNOP

#define CCRF_SNOP   0x3D

◆ CCRF_SPWD

#define CCRF_SPWD   0x39

◆ CCRF_SRES

#define CCRF_SRES   0x30

◆ CCRF_SRX

#define CCRF_SRX   0x34

◆ CCRF_STX

#define CCRF_STX   0x35

◆ CCRF_SWOR

#define CCRF_SWOR   0x38

◆ CCRF_SWORRST

#define CCRF_SWORRST   0x3C

◆ CCRF_SXOFF

#define CCRF_SXOFF   0x32

◆ CCRF_SYNC0

#define CCRF_SYNC0   0x05

◆ CCRF_SYNC1

#define CCRF_SYNC1   0x04

◆ CCRF_TEST0

#define CCRF_TEST0   0x2E

◆ CCRF_TEST1

#define CCRF_TEST1   0x2D

◆ CCRF_TEST2

#define CCRF_TEST2   0x2C

◆ CCRF_TX_MODE

#define CCRF_TX_MODE   0

◆ CCRF_TXBYTES

#define CCRF_TXBYTES   0x3A

◆ CCRF_TXFIFO

#define CCRF_TXFIFO   0x3F

◆ CCRF_VCO_VC_DAC

#define CCRF_VCO_VC_DAC   0x39

◆ CCRF_VERSION

#define CCRF_VERSION   0x31

◆ CCRF_WORCTRL

#define CCRF_WORCTRL   0x20

◆ CCRF_WOREVT0

#define CCRF_WOREVT0   0x1F

◆ CCRF_WOREVT1

#define CCRF_WOREVT1   0x1E

◆ CCRF_WORTIME0

#define CCRF_WORTIME0   0x37

◆ CCRF_WORTIME1

#define CCRF_WORTIME1   0x36

◆ CCRF_WRITE_BURST

#define CCRF_WRITE_BURST   0x40