Main Page | Data Structures | File List | Data Fields | Globals

ATAVRBFLY_FILES/main.h

Go to the documentation of this file.
00001 // This file has been prepared for Doxygen automatic documentation generation. 00021 #ifndef MAIN_H_INCLUDED 00022 #define MAIN_H_INCLUDED 00023 00024 // Macro definitions 00025 #define sbi(port,bit) (port |= (1<<bit)) //<! set bit in port 00026 #define cbi(port,bit) (port &= ~(1<<bit)) //<! clear bit in port 00027 00028 00031 typedef enum 00032 { 00033 00034 ST_AVR_IDLE = 10, //<! Idle state, before the phone is connected 00035 ST_AVR_INIT_MODEM, //<! This state will call the modem init function 00036 ST_AVR_READY, //<! Ready state, waiting for new message or key input 00037 00038 ST_AVR_NO_ECHO, //<! State to give error message to user during API_modem_init() 00039 ST_AVR_WRONG_STORAGE, //<! State to give error message to user during API_modem_init() 00040 ST_AVR_WRONG_OPTION, //<! State to give error message to user during API_modem_init() 00041 00042 ST_AVR_NEW_SMS, //<! Will display that a new message has arrived, user must push enter to read 00043 ST_AVR_NEW_SMS_function, //<! In this state the index of the new message will be extracted 00044 00045 ST_AVR_DELETE, //<! Display "DELETE MESSAGE" 00046 ST_AVR_DELETE_function, //<! Call the API_delete() function 00047 ST_AVR_READ, //<! Display "READ MESSAGE" 00048 ST_AVR_READ_function, //<! Call API_readmsg() 00049 00050 ST_AVR_DISPLAY, //<! Display new message 00051 00052 ST_AVR_SEND, //<! Dispaly "SEND SMS " 00053 ST_AVR_SEND_function //<! Call API_sendmsg 00054 }states; 00055 00056 00059 typedef enum 00060 { 00061 00062 KEY_NULL, //0 00063 KEY_ENTER, //1 00064 KEY_NEXT, //2 00065 KEY_PREV, //3 00066 KEY_PLUS, //4 00067 KEY_MINUS, //5 00068 }input; 00069 00070 00071 void Initialization(void); 00072 unsigned char StateMachine(char state, unsigned char stimuli); 00073 char getInput(void); 00074 00075 #endif

Generated on Tue Nov 1 16:21:39 2005 for AVR323 Interfacing GSM modems by doxygen 1.3.7