Important: The information in this document is obsolete and should not be used for new development.
SetIntModemState
You can use theSetIntModemState
function to set some parts of the state of the internal modem.
void SetIntModemState(short theState);
theState
- A set of bits you can use to set the modem state. Set bit 15 of this parameter to 1 to set bits in the modem state. Clear bit 15 to 0 to clear bits in the modem state. The modem state bits are described in the preceding function description.
DESCRIPTION
TheSetIntModemState
function configures some of the internal modem's state information. Currently the only items that can be changed are the internal/external modem selection and the wakeup-on-ring feature.To change an item of state information, the calling program sets the corresponding bit in the parameter
theState
. For example, to select the external modem, set bit 4 oftheState
to 1 and set bit 15 to 1. To select the internal modem, set bit 4 to 1 but set bit 15 to 0.SPECIAL CONSIDERATIONS
In some PowerBook computers, there is a hardware switch to connect either port A of the SCC or the internal modem to the modem port. The two are physically separated, but software emulates the serial port interface for those applications that don't use the Communications Toolbox. You can check thehasSharedModemPort
bit returned byPMFeatures
to determine which way the computer is set up.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forSetIntModemState
is 15 ($0F) in the low word of register D0. The bit field is returned in register D0.