require '_h2ph_pre.ph';

unless(defined(&_WANPIPE_ASYNC_H)) {
    eval 'sub _WANPIPE_ASYNC_H () {1;}' unless defined(&_WANPIPE_ASYNC_H);
    eval 'sub SET_ASY_CONFIGURATION () {0xe2;}' unless defined(&SET_ASY_CONFIGURATION);
    eval 'sub READ_ASY_CONFIGURATION () {0xe3;}' unless defined(&READ_ASY_CONFIGURATION);
    eval 'sub ENABLE_ASY_COMMUNICATIONS () {0xe4;}' unless defined(&ENABLE_ASY_COMMUNICATIONS);
    eval 'sub DISABLE_ASY_COMMUNICATIONS () {0xe5;}' unless defined(&DISABLE_ASY_COMMUNICATIONS);
    eval 'sub READ_ASY_OPERATIONAL_STATS () {0xe7;}' unless defined(&READ_ASY_OPERATIONAL_STATS);
    eval 'sub FLUSH_ASY_OPERATIONAL_STATS () {0xe8;}' unless defined(&FLUSH_ASY_OPERATIONAL_STATS);
    eval 'sub TRANSMIT_ASY_BREAK_SIGNAL () {0xec;}' unless defined(&TRANSMIT_ASY_BREAK_SIGNAL);
    eval 'sub COMMAND_INVALID_FOR_PORT () {0x50;}' unless defined(&COMMAND_INVALID_FOR_PORT);
    eval 'sub DISABLE_ASY_COMMS_BEFORE_CFG () {0xe1;}' unless defined(&DISABLE_ASY_COMMS_BEFORE_CFG);
    eval 'sub ASY_COMMS_ENABLED () {0xe1;}' unless defined(&ASY_COMMS_ENABLED);
    eval 'sub ASY_COMMS_DISABLED () {0xe1;}' unless defined(&ASY_COMMS_DISABLED);
    eval 'sub ASY_CFG_BEFORE_COMMS_ENABLED () {0xe2;}' unless defined(&ASY_CFG_BEFORE_COMMS_ENABLED);
    eval 'sub LGTH_ASY_CFG_DATA_INVALID () {0xe2;}' unless defined(&LGTH_ASY_CFG_DATA_INVALID);
    eval 'sub INVALID_ASY_CFG_DATA () {0xe3;}' unless defined(&INVALID_ASY_CFG_DATA);
    eval 'sub ASY_BREAK_SIGNAL_BUSY () {0xec;}' unless defined(&ASY_BREAK_SIGNAL_BUSY);
    eval 'sub MIN_ASY_BAUD_RATE () {50;}' unless defined(&MIN_ASY_BAUD_RATE);
    eval 'sub MAX_ASY_BAUD_RATE () {250000;}' unless defined(&MAX_ASY_BAUD_RATE);
    eval 'sub MIN_ASY_BITS_PER_CHAR () {5;}' unless defined(&MIN_ASY_BITS_PER_CHAR);
    eval 'sub MAX_ASY_BITS_PER_CHAR () {8;}' unless defined(&MAX_ASY_BITS_PER_CHAR);
    eval 'sub MIN_BREAK_TMR_VAL () {0;}' unless defined(&MIN_BREAK_TMR_VAL);
    eval 'sub MAX_BREAK_TMR_VAL () {5000;}' unless defined(&MAX_BREAK_TMR_VAL);
    eval 'sub MIN_ASY_RX_INTER_CHAR_TMR () {0;}' unless defined(&MIN_ASY_RX_INTER_CHAR_TMR);
    eval 'sub MAX_ASY_RX_INTER_CHAR_TMR () {30000;}' unless defined(&MAX_ASY_RX_INTER_CHAR_TMR);
    eval 'sub MIN_ASY_RX_CPLT_LENGTH () {0;}' unless defined(&MIN_ASY_RX_CPLT_LENGTH);
    eval 'sub MAX_ASY_RX_CPLT_LENGTH () {2000;}' unless defined(&MAX_ASY_RX_CPLT_LENGTH);
    eval 'sub ASY_RX_DATA_TRANSPARENT () {0x1;}' unless defined(&ASY_RX_DATA_TRANSPARENT);
    eval 'sub ASY_RTS_HS_FOR_RX () {0x1;}' unless defined(&ASY_RTS_HS_FOR_RX);
    eval 'sub ASY_XON_XOFF_HS_FOR_RX () {0x2;}' unless defined(&ASY_XON_XOFF_HS_FOR_RX);
    eval 'sub ASY_XON_XOFF_HS_FOR_TX () {0x4;}' unless defined(&ASY_XON_XOFF_HS_FOR_TX);
    eval 'sub ASY_DCD_HS_FOR_TX () {0x8;}' unless defined(&ASY_DCD_HS_FOR_TX);
    eval 'sub ASY_CTS_HS_FOR_TX () {0x20;}' unless defined(&ASY_CTS_HS_FOR_TX);
    eval 'sub ONE_STOP_BIT () {1;}' unless defined(&ONE_STOP_BIT);
    eval 'sub TWO_STOP_BITS () {2;}' unless defined(&TWO_STOP_BITS);
    eval 'sub ONE_AND_A_HALF_STOP_BITS () {3;}' unless defined(&ONE_AND_A_HALF_STOP_BITS);
    eval 'sub NO_PARITY () {0;}' unless defined(&NO_PARITY);
    eval 'sub ODD_PARITY () {1;}' unless defined(&ODD_PARITY);
    eval 'sub EVEN_PARITY () {2;}' unless defined(&EVEN_PARITY);
}
1;
