AN2385 Freescale Semiconductor / Motorola, AN2385 Datasheet - Page 7

no-image

AN2385

Manufacturer Part Number
AN2385
Description
GPRS Wireless Internet Connectivity Using DragonBall and Palm OS Based PDAs Application Note
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
4 Program Source Code
The GSM-GPRS application is a single form (window) application. Event handling is limited to responding
to button-click events, and therefore is very simple. The code execution flow through various functions is
shown in Figure 4.
The program was created using the standard Palm OS application template in Metrowerks CodeWarrior
for Palm OS. The template was modified and renamed
GSM-GPRS application. The header file
in the GUI. Other header files are standard Palm OS header files.
The source file can be viewed by opening the project file
contents of Gprs-App.c are shown in Code Listing 1.
/**************************************************************************
* Copyright Motorola Inc., Austin, Texas, U.S.A. All rights reserved.
* Description:
*
*
*Designed, coded and tested by:
*Organization: Motorola Inc., Austin, Texas, (U.S.A.)
*
**************************************************************************/
//--------------------------- Header File(s) Inclusion ------------------//
#include <PalmOS.h>
#include <SerialMgr.h>
#include "StarterRsc.h"
//-----------------------------------------------------------------------//
//----------------------------- Internal Structures ---------------------//
typedef struct
MOTOROLA
{
UInt8 replaceme;
} StarterPreferenceType;
GPRS Wireless Internet Connectivity Application Note
This file contains PilotMain() and other
implement a basic GSM/GPRS dialer.
Freescale Semiconductor, Inc.
For More Information On This Product,
Figure 4. Code Execution Flow
Code Listing 1. Gprs-App.c
Go to: www.freescale.com
StarterRsc.h
Lalan J. Mishra (Lalan@motorola.com)
Gprs-App.c
GPRS.mcp
contains the definitions for various objects used
. This file is the main source file of the
in the CodeWarrior environment. The
functions to
Program Source Code
7

Related parts for AN2385