dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
Macros
pios_rfm22b_regs.h File Reference
Go to the source code of this file.
Macros
#define
RFM22B_MAX_PACKET_LEN
64
#define
RFM22B_NUM_CHANNELS
250
#define
RFM22_DEVICE_VERSION_V2
0x02
#define
RFM22_DEVICE_VERSION_A0
0x04
#define
RFM22_DEVICE_VERSION_B1
0x06
#define
BIT0
(1u << 0)
#define
BIT1
(1u << 1)
#define
BIT2
(1u << 2)
#define
BIT3
(1u << 3)
#define
BIT4
(1u << 4)
#define
BIT5
(1u << 5)
#define
BIT6
(1u << 6)
#define
BIT7
(1u << 7)
#define
RFM22_DEVICE_TYPE
0x00
#define
RFM22_DT_MASK
0x1F
#define
RFM22_DEVICE_VERSION
0x01
#define
RFM22_DV_MASK
0x1F
#define
RFM22_device_status
0x02
#define
RFM22_ds_cps_mask
0x03
#define
RFM22_ds_cps_idle
0x00
#define
RFM22_ds_cps_rx
0x01
#define
RFM22_ds_cps_tx
0x02
#define
RFM22_ds_headerr
0x10
#define
RFM22_ds_rxffem
0x20
#define
RFM22_ds_ffunfl
0x40
#define
RFM22_ds_ffovfl
0x80
#define
RFM22_interrupt_status1
0x03
#define
RFM22_is1_icrerror
BIT0
#define
RFM22_is1_ipkvalid
BIT1
#define
RFM22_is1_ipksent
BIT2
#define
RFM22_is1_iext
BIT3
#define
RFM22_is1_irxffafull
BIT4
#define
RFM22_is1_ixtffaem
BIT5
#define
RFM22_is1_itxffafull
BIT6
#define
RFM22_is1_ifferr
BIT7
#define
RFM22_interrupt_status2
0x04
#define
RFM22_is2_ipor
BIT0
#define
RFM22_is2_ichiprdy
BIT1
#define
RFM22_is2_ilbd
BIT2
#define
RFM22_is2_iwut
BIT3
#define
RFM22_is2_irssi
BIT4
#define
RFM22_is2_ipreainval
BIT5
#define
RFM22_is2_ipreaval
BIT6
#define
RFM22_is2_iswdet
BIT7
#define
RFM22_interrupt_enable1
0x05
#define
RFM22_ie1_encrcerror
BIT0
#define
RFM22_ie1_enpkvalid
BIT1
#define
RFM22_ie1_enpksent
BIT2
#define
RFM22_ie1_enext
BIT3
#define
RFM22_ie1_enrxffafull
BIT4
#define
RFM22_ie1_entxffaem
BIT5
#define
RFM22_ie1_entxffafull
BIT6
#define
RFM22_ie1_enfferr
BIT7
#define
RFM22_interrupt_enable2
0x06
#define
RFM22_ie2_enpor
BIT0
#define
RFM22_ie2_enchiprdy
BIT1
#define
RFM22_ie2_enlbd
BIT2
#define
RFM22_ie2_enwut
BIT3
#define
RFM22_ie2_enrssi
BIT4
#define
RFM22_ie2_enpreainval
BIT5
#define
RFM22_ie2_enpreaval
BIT6
#define
RFM22_ie2_enswdet
BIT7
#define
RFM22_op_and_func_ctrl1
0x07
#define
RFM22_opfc1_xton
0x01
#define
RFM22_opfc1_pllon
0x02
#define
RFM22_opfc1_rxon
0x04
#define
RFM22_opfc1_txon
0x08
#define
RFM22_opfc1_x32ksel
0x10
#define
RFM22_opfc1_enwt
0x20
#define
RFM22_opfc1_enlbd
0x40
#define
RFM22_opfc1_swres
0x80
#define
RFM22_op_and_func_ctrl2
0x08
#define
RFM22_opfc2_ffclrtx
0x01
#define
RFM22_opfc2_ffclrrx
0x02
#define
RFM22_opfc2_enldm
0x04
#define
RFM22_opfc2_autotx
0x08
#define
RFM22_opfc2_rxmpk
0x10
#define
RFM22_opfc2_antdiv_mask
0xE0
#define
RFM22_xtal_osc_load_cap
0x09
#define
RFM22_xolc_xlc_mask
0x7F
#define
RFM22_xolc_xtalshft
0x80
#define
RFM22_cpu_output_clk
0x0A
#define
RFM22_coc_30MHz
0x00
#define
RFM22_coc_15MHz
0x01
#define
RFM22_coc_10MHz
0x02
#define
RFM22_coc_4MHz
0x03
#define
RFM22_coc_3MHz
0x04
#define
RFM22_coc_2MHz
0x05
#define
RFM22_coc_1MHz
0x06
#define
RFM22_coc_32768Hz
0x07
#define
RFM22_coc_enlfc
0x08
#define
RFM22_coc_0cycle
0x00
#define
RFM22_coc_128cycles
0x10
#define
RFM22_coc_256cycles
0x20
#define
RFM22_coc_512cycles
0x30
#define
RFM22_gpio0_config
0x0B
#define
RFM22_gpio0_config_por
0x00
#define
RFM22_gpio0_config_wut
0x01
#define
RFM22_gpio0_config_lbd
0x02
#define
RFM22_gpio0_config_ddi
0x03
#define
RFM22_gpio0_config_eife
0x04
#define
RFM22_gpio0_config_eire
0x05
#define
RFM22_gpio0_config_eisc
0x06
#define
RFM22_gpio0_config_ai
0x07
#define
RFM22_gpio0_config_atni
0x08
#define
RFM22_gpio0_config_atpi
0x09
#define
RFM22_gpio0_config_ddo
0x0A
#define
RFM22_gpio0_config_dto
0x0B
#define
RFM22_gpio0_config_atno
0x0C
#define
RFM22_gpio0_config_atpo
0x0D
#define
RFM22_gpio0_config_rv
0xOE
#define
RFM22_gpio0_config_dclk
0x0F
#define
RFM22_gpio0_config_txd
0x10
#define
RFM22_gpio0_config_err
0x11
#define
RFM22_gpio0_config_txstate
0x12
#define
RFM22_gpio0_config_txfifoaf
0x13
#define
RFM22_gpio0_config_rxd
0x14
#define
RFM22_gpio0_config_rxstate
0x15
#define
RFM22_gpio0_config_rxfifoaf
0x16
#define
RFM22_gpio0_config_antswt1
0x17
#define
RFM22_gpio0_config_antswt2
0x18
#define
RFM22_gpio0_config_vpd
0x19
#define
RFM22_gpio0_config_ipd
0x1A
#define
RFM22_gpio0_config_swd
0x1B
#define
RFM22_gpio0_config_cca
0x1C
#define
RFM22_gpio0_config_vdd
0x1D
#define
RFM22_gpio0_config_pup
0x20
#define
RFM22_gpio0_config_drv0
0x00
#define
RFM22_gpio0_config_drv1
0x40
#define
RFM22_gpio0_config_drv2
0x80
#define
RFM22_gpio0_config_drv3
0xC0
#define
RFM22_gpio1_config
0x0C
#define
RFM22_gpio1_config_ipor
0x00
#define
RFM22_gpio1_config_wut
0x01
#define
RFM22_gpio1_config_lbd
0x02
#define
RFM22_gpio1_config_ddi
0x03
#define
RFM22_gpio1_config_eife
0x04
#define
RFM22_gpio1_config_eire
0x05
#define
RFM22_gpio1_config_eisc
0x06
#define
RFM22_gpio1_config_ai
0x07
#define
RFM22_gpio1_config_atni
0x08
#define
RFM22_gpio1_config_atpi
0x09
#define
RFM22_gpio1_config_ddo
0x0A
#define
RFM22_gpio1_config_dto
0x0B
#define
RFM22_gpio1_config_atno
0x0C
#define
RFM22_gpio1_config_atpo
0x0D
#define
RFM22_gpio1_config_rv
0xOE
#define
RFM22_gpio1_config_dclk
0x0F
#define
RFM22_gpio1_config_txd
0x10
#define
RFM22_gpio1_config_err
0x11
#define
RFM22_gpio1_config_txstate
0x12
#define
RFM22_gpio1_config_txfifoaf
0x13
#define
RFM22_gpio1_config_rxd
0x14
#define
RFM22_gpio1_config_rxstate
0x15
#define
RFM22_gpio1_config_rxfifoaf
0x16
#define
RFM22_gpio1_config_antswt1
0x17
#define
RFM22_gpio1_config_antswt2
0x18
#define
RFM22_gpio1_config_vpd
0x19
#define
RFM22_gpio1_config_ipd
0x1A
#define
RFM22_gpio1_config_swd
0x1B
#define
RFM22_gpio1_config_cca
0x1C
#define
RFM22_gpio1_config_vdd
0x1D
#define
RFM22_gpio1_config_pup
0x20
#define
RFM22_gpio1_config_drv0
0x00
#define
RFM22_gpio1_config_drv1
0x40
#define
RFM22_gpio1_config_drv2
0x80
#define
RFM22_gpio1_config_drv3
0xC0
#define
RFM22_gpio2_config
0x0D
#define
RFM22_gpio2_config_mc
0x00
#define
RFM22_gpio2_config_wut
0x01
#define
RFM22_gpio2_config_lbd
0x02
#define
RFM22_gpio2_config_ddi
0x03
#define
RFM22_gpio2_config_eife
0x04
#define
RFM22_gpio2_config_eire
0x05
#define
RFM22_gpio2_config_eisc
0x06
#define
RFM22_gpio2_config_ai
0x07
#define
RFM22_gpio2_config_atni
0x08
#define
RFM22_gpio2_config_atpi
0x09
#define
RFM22_gpio2_config_ddo
0x0A
#define
RFM22_gpio2_config_dto
0x0B
#define
RFM22_gpio2_config_atno
0x0C
#define
RFM22_gpio2_config_atpo
0x0D
#define
RFM22_gpio2_config_rv
0xOE
#define
RFM22_gpio2_config_dclk
0x0F
#define
RFM22_gpio2_config_txd
0x10
#define
RFM22_gpio2_config_err
0x11
#define
RFM22_gpio2_config_txstate
0x12
#define
RFM22_gpio2_config_txfifoaf
0x13
#define
RFM22_gpio2_config_rxd
0x14
#define
RFM22_gpio2_config_rxstate
0x15
#define
RFM22_gpio2_config_rxfifoaf
0x16
#define
RFM22_gpio2_config_antswt1
0x17
#define
RFM22_gpio2_config_antswt2
0x18
#define
RFM22_gpio2_config_vpd
0x19
#define
RFM22_gpio2_config_ipd
0x1A
#define
RFM22_gpio2_config_swd
0x1B
#define
RFM22_gpio2_config_cca
0x1C
#define
RFM22_gpio2_config_vdd
0x1D
#define
RFM22_gpio2_config_pup
0x20
#define
RFM22_gpio2_config_drv0
0x00
#define
RFM22_gpio2_config_drv1
0x40
#define
RFM22_gpio2_config_drv2
0x80
#define
RFM22_gpio2_config_drv3
0xC0
#define
RFM22_io_port_config
0x0E
#define
RFM22_io_port_extitst2
0x40
#define
RFM22_io_port_extitst1
0x20
#define
RFM22_io_port_extitst0
0x10
#define
RFM22_io_port_itsdo
0x08
#define
RFM22_io_port_dio2
0x04
#define
RFM22_io_port_dio1
0x02
#define
RFM22_io_port_dio0
0x01
#define
RFM22_io_port_default
0x00
#define
RFM22_adc_config
0x0F
#define
RFM22_ac_adcgain0
0x00
#define
RFM22_ac_adcgain1
0x01
#define
RFM22_ac_adcgain2
0x02
#define
RFM22_ac_adcgain3
0x03
#define
RFM22_ac_adcref_bg
0x00
#define
RFM22_ac_adcref_vdd3
0x08
#define
RFM22_ac_adcref_vdd2
0x0C
#define
RFM22_ac_adcsel_temp_sensor
0x00
#define
RFM22_ac_adcsel_gpio0
0x10
#define
RFM22_ac_adcsel_gpio1
0x20
#define
RFM22_ac_adcsel_gpio2
0x30
#define
RFM22_ac_adcsel_gpio01
0x40
#define
RFM22_ac_adcsel_gpio12
0x50
#define
RFM22_ac_adcsel_gpio02
0x60
#define
RFM22_ac_adcsel_gpio_gnd
0x70
#define
RFM22_ac_adcstartbusy
0x80
#define
RFM22_adc_sensor_amp_offset
0x10
#define
RFM22_asao_adcoffs_mask
0x0F
#define
RFM22_adc_value
0x11
#define
RFM22_temp_sensor_calib
0x12
#define
RFM22_tsc_tstrim_mask
0x0F
#define
RFM22_tsc_entstrim
0x10
#define
RFM22_tsc_entsoffs
0x20
#define
RFM22_tsc_tsrange0
0x00
#define
RFM22_tsc_tsrange1
0x40
#define
RFM22_tsc_tsrange2
0x80
#define
RFM22_tsc_tsrange3
0xC0
#define
RFM22_temp_value_offset
0x13
#define
RFM22_wakeup_timer_period1
0x14
#define
RFM22_wakeup_timer_period2
0x15
#define
RFM22_wakeup_timer_period3
0x16
#define
RFM22_wakeup_timer_value1
0x17
#define
RFM22_wakeup_timer_value2
0x18
#define
RFM22_low_dutycycle_mode_duration
0x19
#define
RFM22_low_battery_detector_threshold
0x1A
#define
RFM22_battery_volateg_level
0x1B
#define
RFM22_if_filter_bandwidth
0x1C
#define
RFM22_iffbw_filset_mask
0x0F
#define
RFM22_iffbw_ndec_exp_mask
0x70
#define
RFM22_iffbw_dwn3_bypass
0x80
#define
RFM22_afc_loop_gearshift_override
0x1D
#define
RFM22_afc_lp_gs_ovrd_afcgearl_mask
0x07
#define
RFM22_afc_lp_gs_ovrd_afcgearh_mask
0x38
#define
RFM22_afc_lp_gs_ovrd_enafc
0x40
#define
RFM22_afc_lp_gs_ovrd_afcbd
0x80
#define
RFM22_afc_timing_control
0x1E
#define
RFM22_clk_recovery_gearshift_override
0x1F
#define
RFM22_clk_recovery_oversampling_ratio
0x20
#define
RFM22_clk_recovery_offset2
0x21
#define
RFM22_clk_recovery_offset1
0x22
#define
RFM22_clk_recovery_offset0
0x23
#define
RFM22_clk_recovery_timing_loop_gain1
0x24
#define
RFM22_clk_recovery_timing_loop_gain0
0x25
#define
RFM22_rssi
0x26
#define
RFM22_rssi_threshold_clear_chan_indicator
0x27
#define
RFM22_antenna_diversity_register1
0x28
#define
RFM22_antenna_diversity_register2
0x29
#define
RFM22_afc_limiter
0x2A
#define
RFM22_afc_correction_read
0x2B
#define
RFM22_ook_counter_value1
0x2C
#define
RFM22_ook_counter_value2
0x2D
#define
RFM22_slicer_peak_hold
0x2E
#define
RFM22_data_access_control
0x30
#define
RFM22_dac_crc_ccitt
0x00
#define
RFM22_dac_crc_crc16
0x01
#define
RFM22_dac_crc_iec16
0x02
#define
RFM22_dac_crc_biacheva
0x03
#define
RFM22_dac_encrc
0x04
#define
RFM22_dac_enpactx
0x08
#define
RFM22_dac_skip2ph
0x10
#define
RFM22_dac_crcdonly
0x20
#define
RFM22_dac_lsbfrst
0x40
#define
RFM22_dac_enpacrx
0x80
#define
RFM22_ezmac_status
0x31
#define
RFM22_ezmac_status_pksent
0x01
#define
RFM22_ezmac_status_pktx
0x02
#define
RFM22_ezmac_status_crcerror
0x04
#define
RFM22_ezmac_status_pkvalid
0x08
#define
RFM22_ezmac_status_pkrx
0x10
#define
RFM22_ezmac_status_pksrch
0x20
#define
RFM22_ezmac_status_rxcrc1
0x40
#define
RFM22_header_control1
0x32
#define
RFM22_header_cntl1_bcen_none
0x00
#define
RFM22_header_cntl1_bcen_0
0x10
#define
RFM22_header_cntl1_bcen_1
0x20
#define
RFM22_header_cntl1_bcen_2
0x40
#define
RFM22_header_cntl1_bcen_3
0x80
#define
RFM22_header_cntl1_hdch_none
0x00
#define
RFM22_header_cntl1_hdch_0
0x01
#define
RFM22_header_cntl1_hdch_1
0x02
#define
RFM22_header_cntl1_hdch_2
0x04
#define
RFM22_header_cntl1_hdch_3
0x08
#define
RFM22_header_control2
0x33
#define
RFM22_header_cntl2_prealen
0x01
#define
RFM22_header_cntl2_synclen_3
0x00
#define
RFM22_header_cntl2_synclen_32
0x02
#define
RFM22_header_cntl2_synclen_321
0x04
#define
RFM22_header_cntl2_synclen_3210
0x06
#define
RFM22_header_cntl2_fixpklen
0x08
#define
RFM22_header_cntl2_hdlen_none
0x00
#define
RFM22_header_cntl2_hdlen_3
0x10
#define
RFM22_header_cntl2_hdlen_32
0x20
#define
RFM22_header_cntl2_hdlen_321
0x30
#define
RFM22_header_cntl2_hdlen_3210
0x40
#define
RFM22_header_cntl2_skipsyn
0x80
#define
RFM22_preamble_length
0x34
#define
RFM22_preamble_detection_ctrl1
0x35
#define
RFM22_pre_det_ctrl1_preath_mask
0xF8
#define
RFM22_pre_det_ctrl1_rssi_offset_mask
0x07
#define
RFM22_sync_word3
0x36
#define
RFM22_sync_word2
0x37
#define
RFM22_sync_word1
0x38
#define
RFM22_sync_word0
0x39
#define
RFM22_transmit_header3
0x3A
#define
RFM22_transmit_header2
0x3B
#define
RFM22_transmit_header1
0x3C
#define
RFM22_transmit_header0
0x3D
#define
RFM22_transmit_packet_length
0x3E
#define
RFM22_check_header3
0x3F
#define
RFM22_check_header2
0x40
#define
RFM22_check_header1
0x41
#define
RFM22_check_header0
0x42
#define
RFM22_header_enable3
0x43
#define
RFM22_header_enable2
0x44
#define
RFM22_header_enable1
0x45
#define
RFM22_header_enable0
0x46
#define
RFM22_received_header3
0x47
#define
RFM22_received_header2
0x48
#define
RFM22_received_header1
0x49
#define
RFM22_received_header0
0x4A
#define
RFM22_received_packet_length
0x4B
#define
RFM22_adc8_control
0x4F
#define
RFM22_channel_filter_coeff_addr
0x60
#define
RFM22_ch_fil_coeff_ad_inv_pre_th_mask
0xF0
#define
RFM22_ch_fil_coeff_ad_chfiladd_mask
0x0F
#define
RFM22_xtal_osc_por_ctrl
0x62
#define
RFM22_xtal_osc_por_ctrl_pwst_mask
0xE0
#define
RFM22_xtal_osc_por_ctrl_clkhyst
0x10
#define
RFM22_xtal_osc_por_ctrl_enbias2x
0x08
#define
RFM22_xtal_osc_por_ctrl_enamp2x
0x04
#define
RFM22_xtal_osc_por_ctrl_bufovr
0x02
#define
RFM22_xtal_osc_por_ctrl_enbuf
0x01
#define
RFM22_agc_override1
0x69
#define
RFM22_agc_ovr1_sgi
0x40
#define
RFM22_agc_ovr1_agcen
0x20
#define
RFM22_agc_ovr1_lnagain
0x10
#define
RFM22_agc_ovr1_pga_mask
0x0F
#define
RFM22_tx_power
0x6D
#define
RFM22_tx_pwr_lna_sw
0x08
#define
RFM22_tx_data_rate1
0x6E
#define
RFM22_tx_data_rate0
0x6F
#define
RFM22_modulation_mode_control1
0x70
#define
RFM22_mmc1_enwhite
0x01
#define
RFM22_mmc1_enmanch
0x02
#define
RFM22_mmc1_enmaninv
0x04
#define
RFM22_mmc1_manppol
0x08
#define
RFM22_mmc1_enphpwdn
0x10
#define
RFM22_mmc1_txdtrtscale
0x20
#define
RFM22_modulation_mode_control2
0x71
#define
RFM22_mmc2_modtyp_mask
0x03
#define
RFM22_mmc2_modtyp_none
0x00
#define
RFM22_mmc2_modtyp_ook
0x01
#define
RFM22_mmc2_modtyp_fsk
0x02
#define
RFM22_mmc2_modtyp_gfsk
0x03
#define
RFM22_mmc2_fd
0x04
#define
RFM22_mmc2_eninv
0x08
#define
RFM22_mmc2_dtmod_mask
0x30
#define
RFM22_mmc2_dtmod_dm_gpio
0x00
#define
RFM22_mmc2_dtmod_dm_sdi
0x10
#define
RFM22_mmc2_dtmod_fifo
0x20
#define
RFM22_mmc2_dtmod_pn9
0x30
#define
RFM22_mmc2_trclk_mask
0xC0
#define
RFM22_mmc2_trclk_clk_none
0x00
#define
RFM22_mmc2_trclk_clk_gpio
0x40
#define
RFM22_mmc2_trclk_clk_sdo
0x80
#define
RFM22_mmc2_trclk_clk_nirq
0xC0
#define
RFM22_frequency_deviation
0x72
#define
RFM22_frequency_offset1
0x73
#define
RFM22_frequency_offset2
0x74
#define
RFM22_frequency_band_select
0x75
#define
RFM22_fb_mask
0x1F
#define
RFM22_fbs_hbsel
0x20
#define
RFM22_fbs_sbse
0x40
#define
RFM22_nominal_carrier_frequency1
0x76
#define
RFM22_nominal_carrier_frequency0
0x77
#define
RFM22_frequency_hopping_channel_select
0x79
#define
RFM22_frequency_hopping_step_size
0x7A
#define
RFM22_tx_fifo_control1
0x7C
#define
RFM22_tx_fifo_control1_mask
0x3F
#define
RFM22_tx_fifo_control2
0x7D
#define
RFM22_tx_fifo_control2_mask
0x3F
#define
RFM22_rx_fifo_control
0x7E
#define
RFM22_rx_fifo_control_mask
0x3F
#define
RFM22_fifo_access
0x7F
flight
PiOS
inc
pios_rfm22b_regs.h
Generated by
1.8.6