Technical information
Chapter 5: JAVA API
July 15, 2008 G24 KJAVA User’s Guide 5-11
HAPI Package
Package name: com.motorola.oem.hapi
The G24 KJAVA product supports two hardware-controlling APIs:
• GPIO API
• A2D API
GPIO API
The GPIO API is responsible for configuring and handling the I/O pins.
The API allows direct access to GPIO lines for:
• Read pin status
• Write to pin
• Interrupt or counter (enable/disable)
Several GPIO lines support two configuration modes:
1. Interrupt
- Receive notifications on edge-triggered, according to pre-defined notification and
debounce type.
Available GPIOs: 1, 14, 15, 16
2. Counter
- Receive notifications on counter expiry according to pre-defined notification type,
counter type and counter expiry value.
Available GPIOs: 14, 15
Working in counter mode enable system to receive interrupts in high frequency.
Notifications to user about counter expiry occurrence will arrive only when reaching
pre-defined number of interrupts - counter expiry value. See Figure 5-2 for GPIO counter
mechanism.
CSD 1/2 Phone Number
User Name
Password
Speed
Line type
CSD session
1 and 2
configuration
Speed Baud rates available:
2400, 4800, 9600,14400
Line type available: Modem,
Isdn
Speed:
14400
Line type:
Modem
GPRS APN
User Name
Password
GPRS session
access
parameters
null
Table 5-4: Web Session Parameters (Cont.)
Web Session
Parameter
Sub
Parameters
Parameter
Description
Possible values
Default
value