require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_IC_SA2400REG_H_)) {
    eval 'sub _DEV_IC_SA2400REG_H_ () {1;}' unless defined(&_DEV_IC_SA2400REG_H_);
    eval 'sub SA2400_TWI_DATA_MASK () {0xffffff00;}' unless defined(&SA2400_TWI_DATA_MASK);
    eval 'sub SA2400_TWI_WREN () {(1<<7);}' unless defined(&SA2400_TWI_WREN);
    eval 'sub SA2400_TWI_ADDR_MASK () {0x7f;}' unless defined(&SA2400_TWI_ADDR_MASK);
    eval 'sub SA2400_SYNA () {0;}' unless defined(&SA2400_SYNA);
    eval 'sub SA2400_SYNA_FM () {(1<<21);}' unless defined(&SA2400_SYNA_FM);
    eval 'sub SA2400_SYNA_NF_MASK () {0x1c0000;}' unless defined(&SA2400_SYNA_NF_MASK);
    eval 'sub SA2400_SYNA_N_MASK () {0x3fffc;}' unless defined(&SA2400_SYNA_N_MASK);
    eval 'sub SA2400_SYNB () {1;}' unless defined(&SA2400_SYNB);
    eval 'sub SA2400_SYNB_R_MASK () {0x3ff000;}' unless defined(&SA2400_SYNB_R_MASK);
    eval 'sub SA2400_SYNB_L_MASK () {0xc00;}' unless defined(&SA2400_SYNB_L_MASK);
    eval 'sub SA2400_SYNB_L_INACTIVE0 () { &LSHIFT(0,  &SA2400_SYNB_L_MASK);}' unless defined(&SA2400_SYNB_L_INACTIVE0);
    eval 'sub SA2400_SYNB_L_INACTIVE1 () { &LSHIFT(1,  &SA2400_SYNB_L_MASK);}' unless defined(&SA2400_SYNB_L_INACTIVE1);
    eval 'sub SA2400_SYNB_L_NORMAL () { &LSHIFT(2,  &SA2400_SYNB_L_MASK);}' unless defined(&SA2400_SYNB_L_NORMAL);
    eval 'sub SA2400_SYNB_L_INACTIVE2 () { &LSHIFT(3,  &SA2400_SYNB_L_MASK);}' unless defined(&SA2400_SYNB_L_INACTIVE2);
    eval 'sub SA2400_SYNB_ON () {(1<<9);}' unless defined(&SA2400_SYNB_ON);
    eval 'sub SA2400_SYNB_ONE () {(1<<8);}' unless defined(&SA2400_SYNB_ONE);
    eval 'sub SA2400_SYNB_FC_MASK () {0xff;}' unless defined(&SA2400_SYNB_FC_MASK);
    eval 'sub SA2400_SYNC () {2;}' unless defined(&SA2400_SYNC);
    eval 'sub SA2400_SYNC_CP_MASK () {0xc0;}' unless defined(&SA2400_SYNC_CP_MASK);
    eval 'sub SA2400_SYNC_CP_NORMAL_ () { &LSHIFT(0,  &SA2400_SYNC_CP_MASK);}' unless defined(&SA2400_SYNC_CP_NORMAL_);
    eval 'sub SA2400_SYNC_CP_THIRD_ () { &LSHIFT(1,  &SA2400_SYNC_CP_MASK);}' unless defined(&SA2400_SYNC_CP_THIRD_);
    eval 'sub SA2400_SYNC_CP_NORMAL () { &LSHIFT(2,  &SA2400_SYNC_CP_MASK);}' unless defined(&SA2400_SYNC_CP_NORMAL);
    eval 'sub SA2400_SYNC_CP_THIRD () { &LSHIFT(3,  &SA2400_SYNC_CP_MASK);}' unless defined(&SA2400_SYNC_CP_THIRD);
    eval 'sub SA2400_SYNC_SM_MASK () {0x38;}' unless defined(&SA2400_SYNC_SM_MASK);
    eval 'sub SA2400_SYNC_ZERO () {(1<<2);}' unless defined(&SA2400_SYNC_ZERO);
    eval 'sub SA2400_SYND () {3;}' unless defined(&SA2400_SYND);
    eval 'sub SA2400_SYND_ZERO1_MASK () {0x3e0000;}' unless defined(&SA2400_SYND_ZERO1_MASK);
    eval 'sub SA2400_SYND_TPHPSU () {(1<<16);}' unless defined(&SA2400_SYND_TPHPSU);
    eval 'sub SA2400_SYND_TPSU () {(1<<15);}' unless defined(&SA2400_SYND_TPSU);
    eval 'sub SA2400_SYND_ZERO2_MASK () {0x7ff8;}' unless defined(&SA2400_SYND_ZERO2_MASK);
    eval 'sub SA2400_OPMODE () {4;}' unless defined(&SA2400_OPMODE);
    eval 'sub SA2400_OPMODE_ADC () {(1<<19);}' unless defined(&SA2400_OPMODE_ADC);
    eval 'sub SA2400_OPMODE_FTERR () {(1<<18);}' unless defined(&SA2400_OPMODE_FTERR);
    eval 'sub SA2400_OPMODE_FILTTUNE_MASK () {0x38000;}' unless defined(&SA2400_OPMODE_FILTTUNE_MASK);
    eval 'sub SA2400_OPMODE_V2P5 () {(1<<14);}' unless defined(&SA2400_OPMODE_V2P5);
    eval 'sub SA2400_OPMODE_I1M () {(1<<13);}' unless defined(&SA2400_OPMODE_I1M);
    eval 'sub SA2400_OPMODE_I0P3 () {(1<<12);}' unless defined(&SA2400_OPMODE_I0P3);
    eval 'sub SA2400_OPMODE_IN22 () {(1<<10);}' unless defined(&SA2400_OPMODE_IN22);
    eval 'sub SA2400_OPMODE_CLK () {(1<<9);}' unless defined(&SA2400_OPMODE_CLK);
    eval 'sub SA2400_OPMODE_XO () {(1<<8);}' unless defined(&SA2400_OPMODE_XO);
    eval 'sub SA2400_OPMODE_DIGIN () {(1<<7);}' unless defined(&SA2400_OPMODE_DIGIN);
    eval 'sub SA2400_OPMODE_RXLV () {(1<<6);}' unless defined(&SA2400_OPMODE_RXLV);
    eval 'sub SA2400_OPMODE_VEO () {(1<<5);}' unless defined(&SA2400_OPMODE_VEO);
    eval 'sub SA2400_OPMODE_VEI () {(1<<4);}' unless defined(&SA2400_OPMODE_VEI);
    eval 'sub SA2400_OPMODE_MODE_MASK () {0xf;}' unless defined(&SA2400_OPMODE_MODE_MASK);
    eval 'sub SA2400_OPMODE_MODE_SLEEP () { &LSHIFT(0,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_SLEEP);
    eval 'sub SA2400_OPMODE_MODE_TXRX () { &LSHIFT(1,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_TXRX);
    eval 'sub SA2400_OPMODE_MODE_WAIT () { &LSHIFT(2,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_WAIT);
    eval 'sub SA2400_OPMODE_MODE_RXMGC () { &LSHIFT(3,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_RXMGC);
    eval 'sub SA2400_OPMODE_MODE_FCALIB () { &LSHIFT(4,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_FCALIB);
    eval 'sub SA2400_OPMODE_MODE_DCALIB () { &LSHIFT(5,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_DCALIB);
    eval 'sub SA2400_OPMODE_MODE_FASTTXRXMGC () { &LSHIFT(6,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_FASTTXRXMGC);
    eval 'sub SA2400_OPMODE_MODE_RESET () { &LSHIFT(7,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_RESET);
    eval 'sub SA2400_OPMODE_MODE_VCOCALIB () { &LSHIFT(8,  &SA2400_OPMODE_MODE_MASK);}' unless defined(&SA2400_OPMODE_MODE_VCOCALIB);
    eval 'sub SA2400_OPMODE_DEFAULTS () {( &SA2400_OPMODE_XO |  &SA2400_OPMODE_RXLV |  &SA2400_OPMODE_CLK |  &SA2400_OPMODE_I0P3 |  &LSHIFT(3,  &SA2400_OPMODE_FILTTUNE_MASK));}' unless defined(&SA2400_OPMODE_DEFAULTS);
    eval 'sub SA2400_AGC () {5;}' unless defined(&SA2400_AGC);
    eval 'sub SA2400_AGC_TARGETSIGN () {(1<<23);}' unless defined(&SA2400_AGC_TARGETSIGN);
    eval 'sub SA2400_AGC_TARGET_MASK () {0x700000;}' unless defined(&SA2400_AGC_TARGET_MASK);
    eval 'sub SA2400_AGC_MAXGAIN_MASK () {0xf8000;}' unless defined(&SA2400_AGC_MAXGAIN_MASK);
    eval 'sub SA2400_AGC_BBPDELAY_MASK () {0x7c00;}' unless defined(&SA2400_AGC_BBPDELAY_MASK);
    eval 'sub SA2400_AGC_ADCVAL_MASK () { &SA2400_AGC_BBPDELAY_MASK;}' unless defined(&SA2400_AGC_ADCVAL_MASK);
    eval 'sub SA2400_AGC_LNADELAY_MASK () {0x3e0;}' unless defined(&SA2400_AGC_LNADELAY_MASK);
    eval 'sub SA2400_AGC_SAMPLE2_MASK () { &SA2400_AGC_LNADELAY_MASK;}' unless defined(&SA2400_AGC_SAMPLE2_MASK);
    eval 'sub SA2400_AGC_RXONDELAY_MASK () {0x1f;}' unless defined(&SA2400_AGC_RXONDELAY_MASK);
    eval 'sub SA2400_AGC_SAMPLE1_MASK () { &SA2400_AGC_RXONDELAY_MASK;}' unless defined(&SA2400_AGC_SAMPLE1_MASK);
    eval 'sub SA2400_MANRX () {6;}' unless defined(&SA2400_MANRX);
    eval 'sub SA2400_MANRX_AHSN () {(1<<23);}' unless defined(&SA2400_MANRX_AHSN);
    eval 'sub SA2400_MANRX_RXOSQON () {(1<<22);}' unless defined(&SA2400_MANRX_RXOSQON);
    eval 'sub SA2400_MANRX_RXOSQSIGN () {(1<<21);}' unless defined(&SA2400_MANRX_RXOSQSIGN);
    eval 'sub SA2400_MANRX_RXOSQ_MASK () {0x1c0000;}' unless defined(&SA2400_MANRX_RXOSQ_MASK);
    eval 'sub SA2400_MANRX_RXOSION () {(1<<17);}' unless defined(&SA2400_MANRX_RXOSION);
    eval 'sub SA2400_MANRX_RXOSISIGN () {(1<<16);}' unless defined(&SA2400_MANRX_RXOSISIGN);
    eval 'sub SA2400_MANRX_RXOSI_MASK () {0xe000;}' unless defined(&SA2400_MANRX_RXOSI_MASK);
    eval 'sub SA2400_MANRX_TEN () {(1<<12);}' unless defined(&SA2400_MANRX_TEN);
    eval 'sub SA2400_MANRX_CORNERFREQ_MASK () {0xc00;}' unless defined(&SA2400_MANRX_CORNERFREQ_MASK);
    eval 'sub SA2400_MANRX_RXGAIN_MASK () {0x3ff;}' unless defined(&SA2400_MANRX_RXGAIN_MASK);
    eval 'sub SA2400_TX () {7;}' unless defined(&SA2400_TX);
    eval 'sub SA2400_TX_TXOSQON () {(1<<19);}' unless defined(&SA2400_TX_TXOSQON);
    eval 'sub SA2400_TX_TXOSQSIGN () {(1<<18);}' unless defined(&SA2400_TX_TXOSQSIGN);
    eval 'sub SA2400_TX_TXOSQ_MASK () {0x38000;}' unless defined(&SA2400_TX_TXOSQ_MASK);
    eval 'sub SA2400_TX_TXOSION () {(1<<14);}' unless defined(&SA2400_TX_TXOSION);
    eval 'sub SA2400_TX_TXOSISIGN () {(1<<13);}' unless defined(&SA2400_TX_TXOSISIGN);
    eval 'sub SA2400_TX_TXOSI_MASK () {0x1c00;}' unless defined(&SA2400_TX_TXOSI_MASK);
    eval 'sub SA2400_TX_RAMP_MASK () {0x300;}' unless defined(&SA2400_TX_RAMP_MASK);
    eval 'sub SA2400_TX_HIGAIN_MASK () {0xf0;}' unless defined(&SA2400_TX_HIGAIN_MASK);
    eval 'sub SA2400_TX_LOGAIN_MASK () {0xf;}' unless defined(&SA2400_TX_LOGAIN_MASK);
    eval 'sub SA2400_VCO () {8;}' unless defined(&SA2400_VCO);
    eval 'sub SA2400_VCO_ZERO () {0x60;}' unless defined(&SA2400_VCO_ZERO);
    eval 'sub SA2400_VCO_VCERR () {(1<<4);}' unless defined(&SA2400_VCO_VCERR);
    eval 'sub SA2400_VCO_VCOBAND_MASK () {0xf;}' unless defined(&SA2400_VCO_VCOBAND_MASK);
}
1;
