Up: GEOS SDK TechDocs | Up | Prev: MemUnlock() ... | Next: ModemSetMessageDataNotify() ...

ModemAnswerCall()

Boolean	ModemAnswerCall(
        SerialPortNum		port,			/* serial port number */
        ModemResultCode		*result);

Answers an incoming data call. Returns [???] if a connection has been established (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

See Also: ModemAutoAnswer().

ModemAutoAnswer()

Boolean	ModemAutoAnswer(
        SerialPortNum		port,		/* serial port number */
        word		number_of_rings,
        ModemResultCode		*result);

Sets modem to answer calls automatically. Does not wait for a call but returns [???] after successfully setting modem to auto-answer (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

Warnings: Modem must be in command mode when calling this routine.

See Also: ModemAnswerCall().

ModemClose()

void	ModemClose(
        SerialPortNum		port,			/* serial port number */
        StreamLingerMode		close_mode); /* manner in which to close stream */

Closes the serial port being used for a modem connection. Possible values for close_mode include STREAM_DISCARD or STREAM_LINGER.

Include: modemC.goh

Warnings: Use ModemHangup() to hang up an existing call.

See Also: ModemHangup().

ModemDial()

Boolean	ModemDial(
        SerialPortNum		port,			/* serial port number */
        word		dial_string_length,
        const char		*dial_string,	/* phone number to dial */
        ModemResultCode		*result);

Sends the modem's dial command to dial the specified number. Returns [???] if a connection has been established (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

See Also: ModemOpen().

ModemFactoryReset()

Boolean	ModemFactoryReset(
        SerialPortNum		port,			/* serial port number */
        ModemResultCode		*result);

Restores factory settings of modem. Returns [???] after successfully resetting (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

Warnings: Modem must be in command mode when calling this routine.

ModemHangup()

Boolean	ModemHangup(
        SerialPortNum		port,			/* serial port number */
        ModemResultCode		*result);

Hangs up an existing data call. Returns [???] after successfully hanging up (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

See Also: ModemClose().

ModemInitModem()

Boolean	ModemInitModem(
        SerialPortNum		port,			/* serial port number */
        word		init_string_length,
        const char		*init_string,	/* initialization string */
        ModemResultCode		*result);

Initializes modem with modem command string. A lead "AT" need not be supplied. Returns [???] after successfully initializing (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

Warnings: Modem must be in command mode when calling this routine.

ModemOpen()

Boolean	ModemOpen(
        GeodeHandle		drHandle,			/* handle of serial driver */
        SerialPortNum		port,			/* serial port number */
        StreamOpenFlags		flags,			/* manner in which to open stream */
        word		input_buffer_size,
        word		output_buffer_size,
        word		timeout);			/* timeout if SOF_TIMEOUT */

Opens the serial port to be used for a modem connection and places modem in command mode. Possible values for flags are SOF_TIMEOUT and SOF_NOBLOCK.

Include: modemC.goh

See Also: ModemDial().

ModemReset()

Boolean	ModemReset(
        SerialPortNum		port,			/* serial port number */
        ModemResultCode		*result);

Switches to command mode and resets the modem. Returns [???] after successfully resetting (and writes MRC_OK to result) or non-zero if an error has occurred (and [???]).

Include: modemC.goh

See Also: ModemFactoryReset().


Up: GEOS SDK TechDocs | Up | Prev: MemUnlock() ... | Next: ModemSetMessageDataNotify() ...