require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_TEA5757_H_)) {
    eval 'sub _TEA5757_H_ () {1;}' unless defined(&_TEA5757_H_);
    require 'sys/types.ph';
    require 'machine/bus.ph';
    eval 'sub TEA5757_REGISTER_LENGTH () {25;}' unless defined(&TEA5757_REGISTER_LENGTH);
    eval 'sub TEA5757_FREQ () {0x7fff;}' unless defined(&TEA5757_FREQ);
    eval 'sub TEA5757_DATA () {0x1ff8000;}' unless defined(&TEA5757_DATA);
    eval 'sub TEA5757_SEARCH_START () {(1<< 24);}' unless defined(&TEA5757_SEARCH_START);
    eval 'sub TEA5757_SEARCH_END () {(0<< 24);}' unless defined(&TEA5757_SEARCH_END);
    eval 'sub TEA5757_SEARCH_UP () {(1<< 23);}' unless defined(&TEA5757_SEARCH_UP);
    eval 'sub TEA5757_SEARCH_DOWN () {(0<< 23);}' unless defined(&TEA5757_SEARCH_DOWN);
    eval 'sub TEA5757_ACQUISITION_DELAY () {100000;}' unless defined(&TEA5757_ACQUISITION_DELAY);
    eval 'sub TEA5757_WAIT_DELAY () {1000;}' unless defined(&TEA5757_WAIT_DELAY);
    eval 'sub TEA5757_SEARCH_DELAY () {14;}' unless defined(&TEA5757_SEARCH_DELAY);
    eval 'sub TEA5757_STEREO () {(0<< 22);}' unless defined(&TEA5757_STEREO);
    eval 'sub TEA5757_MONO () {(1<< 22);}' unless defined(&TEA5757_MONO);
    eval 'sub TEA5757_BAND_FM () {(0<< 20);}' unless defined(&TEA5757_BAND_FM);
    eval 'sub TEA5757_BAND_MW () {(1<< 20);}' unless defined(&TEA5757_BAND_MW);
    eval 'sub TEA5757_BAND_LW () {(2<< 20);}' unless defined(&TEA5757_BAND_LW);
    eval 'sub TEA5757_BAND_SW () {(3<< 20);}' unless defined(&TEA5757_BAND_SW);
    eval 'sub TEA5757_USER_PORT () {(0<< 18);}' unless defined(&TEA5757_USER_PORT);
    eval 'sub TEA5757_DUMMY () {(0<< 15);}' unless defined(&TEA5757_DUMMY);
    eval 'sub TEA5757_S005 () {(0<< 16);}' unless defined(&TEA5757_S005);
    eval 'sub TEA5757_S010 () {(2<< 16);}' unless defined(&TEA5757_S010);
    eval 'sub TEA5757_S030 () {(1<< 16);}' unless defined(&TEA5757_S030);
    eval 'sub TEA5757_S150 () {(3<< 16);}' unless defined(&TEA5757_S150);
    eval 'sub TEA5757_TEA5759 () {(1<< 0);}' unless defined(&TEA5757_TEA5759);
}
1;
