dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

PIOS OpenLRS interface for for the RFM22B radio. More...

Files

file  pios_openlrs.c
 Implements an OpenLRS driver for the RFM22B.
 
file  pios_openlrs_rcvr.c
 Implements an OpenLRS driver for the RFM22B.
 
file  pios_openlrs.h
 Implements an OpenLRS driver for the RFM22B.
 
file  pios_openlrs_priv.h
 Implements an OpenLRS driver for the RFM22B.
 

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
 

Detailed Description

PIOS OpenLRS interface for for the RFM22B radio.

PIOS interface for RFM22B Radio.

Macro Definition Documentation

#define BIT0   (1u << 0)

Definition at line 47 of file pios_rfm22b_regs.h.

#define BIT1   (1u << 1)

Definition at line 48 of file pios_rfm22b_regs.h.

#define BIT2   (1u << 2)

Definition at line 49 of file pios_rfm22b_regs.h.

#define BIT3   (1u << 3)

Definition at line 50 of file pios_rfm22b_regs.h.

#define BIT4   (1u << 4)

Definition at line 51 of file pios_rfm22b_regs.h.

#define BIT5   (1u << 5)

Definition at line 52 of file pios_rfm22b_regs.h.

#define BIT6   (1u << 6)

Definition at line 53 of file pios_rfm22b_regs.h.

#define BIT7   (1u << 7)

Definition at line 54 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcgain0   0x00

Definition at line 275 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcgain1   0x01

Definition at line 276 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcgain2   0x02

Definition at line 277 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcgain3   0x03

Definition at line 278 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcref_bg   0x00

Definition at line 279 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcref_vdd2   0x0C

Definition at line 281 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcref_vdd3   0x08

Definition at line 280 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio0   0x10

Definition at line 283 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio01   0x40

Definition at line 286 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio02   0x60

Definition at line 288 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio1   0x20

Definition at line 284 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio12   0x50

Definition at line 287 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio2   0x30

Definition at line 285 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_gpio_gnd   0x70

Definition at line 289 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcsel_temp_sensor   0x00

Definition at line 282 of file pios_rfm22b_regs.h.

#define RFM22_ac_adcstartbusy   0x80

Definition at line 290 of file pios_rfm22b_regs.h.

#define RFM22_adc8_control   0x4F

Definition at line 438 of file pios_rfm22b_regs.h.

#define RFM22_adc_config   0x0F

Definition at line 274 of file pios_rfm22b_regs.h.

#define RFM22_adc_sensor_amp_offset   0x10

Definition at line 292 of file pios_rfm22b_regs.h.

#define RFM22_adc_value   0x11

Definition at line 295 of file pios_rfm22b_regs.h.

#define RFM22_afc_correction_read   0x2B

Definition at line 349 of file pios_rfm22b_regs.h.

#define RFM22_afc_limiter   0x2A

Definition at line 347 of file pios_rfm22b_regs.h.

#define RFM22_afc_loop_gearshift_override   0x1D

Definition at line 325 of file pios_rfm22b_regs.h.

#define RFM22_afc_lp_gs_ovrd_afcbd   0x80

Definition at line 329 of file pios_rfm22b_regs.h.

#define RFM22_afc_lp_gs_ovrd_afcgearh_mask   0x38

Definition at line 327 of file pios_rfm22b_regs.h.

#define RFM22_afc_lp_gs_ovrd_afcgearl_mask   0x07

Definition at line 326 of file pios_rfm22b_regs.h.

#define RFM22_afc_lp_gs_ovrd_enafc   0x40

Definition at line 328 of file pios_rfm22b_regs.h.

#define RFM22_afc_timing_control   0x1E

Definition at line 331 of file pios_rfm22b_regs.h.

#define RFM22_agc_override1   0x69

Definition at line 452 of file pios_rfm22b_regs.h.

#define RFM22_agc_ovr1_agcen   0x20

Definition at line 454 of file pios_rfm22b_regs.h.

#define RFM22_agc_ovr1_lnagain   0x10

Definition at line 455 of file pios_rfm22b_regs.h.

#define RFM22_agc_ovr1_pga_mask   0x0F

Definition at line 456 of file pios_rfm22b_regs.h.

#define RFM22_agc_ovr1_sgi   0x40

Definition at line 453 of file pios_rfm22b_regs.h.

#define RFM22_antenna_diversity_register1   0x28

Definition at line 344 of file pios_rfm22b_regs.h.

#define RFM22_antenna_diversity_register2   0x29

Definition at line 345 of file pios_rfm22b_regs.h.

#define RFM22_asao_adcoffs_mask   0x0F

Definition at line 293 of file pios_rfm22b_regs.h.

#define RFM22_battery_volateg_level   0x1B

Definition at line 318 of file pios_rfm22b_regs.h.

#define RFM22_ch_fil_coeff_ad_chfiladd_mask   0x0F

Definition at line 442 of file pios_rfm22b_regs.h.

#define RFM22_ch_fil_coeff_ad_inv_pre_th_mask   0xF0

Definition at line 441 of file pios_rfm22b_regs.h.

#define RFM22_channel_filter_coeff_addr   0x60

Definition at line 440 of file pios_rfm22b_regs.h.

#define RFM22_check_header0   0x42

Definition at line 424 of file pios_rfm22b_regs.h.

#define RFM22_check_header1   0x41

Definition at line 423 of file pios_rfm22b_regs.h.

#define RFM22_check_header2   0x40

Definition at line 422 of file pios_rfm22b_regs.h.

#define RFM22_check_header3   0x3F

Definition at line 421 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_gearshift_override   0x1F

Definition at line 333 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_offset0   0x23

Definition at line 337 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_offset1   0x22

Definition at line 336 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_offset2   0x21

Definition at line 335 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_oversampling_ratio   0x20

Definition at line 334 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_timing_loop_gain0   0x25

Definition at line 339 of file pios_rfm22b_regs.h.

#define RFM22_clk_recovery_timing_loop_gain1   0x24

Definition at line 338 of file pios_rfm22b_regs.h.

#define RFM22_coc_0cycle   0x00

Definition at line 148 of file pios_rfm22b_regs.h.

#define RFM22_coc_10MHz   0x02

Definition at line 141 of file pios_rfm22b_regs.h.

#define RFM22_coc_128cycles   0x10

Definition at line 149 of file pios_rfm22b_regs.h.

#define RFM22_coc_15MHz   0x01

Definition at line 140 of file pios_rfm22b_regs.h.

#define RFM22_coc_1MHz   0x06

Definition at line 145 of file pios_rfm22b_regs.h.

#define RFM22_coc_256cycles   0x20

Definition at line 150 of file pios_rfm22b_regs.h.

#define RFM22_coc_2MHz   0x05

Definition at line 144 of file pios_rfm22b_regs.h.

#define RFM22_coc_30MHz   0x00

Definition at line 139 of file pios_rfm22b_regs.h.

#define RFM22_coc_32768Hz   0x07

Definition at line 146 of file pios_rfm22b_regs.h.

#define RFM22_coc_3MHz   0x04

Definition at line 143 of file pios_rfm22b_regs.h.

#define RFM22_coc_4MHz   0x03

Definition at line 142 of file pios_rfm22b_regs.h.

#define RFM22_coc_512cycles   0x30

Definition at line 151 of file pios_rfm22b_regs.h.

#define RFM22_coc_enlfc   0x08

Definition at line 147 of file pios_rfm22b_regs.h.

#define RFM22_cpu_output_clk   0x0A

Definition at line 138 of file pios_rfm22b_regs.h.

#define RFM22_dac_crc_biacheva   0x03

Definition at line 360 of file pios_rfm22b_regs.h.

#define RFM22_dac_crc_ccitt   0x00

Definition at line 357 of file pios_rfm22b_regs.h.

#define RFM22_dac_crc_crc16   0x01

Definition at line 358 of file pios_rfm22b_regs.h.

#define RFM22_dac_crc_iec16   0x02

Definition at line 359 of file pios_rfm22b_regs.h.

#define RFM22_dac_crcdonly   0x20

Definition at line 364 of file pios_rfm22b_regs.h.

#define RFM22_dac_encrc   0x04

Definition at line 361 of file pios_rfm22b_regs.h.

#define RFM22_dac_enpacrx   0x80

Definition at line 366 of file pios_rfm22b_regs.h.

#define RFM22_dac_enpactx   0x08

Definition at line 362 of file pios_rfm22b_regs.h.

#define RFM22_dac_lsbfrst   0x40

Definition at line 365 of file pios_rfm22b_regs.h.

#define RFM22_dac_skip2ph   0x10

Definition at line 363 of file pios_rfm22b_regs.h.

#define RFM22_data_access_control   0x30

Definition at line 356 of file pios_rfm22b_regs.h.

#define RFM22_device_status   0x02

Definition at line 64 of file pios_rfm22b_regs.h.

#define RFM22_DEVICE_TYPE   0x00

Definition at line 58 of file pios_rfm22b_regs.h.

#define RFM22_DEVICE_VERSION   0x01

Definition at line 61 of file pios_rfm22b_regs.h.

#define RFM22_DEVICE_VERSION_A0   0x04

Definition at line 42 of file pios_rfm22b_regs.h.

#define RFM22_DEVICE_VERSION_B1   0x06

Definition at line 43 of file pios_rfm22b_regs.h.

#define RFM22_DEVICE_VERSION_V2   0x02

Definition at line 41 of file pios_rfm22b_regs.h.

#define RFM22_ds_cps_idle   0x00

Definition at line 66 of file pios_rfm22b_regs.h.

#define RFM22_ds_cps_mask   0x03

Definition at line 65 of file pios_rfm22b_regs.h.

#define RFM22_ds_cps_rx   0x01

Definition at line 67 of file pios_rfm22b_regs.h.

#define RFM22_ds_cps_tx   0x02

Definition at line 68 of file pios_rfm22b_regs.h.

#define RFM22_ds_ffovfl   0x80

Definition at line 74 of file pios_rfm22b_regs.h.

#define RFM22_ds_ffunfl   0x40

Definition at line 73 of file pios_rfm22b_regs.h.

#define RFM22_ds_headerr   0x10

Definition at line 71 of file pios_rfm22b_regs.h.

#define RFM22_ds_rxffem   0x20

Definition at line 72 of file pios_rfm22b_regs.h.

#define RFM22_DT_MASK   0x1F

Definition at line 59 of file pios_rfm22b_regs.h.

#define RFM22_DV_MASK   0x1F

Definition at line 62 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status   0x31

Definition at line 368 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_crcerror   0x04

Definition at line 371 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_pkrx   0x10

Definition at line 373 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_pksent   0x01

Definition at line 369 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_pksrch   0x20

Definition at line 374 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_pktx   0x02

Definition at line 370 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_pkvalid   0x08

Definition at line 372 of file pios_rfm22b_regs.h.

#define RFM22_ezmac_status_rxcrc1   0x40

Definition at line 375 of file pios_rfm22b_regs.h.

#define RFM22_fb_mask   0x1F

Definition at line 497 of file pios_rfm22b_regs.h.

#define RFM22_fbs_hbsel   0x20

Definition at line 498 of file pios_rfm22b_regs.h.

#define RFM22_fbs_sbse   0x40

Definition at line 499 of file pios_rfm22b_regs.h.

#define RFM22_fifo_access   0x7F

Definition at line 516 of file pios_rfm22b_regs.h.

#define RFM22_frequency_band_select   0x75

Definition at line 496 of file pios_rfm22b_regs.h.

#define RFM22_frequency_deviation   0x72

Definition at line 491 of file pios_rfm22b_regs.h.

#define RFM22_frequency_hopping_channel_select   0x79

Definition at line 504 of file pios_rfm22b_regs.h.

#define RFM22_frequency_hopping_step_size   0x7A

Definition at line 505 of file pios_rfm22b_regs.h.

#define RFM22_frequency_offset1   0x73

Definition at line 493 of file pios_rfm22b_regs.h.

#define RFM22_frequency_offset2   0x74

Definition at line 494 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config   0x0B

Definition at line 153 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_ai   0x07

Definition at line 161 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_antswt1   0x17

Definition at line 177 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_antswt2   0x18

Definition at line 178 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_atni   0x08

Definition at line 162 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_atno   0x0C

Definition at line 166 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_atpi   0x09

Definition at line 163 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_atpo   0x0D

Definition at line 167 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_cca   0x1C

Definition at line 182 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_dclk   0x0F

Definition at line 169 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_ddi   0x03

Definition at line 157 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_ddo   0x0A

Definition at line 164 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_drv0   0x00

Definition at line 185 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_drv1   0x40

Definition at line 186 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_drv2   0x80

Definition at line 187 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_drv3   0xC0

Definition at line 188 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_dto   0x0B

Definition at line 165 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_eife   0x04

Definition at line 158 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_eire   0x05

Definition at line 159 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_eisc   0x06

Definition at line 160 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_err   0x11

Definition at line 171 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_ipd   0x1A

Definition at line 180 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_lbd   0x02

Definition at line 156 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_por   0x00

Definition at line 154 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_pup   0x20

Definition at line 184 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_rv   0xOE

Definition at line 168 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_rxd   0x14

Definition at line 174 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_rxfifoaf   0x16

Definition at line 176 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_rxstate   0x15

Definition at line 175 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_swd   0x1B

Definition at line 181 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_txd   0x10

Definition at line 170 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_txfifoaf   0x13

Definition at line 173 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_txstate   0x12

Definition at line 172 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_vdd   0x1D

Definition at line 183 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_vpd   0x19

Definition at line 179 of file pios_rfm22b_regs.h.

#define RFM22_gpio0_config_wut   0x01

Definition at line 155 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config   0x0C

Definition at line 190 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_ai   0x07

Definition at line 198 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_antswt1   0x17

Definition at line 214 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_antswt2   0x18

Definition at line 215 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_atni   0x08

Definition at line 199 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_atno   0x0C

Definition at line 203 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_atpi   0x09

Definition at line 200 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_atpo   0x0D

Definition at line 204 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_cca   0x1C

Definition at line 219 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_dclk   0x0F

Definition at line 206 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_ddi   0x03

Definition at line 194 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_ddo   0x0A

Definition at line 201 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_drv0   0x00

Definition at line 222 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_drv1   0x40

Definition at line 223 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_drv2   0x80

Definition at line 224 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_drv3   0xC0

Definition at line 225 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_dto   0x0B

Definition at line 202 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_eife   0x04

Definition at line 195 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_eire   0x05

Definition at line 196 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_eisc   0x06

Definition at line 197 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_err   0x11

Definition at line 208 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_ipd   0x1A

Definition at line 217 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_ipor   0x00

Definition at line 191 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_lbd   0x02

Definition at line 193 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_pup   0x20

Definition at line 221 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_rv   0xOE

Definition at line 205 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_rxd   0x14

Definition at line 211 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_rxfifoaf   0x16

Definition at line 213 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_rxstate   0x15

Definition at line 212 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_swd   0x1B

Definition at line 218 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_txd   0x10

Definition at line 207 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_txfifoaf   0x13

Definition at line 210 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_txstate   0x12

Definition at line 209 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_vdd   0x1D

Definition at line 220 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_vpd   0x19

Definition at line 216 of file pios_rfm22b_regs.h.

#define RFM22_gpio1_config_wut   0x01

Definition at line 192 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config   0x0D

Definition at line 227 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_ai   0x07

Definition at line 235 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_antswt1   0x17

Definition at line 251 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_antswt2   0x18

Definition at line 252 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_atni   0x08

Definition at line 236 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_atno   0x0C

Definition at line 240 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_atpi   0x09

Definition at line 237 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_atpo   0x0D

Definition at line 241 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_cca   0x1C

Definition at line 256 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_dclk   0x0F

Definition at line 243 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_ddi   0x03

Definition at line 231 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_ddo   0x0A

Definition at line 238 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_drv0   0x00

Definition at line 259 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_drv1   0x40

Definition at line 260 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_drv2   0x80

Definition at line 261 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_drv3   0xC0

Definition at line 262 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_dto   0x0B

Definition at line 239 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_eife   0x04

Definition at line 232 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_eire   0x05

Definition at line 233 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_eisc   0x06

Definition at line 234 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_err   0x11

Definition at line 245 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_ipd   0x1A

Definition at line 254 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_lbd   0x02

Definition at line 230 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_mc   0x00

Definition at line 228 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_pup   0x20

Definition at line 258 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_rv   0xOE

Definition at line 242 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_rxd   0x14

Definition at line 248 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_rxfifoaf   0x16

Definition at line 250 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_rxstate   0x15

Definition at line 249 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_swd   0x1B

Definition at line 255 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_txd   0x10

Definition at line 244 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_txfifoaf   0x13

Definition at line 247 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_txstate   0x12

Definition at line 246 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_vdd   0x1D

Definition at line 257 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_vpd   0x19

Definition at line 253 of file pios_rfm22b_regs.h.

#define RFM22_gpio2_config_wut   0x01

Definition at line 229 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_bcen_0   0x10

Definition at line 379 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_bcen_1   0x20

Definition at line 380 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_bcen_2   0x40

Definition at line 381 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_bcen_3   0x80

Definition at line 382 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_bcen_none   0x00

Definition at line 378 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_hdch_0   0x01

Definition at line 384 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_hdch_1   0x02

Definition at line 385 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_hdch_2   0x04

Definition at line 386 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_hdch_3   0x08

Definition at line 387 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl1_hdch_none   0x00

Definition at line 383 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_fixpklen   0x08

Definition at line 395 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_hdlen_3   0x10

Definition at line 397 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_hdlen_32   0x20

Definition at line 398 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_hdlen_321   0x30

Definition at line 399 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_hdlen_3210   0x40

Definition at line 400 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_hdlen_none   0x00

Definition at line 396 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_prealen   0x01

Definition at line 390 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_skipsyn   0x80

Definition at line 401 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_synclen_3   0x00

Definition at line 391 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_synclen_32   0x02

Definition at line 392 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_synclen_321   0x04

Definition at line 393 of file pios_rfm22b_regs.h.

#define RFM22_header_cntl2_synclen_3210   0x06

Definition at line 394 of file pios_rfm22b_regs.h.

#define RFM22_header_control1   0x32

Definition at line 377 of file pios_rfm22b_regs.h.

#define RFM22_header_control2   0x33

Definition at line 389 of file pios_rfm22b_regs.h.

#define RFM22_header_enable0   0x46

Definition at line 429 of file pios_rfm22b_regs.h.

#define RFM22_header_enable1   0x45

Definition at line 428 of file pios_rfm22b_regs.h.

#define RFM22_header_enable2   0x44

Definition at line 427 of file pios_rfm22b_regs.h.

#define RFM22_header_enable3   0x43

Definition at line 426 of file pios_rfm22b_regs.h.

#define RFM22_ie1_encrcerror   BIT0

Definition at line 97 of file pios_rfm22b_regs.h.

#define RFM22_ie1_enext   BIT3

Definition at line 100 of file pios_rfm22b_regs.h.

#define RFM22_ie1_enfferr   BIT7

Definition at line 104 of file pios_rfm22b_regs.h.

#define RFM22_ie1_enpksent   BIT2

Definition at line 99 of file pios_rfm22b_regs.h.

#define RFM22_ie1_enpkvalid   BIT1

Definition at line 98 of file pios_rfm22b_regs.h.

#define RFM22_ie1_enrxffafull   BIT4

Definition at line 101 of file pios_rfm22b_regs.h.

#define RFM22_ie1_entxffaem   BIT5

Definition at line 102 of file pios_rfm22b_regs.h.

#define RFM22_ie1_entxffafull   BIT6

Definition at line 103 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enchiprdy   BIT1

Definition at line 108 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enlbd   BIT2

Definition at line 109 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enpor   BIT0

Definition at line 107 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enpreainval   BIT5

Definition at line 112 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enpreaval   BIT6

Definition at line 113 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enrssi   BIT4

Definition at line 111 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enswdet   BIT7

Definition at line 114 of file pios_rfm22b_regs.h.

#define RFM22_ie2_enwut   BIT3

Definition at line 110 of file pios_rfm22b_regs.h.

#define RFM22_if_filter_bandwidth   0x1C

Definition at line 320 of file pios_rfm22b_regs.h.

#define RFM22_iffbw_dwn3_bypass   0x80

Definition at line 323 of file pios_rfm22b_regs.h.

#define RFM22_iffbw_filset_mask   0x0F

Definition at line 321 of file pios_rfm22b_regs.h.

#define RFM22_iffbw_ndec_exp_mask   0x70

Definition at line 322 of file pios_rfm22b_regs.h.

#define RFM22_interrupt_enable1   0x05

Definition at line 96 of file pios_rfm22b_regs.h.

#define RFM22_interrupt_enable2   0x06

Definition at line 106 of file pios_rfm22b_regs.h.

#define RFM22_interrupt_status1   0x03

Definition at line 76 of file pios_rfm22b_regs.h.

#define RFM22_interrupt_status2   0x04

Definition at line 86 of file pios_rfm22b_regs.h.

#define RFM22_io_port_config   0x0E

Definition at line 264 of file pios_rfm22b_regs.h.

#define RFM22_io_port_default   0x00

Definition at line 272 of file pios_rfm22b_regs.h.

#define RFM22_io_port_dio0   0x01

Definition at line 271 of file pios_rfm22b_regs.h.

#define RFM22_io_port_dio1   0x02

Definition at line 270 of file pios_rfm22b_regs.h.

#define RFM22_io_port_dio2   0x04

Definition at line 269 of file pios_rfm22b_regs.h.

#define RFM22_io_port_extitst0   0x10

Definition at line 267 of file pios_rfm22b_regs.h.

#define RFM22_io_port_extitst1   0x20

Definition at line 266 of file pios_rfm22b_regs.h.

#define RFM22_io_port_extitst2   0x40

Definition at line 265 of file pios_rfm22b_regs.h.

#define RFM22_io_port_itsdo   0x08

Definition at line 268 of file pios_rfm22b_regs.h.

#define RFM22_is1_icrerror   BIT0

Definition at line 77 of file pios_rfm22b_regs.h.

#define RFM22_is1_iext   BIT3

Definition at line 80 of file pios_rfm22b_regs.h.

#define RFM22_is1_ifferr   BIT7

Definition at line 84 of file pios_rfm22b_regs.h.

#define RFM22_is1_ipksent   BIT2

Definition at line 79 of file pios_rfm22b_regs.h.

#define RFM22_is1_ipkvalid   BIT1

Definition at line 78 of file pios_rfm22b_regs.h.

#define RFM22_is1_irxffafull   BIT4

Definition at line 81 of file pios_rfm22b_regs.h.

#define RFM22_is1_itxffafull   BIT6

Definition at line 83 of file pios_rfm22b_regs.h.

#define RFM22_is1_ixtffaem   BIT5

Definition at line 82 of file pios_rfm22b_regs.h.

#define RFM22_is2_ichiprdy   BIT1

Definition at line 88 of file pios_rfm22b_regs.h.

#define RFM22_is2_ilbd   BIT2

Definition at line 89 of file pios_rfm22b_regs.h.

#define RFM22_is2_ipor   BIT0

Definition at line 87 of file pios_rfm22b_regs.h.

#define RFM22_is2_ipreainval   BIT5

Definition at line 92 of file pios_rfm22b_regs.h.

#define RFM22_is2_ipreaval   BIT6

Definition at line 93 of file pios_rfm22b_regs.h.

#define RFM22_is2_irssi   BIT4

Definition at line 91 of file pios_rfm22b_regs.h.

#define RFM22_is2_iswdet   BIT7

Definition at line 94 of file pios_rfm22b_regs.h.

#define RFM22_is2_iwut   BIT3

Definition at line 90 of file pios_rfm22b_regs.h.

#define RFM22_low_battery_detector_threshold   0x1A

Definition at line 316 of file pios_rfm22b_regs.h.

#define RFM22_low_dutycycle_mode_duration   0x19

Definition at line 315 of file pios_rfm22b_regs.h.

#define RFM22_mmc1_enmanch   0x02

Definition at line 466 of file pios_rfm22b_regs.h.

#define RFM22_mmc1_enmaninv   0x04

Definition at line 467 of file pios_rfm22b_regs.h.

#define RFM22_mmc1_enphpwdn   0x10

Definition at line 469 of file pios_rfm22b_regs.h.

#define RFM22_mmc1_enwhite   0x01

Definition at line 465 of file pios_rfm22b_regs.h.

#define RFM22_mmc1_manppol   0x08

Definition at line 468 of file pios_rfm22b_regs.h.

#define RFM22_mmc1_txdtrtscale   0x20

Definition at line 470 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_dtmod_dm_gpio   0x00

Definition at line 481 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_dtmod_dm_sdi   0x10

Definition at line 482 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_dtmod_fifo   0x20

Definition at line 483 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_dtmod_mask   0x30

Definition at line 480 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_dtmod_pn9   0x30

Definition at line 484 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_eninv   0x08

Definition at line 479 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_fd   0x04

Definition at line 478 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_modtyp_fsk   0x02

Definition at line 476 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_modtyp_gfsk   0x03

Definition at line 477 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_modtyp_mask   0x03

Definition at line 473 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_modtyp_none   0x00

Definition at line 474 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_modtyp_ook   0x01

Definition at line 475 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_trclk_clk_gpio   0x40

Definition at line 487 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_trclk_clk_nirq   0xC0

Definition at line 489 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_trclk_clk_none   0x00

Definition at line 486 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_trclk_clk_sdo   0x80

Definition at line 488 of file pios_rfm22b_regs.h.

#define RFM22_mmc2_trclk_mask   0xC0

Definition at line 485 of file pios_rfm22b_regs.h.

#define RFM22_modulation_mode_control1   0x70

Definition at line 464 of file pios_rfm22b_regs.h.

#define RFM22_modulation_mode_control2   0x71

Definition at line 472 of file pios_rfm22b_regs.h.

#define RFM22_nominal_carrier_frequency0   0x77

Definition at line 502 of file pios_rfm22b_regs.h.

#define RFM22_nominal_carrier_frequency1   0x76

Definition at line 501 of file pios_rfm22b_regs.h.

#define RFM22_ook_counter_value1   0x2C

Definition at line 351 of file pios_rfm22b_regs.h.

#define RFM22_ook_counter_value2   0x2D

Definition at line 352 of file pios_rfm22b_regs.h.

#define RFM22_op_and_func_ctrl1   0x07

Definition at line 116 of file pios_rfm22b_regs.h.

#define RFM22_op_and_func_ctrl2   0x08

Definition at line 126 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_enlbd   0x40

Definition at line 123 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_enwt   0x20

Definition at line 122 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_pllon   0x02

Definition at line 118 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_rxon   0x04

Definition at line 119 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_swres   0x80

Definition at line 124 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_txon   0x08

Definition at line 120 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_x32ksel   0x10

Definition at line 121 of file pios_rfm22b_regs.h.

#define RFM22_opfc1_xton   0x01

Definition at line 117 of file pios_rfm22b_regs.h.

#define RFM22_opfc2_antdiv_mask   0xE0

Definition at line 132 of file pios_rfm22b_regs.h.

#define RFM22_opfc2_autotx   0x08

Definition at line 130 of file pios_rfm22b_regs.h.

#define RFM22_opfc2_enldm   0x04

Definition at line 129 of file pios_rfm22b_regs.h.

#define RFM22_opfc2_ffclrrx   0x02

Definition at line 128 of file pios_rfm22b_regs.h.

#define RFM22_opfc2_ffclrtx   0x01

Definition at line 127 of file pios_rfm22b_regs.h.

#define RFM22_opfc2_rxmpk   0x10

Definition at line 131 of file pios_rfm22b_regs.h.

#define RFM22_pre_det_ctrl1_preath_mask   0xF8

Definition at line 406 of file pios_rfm22b_regs.h.

#define RFM22_pre_det_ctrl1_rssi_offset_mask   0x07

Definition at line 407 of file pios_rfm22b_regs.h.

#define RFM22_preamble_detection_ctrl1   0x35

Definition at line 405 of file pios_rfm22b_regs.h.

#define RFM22_preamble_length   0x34

Definition at line 403 of file pios_rfm22b_regs.h.

#define RFM22_received_header0   0x4A

Definition at line 434 of file pios_rfm22b_regs.h.

#define RFM22_received_header1   0x49

Definition at line 433 of file pios_rfm22b_regs.h.

#define RFM22_received_header2   0x48

Definition at line 432 of file pios_rfm22b_regs.h.

#define RFM22_received_header3   0x47

Definition at line 431 of file pios_rfm22b_regs.h.

#define RFM22_received_packet_length   0x4B

Definition at line 436 of file pios_rfm22b_regs.h.

#define RFM22_rssi   0x26

Definition at line 341 of file pios_rfm22b_regs.h.

#define RFM22_rssi_threshold_clear_chan_indicator   0x27

Definition at line 342 of file pios_rfm22b_regs.h.

#define RFM22_rx_fifo_control   0x7E

Definition at line 513 of file pios_rfm22b_regs.h.

#define RFM22_rx_fifo_control_mask   0x3F

Definition at line 514 of file pios_rfm22b_regs.h.

#define RFM22_slicer_peak_hold   0x2E

Definition at line 354 of file pios_rfm22b_regs.h.

#define RFM22_sync_word0   0x39

Definition at line 412 of file pios_rfm22b_regs.h.

#define RFM22_sync_word1   0x38

Definition at line 411 of file pios_rfm22b_regs.h.

#define RFM22_sync_word2   0x37

Definition at line 410 of file pios_rfm22b_regs.h.

#define RFM22_sync_word3   0x36

Definition at line 409 of file pios_rfm22b_regs.h.

#define RFM22_temp_sensor_calib   0x12

Definition at line 297 of file pios_rfm22b_regs.h.

#define RFM22_temp_value_offset   0x13

Definition at line 306 of file pios_rfm22b_regs.h.

#define RFM22_transmit_header0   0x3D

Definition at line 417 of file pios_rfm22b_regs.h.

#define RFM22_transmit_header1   0x3C

Definition at line 416 of file pios_rfm22b_regs.h.

#define RFM22_transmit_header2   0x3B

Definition at line 415 of file pios_rfm22b_regs.h.

#define RFM22_transmit_header3   0x3A

Definition at line 414 of file pios_rfm22b_regs.h.

#define RFM22_transmit_packet_length   0x3E

Definition at line 419 of file pios_rfm22b_regs.h.

#define RFM22_tsc_entsoffs   0x20

Definition at line 300 of file pios_rfm22b_regs.h.

#define RFM22_tsc_entstrim   0x10

Definition at line 299 of file pios_rfm22b_regs.h.

#define RFM22_tsc_tsrange0   0x00

Definition at line 301 of file pios_rfm22b_regs.h.

#define RFM22_tsc_tsrange1   0x40

Definition at line 302 of file pios_rfm22b_regs.h.

#define RFM22_tsc_tsrange2   0x80

Definition at line 303 of file pios_rfm22b_regs.h.

#define RFM22_tsc_tsrange3   0xC0

Definition at line 304 of file pios_rfm22b_regs.h.

#define RFM22_tsc_tstrim_mask   0x0F

Definition at line 298 of file pios_rfm22b_regs.h.

#define RFM22_tx_data_rate0   0x6F

Definition at line 462 of file pios_rfm22b_regs.h.

#define RFM22_tx_data_rate1   0x6E

Definition at line 461 of file pios_rfm22b_regs.h.

#define RFM22_tx_fifo_control1   0x7C

Definition at line 507 of file pios_rfm22b_regs.h.

#define RFM22_tx_fifo_control1_mask   0x3F

Definition at line 508 of file pios_rfm22b_regs.h.

#define RFM22_tx_fifo_control2   0x7D

Definition at line 510 of file pios_rfm22b_regs.h.

#define RFM22_tx_fifo_control2_mask   0x3F

Definition at line 511 of file pios_rfm22b_regs.h.

#define RFM22_tx_power   0x6D

Definition at line 458 of file pios_rfm22b_regs.h.

#define RFM22_tx_pwr_lna_sw   0x08

Definition at line 459 of file pios_rfm22b_regs.h.

#define RFM22_wakeup_timer_period1   0x14

Definition at line 308 of file pios_rfm22b_regs.h.

#define RFM22_wakeup_timer_period2   0x15

Definition at line 309 of file pios_rfm22b_regs.h.

#define RFM22_wakeup_timer_period3   0x16

Definition at line 310 of file pios_rfm22b_regs.h.

#define RFM22_wakeup_timer_value1   0x17

Definition at line 312 of file pios_rfm22b_regs.h.

#define RFM22_wakeup_timer_value2   0x18

Definition at line 313 of file pios_rfm22b_regs.h.

#define RFM22_xolc_xlc_mask   0x7F

Definition at line 135 of file pios_rfm22b_regs.h.

#define RFM22_xolc_xtalshft   0x80

Definition at line 136 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_load_cap   0x09

Definition at line 134 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl   0x62

Definition at line 444 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl_bufovr   0x02

Definition at line 449 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl_clkhyst   0x10

Definition at line 446 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl_enamp2x   0x04

Definition at line 448 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl_enbias2x   0x08

Definition at line 447 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl_enbuf   0x01

Definition at line 450 of file pios_rfm22b_regs.h.

#define RFM22_xtal_osc_por_ctrl_pwst_mask   0xE0

Definition at line 445 of file pios_rfm22b_regs.h.

#define RFM22B_MAX_PACKET_LEN   64

Definition at line 36 of file pios_rfm22b_regs.h.

#define RFM22B_NUM_CHANNELS   250

Definition at line 37 of file pios_rfm22b_regs.h.