Definition in file AVRGSM_com.h.
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | CMTI_ 1 |
Used to look up in COM_setSearchString( unsigned char Response ). | |
#define | CRLF_ 3 |
Used to look up in COM_setSearchString( unsigned char Response ). | |
#define | OK_ 0 |
Used to look up in COM_setSearchString( unsigned char Response ). | |
#define | READY_ 2 |
Used to look up in COM_setSearchString( unsigned char Response ). | |
#define | RX_BUFFER_MASK RX_BUFFER_SIZE - 2 |
Used to set overflow flag. | |
#define | RX_BUFFER_SIZE 256 |
rx_buffer size | |
#define | RX_WAIT 65000 |
Timeout value. | |
Functions | |
unsigned char * | COM_gets (void) |
Return pointer to receive buffer. | |
void | COM_init (unsigned int baudrate) |
USART0 initialization. | |
void | COM_put_integer (int i) |
This method will print an integer in the range +-(10^5 - 1 ). | |
int | COM_putchar (unsigned char data) |
Adapted putchar method...no need for interrup driven tx-isr. | |
void | COM_puts (unsigned char *str) |
Print unsigned char string. | |
void | COM_putsf (const unsigned char __flash *fstr) |
Print const unsigned char __flash string. | |
void | COM_rx_off (void) |
RX interrupt disable. | |
void | COM_rx_on (void) |
RX interrupt enable. | |
void | COM_rx_reset (void) |
Reset receive interrupt. | |
void | COM_setSearchString (unsigned char Response) |
Set desired search string. | |
int | COM_trim (void) |
Remove trailing O, K, and . |
|
Used to look up in COM_setSearchString( unsigned char Response ).
Definition at line 30 of file AVRGSM_com.h. Referenced by ST_delete_msg(), ST_init_phone(), and USART0_RX_interrupt(). |
|
Used to look up in COM_setSearchString( unsigned char Response ).
Definition at line 32 of file AVRGSM_com.h. Referenced by USART0_RX_interrupt(). |
|
Used to look up in COM_setSearchString( unsigned char Response ).
Definition at line 29 of file AVRGSM_com.h. Referenced by API_deletemsg(), API_modem_init(), API_readmsg(), and API_sendmsg(). |
|
Used to look up in COM_setSearchString( unsigned char Response ).
Definition at line 31 of file AVRGSM_com.h. Referenced by API_sendmsg(). |
|
Used to set overflow flag.
Definition at line 27 of file AVRGSM_com.h. Referenced by USART0_RX_interrupt(). |
|
rx_buffer size
Definition at line 26 of file AVRGSM_com.h. |
|
Timeout value.
Definition at line 28 of file AVRGSM_com.h. Referenced by COM_putchar(). |
|
Return pointer to receive buffer.
Definition at line 317 of file AVRGSM_com.c. References rx_buffer. Referenced by TOOLS__decodeCMGR(), and TOOLS_decodeCMTI().
|
|
USART0 initialization. This function set correct baurate and functionality of the USART0. See data sheet for more details.
Definition at line 66 of file AVRGSM_com.c. References COM_rx_reset(). Referenced by Initialization().
Here is the call graph for this function: ![]() |
|
This method will print an integer in the range +-(10^5 - 1 ).
Local variables Definition at line 224 of file AVRGSM_com.c. References COM_putchar(). Referenced by API_deletemsg(), API_readmsg(), and API_sendmsg().
Here is the call graph for this function: ![]() |
|
Adapted putchar method...no need for interrup driven tx-isr. Adpation of ansi c putchar() method
Definition at line 198 of file AVRGSM_com.c. References RX_WAIT. Referenced by API_sendmsg(), COM_put_integer(), COM_puts(), and COM_putsf().
|
|
Print unsigned char string.
Definition at line 254 of file AVRGSM_com.c. References COM_putchar(). Referenced by API_sendmsg().
Here is the call graph for this function: ![]() |
|
Print const unsigned char __flash string.
Definition at line 270 of file AVRGSM_com.c. References COM_putchar(). Referenced by API_deletemsg(), API_modem_init(), API_readmsg(), and API_sendmsg().
Here is the call graph for this function: ![]() |
|
RX interrupt disable.
Definition at line 114 of file AVRGSM_com.c. Referenced by API_check_acknowledge().
|
|
RX interrupt enable.
Definition at line 101 of file AVRGSM_com.c. Referenced by API_deletemsg(), API_modem_init(), API_readmsg(), API_sendmsg(), ST_delete_msg(), ST_init_phone(), and ST_read().
|
|
Reset receive interrupt.
Definition at line 85 of file AVRGSM_com.c. References rx_ack, rx_buffer, rx_i, rx_overflow, and rx_wr_i. Referenced by API_check_acknowledge(), API_deletemsg(), API_modem_init(), API_readmsg(), API_sendmsg(), COM_init(), ST_delete_msg(), ST_init_phone(), and ST_read().
|
|
Set desired search string.
Definition at line 127 of file AVRGSM_com.c. References rx_i, searchFor, searchStr, and searchStrings. Referenced by API_deletemsg(), API_modem_init(), API_readmsg(), API_sendmsg(), ST_delete_msg(), ST_init_phone(), and ST_read().
|
|
Remove trailing O, K, and If the receive buffer have trailing "OK\r\n" These characters will be deleted.
Local variables Definition at line 289 of file AVRGSM_com.c. References rx_buffer, and rx_wr_i. Referenced by TOOLS__decodeCMGR(), and TOOLS_decodeCMTI().
|