#include "Cpu.h"
#include "Events.h"
#include "database.h"
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "LCD_methods.h"
#include "bitmaps.h"
#include "UDP_Client_app.h"
#include "ne64api.h"
#include "ne64config.h"
#include "ne64debug.h"
#include "ne64driver.h"
#include "mBuf.h"
#include "debug.h"
#include "datatypes.h"
#include "timers.h"
#include "system.h"
#include "ethernet.h"
#include "arp.h"
#include "icmp.h"
#include "ip.h"
#include "udp.h"
#include "address.h"
Include dependency graph for Main.c:
Go to the source code of this file.
Data Structures | |
struct | itemStruct |
struct | sessionStruct |
Defines | |
#define | IDLE 1 |
#define | USER_QUERY_DB 2 |
#define | INVALID_USER 3 |
#define | CAPTURE_PIN 4 |
#define | SESSION_START 5 |
#define | SESSION_RUNNING 6 |
#define | INVALID_KEYPRESS 7 |
#define | ITEM_QUERY_DB 8 |
#define | CONFIRM_REMOVAL 9 |
#define | ITEM_NOT_MATCHED 10 |
#define | CANCEL_SESSION 11 |
#define | REMOVE_LAST_ITEM 12 |
#define | SESSION_END 13 |
#define | PRINT 14 |
#define | EMAIL 15 |
#define | FINISH_SESSION 16 |
#define | TIME_SYNCH 17 |
#define | RFID_FLAG_MASK 0x01 |
#define | KEYPAD_FLAG_MASK 0x02 |
#define | CHK_KEYPAD_FLAG_MASK 0x04 |
#define | VALID_QUERY_FLAG_MASK 0x08 |
#define | CANCEL_ONCE_MASK 0x10 |
#define | ONLY_ONCE_MASK 0x20 |
#define | CHK_RFID_MASK 0x40 |
#define | MASK_CANCEL_MASK 0x80 |
#define | RFID_FLAG 0 |
#define | KEYPAD_FLAG 1 |
#define | CHK_KEYPAD_FLAG 2 |
#define | VALID_QUERY_FLAG 3 |
#define | CANCEL_ONCE 4 |
#define | ONLY_ONCE 5 |
#define | CHK_RFID_FLAG 6 |
#define | MASK_CANCEL_FLAG 7 |
#define | USER 1 |
#define | ITEM 0 |
#define | KEY_ONE 1 |
#define | KEY_TWO 2 |
#define | KEY_THREE 3 |
#define | KEY_FOUR 4 |
#define | KEY_FIVE 5 |
#define | KEY_SIX 6 |
#define | KEY_SEVEN 7 |
#define | KEY_EIGHT 8 |
#define | KEY_NINE 9 |
#define | KEY_ZERO 0 |
#define | KEY_STAR 11 |
#define | KEY_POUND 12 |
#define | KEY_ENTER 13 |
#define | KEY_CLEAR 14 |
#define | KEY_HELP 15 |
#define | KEY_CANCEL 16 |
#define | AM 1 |
#define | PM 2 |
#define | SetBit(bit_ID, varID) (varID |= (byte)(1<<bit_ID)) |
#define | ClearBit(bit_ID, varID) (varID &= ~(byte)(1<<bit_ID)) |
#define | clrReg8Bits(RegName, ClrMask) (RegName &= ~(byte)(ClrMask)) |
Functions | |
void | PrintReceipt (void) |
void | PollKeypad (void) |
void | ProcInit (void) |
void | LCDInit (void) |
void | UpdateLCD (void) |
void | SetupSession (void) |
void | WaitFor (int) |
int | HandlePacket (void) |
void | RTI_Enable (void) |
void | mystrcpy (char *, char *, int, int) |
void | main () |
interrupt void | RFIDInterrupt (void) |
interrupt void | HandleTimerInterrupt (void) |
Variables | |
byte | state |
byte | returnState |
byte | flags |
int | keyPressed |
int | pinCounter |
char | currentPin [5] |
char | userPin [5] |
char | lastSerial [14] |
char | userSerial [14] |
char | serialNum [14] |
long | counter = 0 |
int | timecounter = 0 |
int | printcounter = 1 |
int | testcounter = 0 |
int | waitcounter = 0 |
int | pollCounter2 = 0 |
sessionStruct | currSession |
const int | calendar [] |
INT8 | SendData |
INT8 | RcvData |
char | toSend [15] = "I:0413AAC34F3A" |
char | rcvPacket [55] |
netif | localmachine |
tU08 | gotlink |
|
Definition at line 134 of file Main.c. Referenced by HandlePacket(), HandleTimerInterrupt(), and PrintReceipt(). |
|
|
|
|
|
Definition at line 85 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 78 of file Main.c. Referenced by main(). |
|
Definition at line 104 of file Main.c. Referenced by main(). |
|
Definition at line 96 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 108 of file Main.c. Referenced by main(). |
|
Definition at line 100 of file Main.c. Referenced by RFIDInterrupt(). |
|
Definition at line 142 of file Main.c. Referenced by main(), and PollKeypad(). |
|
|
|
|
|
|
|
|
|
Definition at line 75 of file Main.c. Referenced by main(), and UpdateLCD(). |
|
|
|
Definition at line 77 of file Main.c. Referenced by main(). |
|
|
|
|
|
Definition at line 82 of file Main.c. Referenced by HandlePacket(). |
|
Definition at line 131 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 129 of file Main.c. Referenced by main(), and PollKeypad(). |
|
Definition at line 123 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 128 of file Main.c. Referenced by main(), and PollKeypad(). |
|
Definition at line 120 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 119 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 130 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 124 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 116 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 127 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 122 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 121 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 126 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 118 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 117 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 125 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 103 of file Main.c. Referenced by main(), and PollKeypad(). |
|
Definition at line 95 of file Main.c. Referenced by main(). |
|
Definition at line 109 of file Main.c. Referenced by main(). |
|
Definition at line 101 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 107 of file Main.c. Referenced by main(). |
|
Definition at line 99 of file Main.c. Referenced by main(). |
|
Definition at line 135 of file Main.c. Referenced by HandlePacket(), and HandleTimerInterrupt(). |
|
|
|
Definition at line 86 of file Main.c. Referenced by HandlePacket(). |
|
Definition at line 102 of file Main.c. Referenced by RFIDInterrupt(). |
|
Definition at line 94 of file Main.c. Referenced by main(). |
|
|
|
Definition at line 80 of file Main.c. Referenced by HandleTimerInterrupt(). |
|
Definition at line 79 of file Main.c. Referenced by main(). |
|
Definition at line 141 of file Main.c. Referenced by main(), PollKeypad(), and RFIDInterrupt(). |
|
Definition at line 91 of file Main.c. Referenced by HandlePacket(), and main(). |
|
|
|
Definition at line 76 of file Main.c. Referenced by HandlePacket(), and main(). |
|
|
|
|
|
Definition at line 795 of file Main.c. References AM, sessionStruct::cartSizeI, sessionStruct::cartTotalI, currSession, sessionStruct::dateDayI, sessionStruct::dateMonthI, sessionStruct::dateYearI, sessionStruct::emailLength, ITEM_QUERY_DB, itemStruct::itemPrice, sessionStruct::items, lastSerial, mystrcpy(), itemStruct::nameLength, sessionStruct::nameLength, PM, RcvData, rcvPacket, REMOVE_LAST_ITEM, SendData, serialNum, state, TIME_SYNCH, sessionStruct::timeHalfI, sessionStruct::timeHrI, sessionStruct::timeMinI, sessionStruct::timeSecsI, USER_QUERY_DB, sessionStruct::userEmail, sessionStruct::userName, and userPin. Referenced by main(). Here is the call graph for this function: |
|
Definition at line 675 of file Main.c. References AM, calendar, currSession, sessionStruct::dateDayI, sessionStruct::dateMonthI, sessionStruct::dateYearI, PM, pollCounter2, SESSION_RUNNING, state, timecounter, sessionStruct::timeHalfI, sessionStruct::timeHrI, sessionStruct::timeMinI, sessionStruct::timeSecsI, UpdateLCD(), and waitcounter. Here is the call graph for this function: |
|
Definition at line 786 of file Main.c. References LCD_reset(). Referenced by main(). Here is the call graph for this function: |
|
Definition at line 227 of file Main.c. References CAPTURE_PIN, CHK_KEYPAD_FLAG, CHK_RFID_FLAG, ClearBit, currentPin, flags, gotlink, HandlePacket(), hard_addr, IDLE, INVALID_USER, KEY_CLEAR, KEY_ENTER, KEYPAD_FLAG, KEYPAD_FLAG_MASK, keyPressed, LCDInit(), localmachine, MASK_CANCEL_FLAG, mystrcpy(), ONLY_ONCE, ONLY_ONCE_MASK, pinCounter, ProcInit(), RcvData, RFID_FLAG_MASK, RTI_Enable(), SendData, serialNum, SESSION_START, SetBit, SetupSession(), state, TIME_SYNCH, toSend, udp_demo_init(), udp_demo_run(), UpdateLCD(), USER_QUERY_DB, userPin, userSerial, and WaitFor(). Here is the call graph for this function: |
|
Definition at line 611 of file Main.c. Referenced by HandlePacket(), main(), and PrintReceipt(). |
|
Definition at line 1223 of file Main.c. References CANCEL_SESSION, CHK_KEYPAD_FLAG_MASK, ClearBit, flags, KEY_CANCEL, KEY_CLEAR, KEY_EIGHT, KEY_ENTER, KEY_FIVE, KEY_FOUR, KEY_HELP, KEY_NINE, KEY_ONE, KEY_POUND, KEY_SEVEN, KEY_SIX, KEY_STAR, KEY_THREE, KEY_TWO, KEY_ZERO, KEYPAD_FLAG, keyPressed, MASK_CANCEL_MASK, pollCounter2, returnState, SetBit, and state. |
|
Definition at line 1305 of file Main.c. References AM, currSession, sessionStruct::dateDayI, sessionStruct::dateMonthI, sessionStruct::dateYearI, mystrcpy(), printcounter, sessionStruct::timeHalfI, sessionStruct::timeHrI, sessionStruct::timeMinI, and sessionStruct::timeSecsI. Here is the call graph for this function: |
|
Definition at line 745 of file Main.c. Referenced by main(). |
|
Definition at line 637 of file Main.c. References CHK_RFID_MASK, flags, RFID_FLAG, serialNum, and SetBit. |
|
Referenced by main(). |
|
Definition at line 623 of file Main.c. References sessionStruct::cartSizeI, sessionStruct::cartTotalI, currSession, lastSerial, NULL, pinCounter, sessionStruct::userEmail, and sessionStruct::userName. Referenced by main(). |
|
Definition at line 922 of file Main.c. References IDLE, LCD_clr_scr_char(), LCD_graphic_ini(), LCD_write_data(), and state. Referenced by HandleTimerInterrupt(), and main(). Here is the call graph for this function: |
|
Definition at line 1213 of file Main.c. References waitcounter. Referenced by main(). |
|
Initial value: { 31,31,31,30,31,30,31,31,30,31,30,31 } Definition at line 194 of file Main.c. Referenced by HandleTimerInterrupt(). |
|
Definition at line 187 of file Main.c. Referenced by LCD_char_ini(), and LCD_graphic_ini(). |
|
Definition at line 182 of file Main.c. Referenced by main(). |
|
Definition at line 193 of file Main.c. Referenced by HandlePacket(), HandleTimerInterrupt(), PrintReceipt(), and SetupSession(). |
|
Definition at line 179 of file Main.c. Referenced by main(), PollKeypad(), and RFIDInterrupt(). |
|
Referenced by main(). |
|
Definition at line 180 of file Main.c. Referenced by main(), and PollKeypad(). |
|
Definition at line 184 of file Main.c. Referenced by HandlePacket(), and SetupSession(). |
|
Definition at line 203 of file Main.c. Referenced by main(). |
|
Definition at line 181 of file Main.c. Referenced by main(), and SetupSession(). |
|
Definition at line 192 of file Main.c. Referenced by HandleTimerInterrupt(), and PollKeypad(). |
|
Definition at line 189 of file Main.c. Referenced by PrintReceipt(). |
|
Definition at line 199 of file Main.c. Referenced by HandlePacket(), and main(). |
|
Definition at line 201 of file Main.c. Referenced by HandlePacket(), and udp_demo_eventlistener(). |
|
Definition at line 178 of file Main.c. Referenced by PollKeypad(). |
|
Definition at line 198 of file Main.c. Referenced by HandlePacket(), main(), SendSerial(), and udp_demo_init(). |
|
Definition at line 186 of file Main.c. Referenced by HandlePacket(), main(), and RFIDInterrupt(). |
|
Definition at line 177 of file Main.c. Referenced by HandlePacket(), HandleTimerInterrupt(), main(), PollKeypad(), and UpdateLCD(). |
|
|
|
Definition at line 188 of file Main.c. Referenced by HandleTimerInterrupt(). |
|
Definition at line 200 of file Main.c. Referenced by main(), and SendSerial(). |
|
Definition at line 183 of file Main.c. Referenced by HandlePacket(), and main(). |
|
Definition at line 185 of file Main.c. Referenced by main(). |
|
Definition at line 191 of file Main.c. Referenced by HandleTimerInterrupt(), and WaitFor(). |