Definition in file AVRGSM_api.h.
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
int | API_deletemsg (int index) |
Delete a message from a given index. | |
int | API_modem_init (void) |
Used to setup the connected GSM modem. | |
int | API_readmsg (int ind) |
Read message from a given index. | |
int | API_sendmsg (unsigned char *msg) |
Send message. |
|
Delete a message from a given index. This function will use the "AT+CMGD" command to delete the message @ index
Definition at line 125 of file AVRGSM_api.c. References API_check_acknowledge(), AT_CMGD, COM_put_integer(), COM_putsf(), COM_rx_on(), COM_rx_reset(), COM_setSearchString(), CRLF, and OK_. Referenced by ST_delete_msg().
Here is the call graph for this function: ![]() |
|
Used to setup the connected GSM modem. This function will send AT-Commands to the phone. These commands will setup the phone to: -Use correct storage, AT+CPMS -Indicate new message, AT+CNMI -Turn echo off, ATE0
Definition at line 73 of file AVRGSM_api.c. References API_check_acknowledge(), AT_CNMI, AT_CPMS, ATE0, COM_putsf(), COM_rx_on(), COM_rx_reset(), COM_setSearchString(), and OK_. Referenced by ST_init_phone().
Here is the call graph for this function: ![]() |
|
Read message from a given index. This function is used to read a newly arrived message from a given index. The message is decoded, and stored in the msgbuff.
Local variables Definition at line 232 of file AVRGSM_api.c. References API_check_acknowledge(), AT_CMGR, COM_put_integer(), COM_putsf(), COM_rx_on(), COM_rx_reset(), COM_setSearchString(), CRLF, msgbuff, OK_, TOOLS__decodeCMGR(), and ZIP_decompress(). Referenced by ST_read().
Here is the call graph for this function: ![]() |
|
Send message. This function will take your user defined message, encode this text, add the header information found in AVRSMS_header.h. If successful, the message will be forwarded to the connected GSM modem
Local variables Definition at line 160 of file AVRGSM_api.c. References API_check_acknowledge(), AT_CMGS, COM_put_integer(), COM_putchar(), COM_puts(), COM_putsf(), COM_rx_on(), COM_rx_reset(), COM_setSearchString(), CRLF, HEADER_LEN, msgbuff, OK_, PDU_HEADER, READY_, ZIP_compress(), and ZIP_itoh(). Referenced by ST_send().
Here is the call graph for this function: ![]() |