#include <termios.h>#include "sms_funcs.h"


Go to the source code of this file.
Defines | |
| #define | MODE_ASCII 3 |
| #define | MODE_DIGICOM 2 |
| #define | MODE_NEW 4 |
| #define | MODE_OLD 1 |
| #define | READ_SLEEP 10000 |
| #define | READ_TIMEOUT 10 |
Typedefs | |
| typedef int(* | cds_report )(struct modem *, char *, int) |
Functions | |
| int | checkmodem (struct modem *mdm) |
| int | closemodem (struct modem *mdm) |
| int | initmodem (struct modem *mdm, cds_report cds_report_f) |
| int | openmodem (struct modem *mdm) |
| int | put_command (struct modem *mdm, char *command, int clen, char *answer, int max, int timeout, char *expect) |
| int | setmodemparams (struct modem *mdm) |
| int | setsmsc (struct modem *mdm, char *smsc) |
| #define MODE_ASCII 3 |
Definition at line 24 of file libsms_modem.h.
Referenced by decode_pdu(), initmodem(), putsms(), and set_modem_arg().
| #define MODE_DIGICOM 2 |
Definition at line 23 of file libsms_modem.h.
Referenced by checkmodem(), decode_pdu(), fetchsms(), initmodem(), and set_modem_arg().
| #define MODE_NEW 4 |
Definition at line 25 of file libsms_modem.h.
Referenced by parse_config_lines(), and set_modem_arg().
| #define MODE_OLD 1 |
Definition at line 22 of file libsms_modem.h.
Referenced by make_pdu(), putsms(), set_modem_arg(), and splitpdu().
| #define READ_SLEEP 10000 |
| #define READ_TIMEOUT 10 |
Definition at line 28 of file libsms_modem.h.
| typedef int(* cds_report)(struct modem *, char *, int) |
Definition at line 30 of file libsms_modem.h.
| int checkmodem | ( | struct modem * | mdm | ) |
Definition at line 352 of file libsms_modem.c.
References cds_report_func, initmodem(), LM_WARN, modem::mode, MODE_DIGICOM, and put_command().
Referenced by check_memory(), and putsms().
| int closemodem | ( | struct modem * | mdm | ) |
| int initmodem | ( | struct modem * | mdm, | |
| cds_report | cds_report_f | |||
| ) |
Definition at line 213 of file libsms_modem.c.
References CDS_REPORT, cds_report_func, modem::device, LM_ERR, LM_INFO, LM_NOTICE, LM_WARN, modem::mode, MODE_ASCII, MODE_DIGICOM, modem::name, modem::pin, put_command(), setsmsc(), sms_report_type, and modem::smsc.
Referenced by checkmodem(), and modem_process().
| int openmodem | ( | struct modem * | mdm | ) |
Definition at line 398 of file libsms_modem.c.
References modem::device, modem::fd, and modem::oldtio.
Referenced by modem_process().
| int put_command | ( | struct modem * | mdm, | |
| char * | command, | |||
| int | clen, | |||
| char * | answer, | |||
| int | max, | |||
| int | timeout, | |||
| char * | expect | |||
| ) |
Definition at line 43 of file libsms_modem.c.
References buf, buf_len, CDS_HDR, CDS_HDR_LEN, CDS_REPORT, cds_report_func, modem::fd, LM_DBG, LM_ERR, LM_INFO, MAX_BUF, optz, READ_SLEEP, and sms_report_type.
Referenced by check_memory(), checkmodem(), deletesms(), fetchsms(), initmodem(), putsms(), and setsmsc().
| int setmodemparams | ( | struct modem * | mdm | ) |
Definition at line 192 of file libsms_modem.c.
References modem::baudrate, and modem::fd.
Referenced by modem_process().
| int setsmsc | ( | struct modem * | mdm, | |
| char * | smsc | |||
| ) |
1.5.6