KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Definitions to use the Dreamcast modem. More...
#include "mconst.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | MODEMEVENTHANDLERPROC) (modemEvent_t event) |
Type of a modem event handling function. | |
Enumerations | |
enum | modemEvent_t { MODEM_EVENT_CONNECTION_FAILED = 0 , MODEM_EVENT_CONNECTED , MODEM_EVENT_DISCONNECTED , MODEM_EVENT_RX_NOT_EMPTY , MODEM_EVENT_OVERFLOW , MODEM_EVENT_TX_EMPTY } |
Modem Event Types. More... | |
Functions | |
int | modem_init (void) |
Initialize the modem. | |
void | modem_shutdown (void) |
Shut down the modem. | |
int | modem_set_mode (int mode, modem_speed_t speed) |
Set the modem up for the specified mode. | |
int | modem_wait_dialtone (int ms_timeout) |
Wait for the modem to detect a dialtone. | |
int | modem_dial (const char *digits) |
Dial the specified number on the modem. | |
void | modem_set_event_handler (MODEMEVENTHANDLERPROC eventHandler) |
Set the event handler for the modem. | |
void | modem_disconnect (void) |
Disconnect the modem. | |
int | modem_is_connecting (void) |
Check if the modem is connecting. | |
int | modem_is_connected (void) |
Check if the modem is connected. | |
unsigned long | modem_get_connection_rate (void) |
Get the connection rate that the modem is connected at. | |
int | modem_read_data (unsigned char *data, int size) |
Read data from the modem buffers. | |
int | modem_write_data (unsigned char *data, int size) |
Write data to the modem buffers. | |
int | modem_has_data (void) |
Check if the modem has data waiting to be read. | |
Definitions to use the Dreamcast modem.
This file contains functions and constants to be used with the Dreamcast modem driver.