Skip Headers
Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Qualcomm IoE)
Release 8 EA 2
E48513-01
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

Beta Draft: 2014-03-25

A Device Access API Preconfigured Peripheral List

This appendix provides information about the various peripheral ports and buses for the Qualcomm IoE embedded board, as well as device mappings and important notes, which are accessible using the Device Access APIs.

Note that any IMlet that accesses the Device Access APIs must be digitally signed using a trusted certificate authority. An IMlet that is not signed will encounter an authentication error when attempting to access the Device Access APIs.


Note:

Power Management, and MMIO are not supported on the Qualcomm IoE embedded board.


The tables use the following legend:

AT Devices

The following AT devices are pre-configured.

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

800

DEFAULT

Brew's AT command interface

deviceNumber = PeripheralConfig.DEFAULT

channelNumber = PeripheralConfig.DEFAULT


For a complete list of AT commands that can be used, please see the Qualcomm IoE Development Platform User's Guide.

Please note the following when using AT commands:

ADC

The following Analog-to-Digital (ADC) devices are pre-configured.

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

100

VTHERM_N

On-board Temperature Sensor

deviceNumber = PeripheralConfig.DEFAULT

channelNumber = 0

resolution = PeripheralConfig.DEFAULT

samplingInterval = PeripheralConfig.DEFAULT

samplingTime = PeripheralConfig.DEFAULT

101

HKAIN1

Any pin from J10 header.

Pin number is chosen according to

the configuration of ADC multiplexer

deviceNumber = PeripheralConfig.DEFAULT

channelNumber = 1

resolution = PeripheralConfig.DEFAULT

samplingInterval = PeripheralConfig.DEFAULT

samplingTime = PeripheralConfig.DEFAULT


Please note the following:

DAC

The following Digital-to-Analog (DAC) devices are pre-configured.

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

700

PDM0

Header J5 pin 18

deviceNumber = PeripheralConfig.DEFAULT

channelNumber = 0

resolution = PeripheralConfig.DEFAULT

samplingInterval = PeripheralConfig.DEFAULT

701

PDM1

Reserved for future use; not available on Qualcomm IoE

deviceNumber = PeripheralConfig.DEFAULT

channelNumber = 1

resolution = PeripheralConfig.DEFAULT

samplingInterval = PeripheralConfig.DEFAULT


Please note the following:

GPIO Pins

The following GPIO pins are pre-configured.

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

0

GPIO0

Header J5 pin 3

portNumber = PeripheralConfig.DEFAULT

pinNumber = 26

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue - ignored

1

GPIO1

Header J5 pin 5

JP7 ADC MUX 0

portNumber = PeripheralConfig.DEFAULT

pinNumber = 25

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue - ignored

2

GPIO2

Header J5 pin 7

JP8 ADC MUX 1

portNumber = PeripheralConfig.DEFAULT

pinNumber = 31

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue - ignored

3

GPIO3

Header J5 pin 9

JP9 ADC MUX 2

portNumber = PeripheralConfig.DEFAULTpinNumber = 17direction = GPIOPinConfig.DIR_INPUT_ONLYmode = PeripheralConfig.DEFAULTtrigger = GPIOPinConfig.TRIGGER_HIGH_LEVELinitValue - ignored

4

GPIO4

Header J5 pin 11

portNumber = PeripheralConfig.DEFAULT

pinNumber = 32

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_HIGH_LEVEL

initValue - ignored

5

GPIO5

Header J6 pin 3

portNumber = PeripheralConfig.DEFAULT

pinNumber = 28

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_HIGH_LEVEL

initValue - ignored

6

GPIO6

Header J6 pin 5

JP11 pin 2(to connect to G-sensor Interrupt)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 27

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_RISING_EDGE

initValue - ignored

7

GPIO7

Header J6 pin 7

JP12 pin 2 (to connect to light sensor interrupt)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 30

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue - ignored

8

GPIO8

Header J6 pin 7

portNumber = PeripheralConfig.DEFAULT

pinNumber = 38

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_LOW_LEVEL

initValue - ignored

9

GPIO9

Header J6 pin 11

JP13 pin 1(to connect to temp sensor interrupt)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 33

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_FALLING_EDGE

initValue - ignored

10

GPIO10

Header J7 pin 1

Relay 1

portNumber = PeripheralConfig.DEFAULT

pinNumber = 18

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

11

GPIO11

Header J7 pin 3

Relay 2

portNumber = PeripheralConfig.DEFAULT

pinNumber = 24

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

12

GPIO12

Header J7 pin 5

portNumber = PeripheralConfig.DEFAULT

pinNumber = 29

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

13

GPIO13

Header J7 pin 7

portNumber = PeripheralConfig.DEFAULT

pinNumber = 35

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

14

GPIO14

Header J7 pin 9

Jumper P2 pin 2

(Used by LED)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 13

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

15

GPIO15

Header J7 pin 11

Jumper P3 pin 2

(Used by LED)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 34

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

16

GPIO16

Header J7 pin 13

Jumper P4 pin 2

(Used by LED)

portNumber = Peripheral.Config.DEFAULT

pinNumber = 12

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

17

GPIO17 or

LED2

Header J7 pin 15

Jumper P5 pin 2

(Used by LED)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 16

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

18

GPIO18

Header J7 pin 17

Jumper P6 pin 2

(Used by LED)

portNumber = PeripheralConfig.DEFAULT

pinNumber = 36

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

19

GPIO19

Header J7 pin 19

portNumber = PeripheralConfig.DEFAULT

pinNumber = 15

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

20

GPIO20

Header J7 pin 2

DB9 J12 lower pin 3

portNumber = PeripheralConfig.DEFAULT

pinNumber = 10

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_LOW_LEVEL

initValue - ignored

21

GPIO21

Header J7 pin 4

DB9 J12 lower pin 2

portNumber = PeripheralConfig.DEFAULT

pinNumber = 14

direction = GPIOPinConfig.DIR_INPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_LOW_LEVEL

initValue - ignored

22

GPIO22

Header J7 pin 6

portNumber = PeripheralConfig.DEFAULT

pinNumber = 11

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

23

GPIO23

Header J7 pin 8

portNumber = PeripheralConfig.DEFAULT

pinNumber = 9

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false

24

GPIO24

Header J7 pin 10

DB9 J10 lower pin 2

portNumber = PeripheralConfig.DEFAULT

pinNumber = 37

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = PeripheralConfig.DEFAULT

trigger = GPIOPinConfig.TRIGGER_NONE

initValue = false


Please note the following:

GPIO Ports

The following GPIO ports are pre-configured.

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

200

LEDS

Header J7 pin 9 and Jumper P2 pin 2 (used by LED)

Header J7 pin 11 and Jumper P3 pin 2 (used by LED)

Header J7 pin 13 and Jumper P4 pin 2 (used by LED)

Header J7 pin 15 and Jumper P5 pin 2 (used by LED)

Header J7 pin 17 and Jumper P6 pin 2 (used by LED)

direction = GPIOPortConfig.DIR_OUTPUT_ONLY

initValue = false

pins = 13, 34, 12, 16. 36

mode of pins = PeripheralConfig.DEFAULT

trigger of pins = GPIOPinConfig.TRIGGER_NONE

80

ADC-MUX-SEL

Header J5 pin 5 and JP7 ADC MUX 0

Header J5 pin 7 and JP8 ADC MUX 1

Header J5 pin 9 and JP9 ADC MUX 2

direction = GPIOPortConfig.DIR_OUTPUT_ONLY

initValue = false

pins = 25, 31, 17 mode of pins = PeripheralConfig.DEFAULT

trigger of pins = GPIOPinConfig.TRIGGER_NONE


I2C

The following configurations can be used to communicate to I2C slaves.

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

300

G-SENSOR

On-board G-Sensor

deviceNumber = 1

address = 56

addressSize = PeripheralConfig.DEFAULT

clockFrequency = 400000

301

LIGHT-SENSOR

On-board Light Sensor

deviceNumber = 1

address = 68

addressSize = PeripheralConfig.DEFAULT

clockFrequency = 400000

302

TEMP-SENSOR

On-board Temperature sensor

deviceNumber = 1

address = 75

addressSize = PeripheralConfig.DEFAULT

clockFrequency = 400000

303

BATTERY-GAUGE

On-board Battery Gauge

deviceNumber = 1

address = 85

addressSize = PeripheralConfig.DEFAULT

clockFrequency = 400000


Please note the following:

Pulse Counter

The pulse counter has the following configuration:

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

600

COUNTER

GPIO pin 35, Header J7 pin 7

deviceNumber = PeripheralConfig.DEFAULT

channelNumber = PeripheralConfig.DEFAULT

type = TYPE_RISING_EDGE_ONLY

GPIO portNumber = PeripheralConfig.DEFAULT

GPIO pinNumber = 35


Please note the following:

SPI

The SPI has a single static configuration with the following parameters:

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

400

G-SENSOR

On-board G-Sensor

deviceNumber = 1

wordLength = 8

clockFrequency = 26000000

clockMode = 3

address = 0

bitOrdering = PeripheralConfig.DEFAULT


Please note the following:

There are also some global SPI related options that are set for all SPI slaves:

If you must change any of these properties for some SPI device, you can add the following in the jwc_properties.ini file:

deviceaccess.spi.{bus_id}.{slave_address}.csMode = {value}
deviceaccess.spi.{bus_id}.{slave_address}.minFreq = {value}
deviceaccess.spi.{bus_id}.{slave_address}.deassertionTime = {value}

Restrictions on Java SPI API usage

In order to connect an external SPI device, remove JP17 jumper. Refer to section 5.2.3, "SPI" in the Qualcomm IoE Development Platform User's Guide for more info.

UART

The following UART devices are pre-configured:

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

40

COM1

DB9 J10 upper port

uartNumber - ignored

baudRate = 19200

dataBits = DATABITS_8

parity = PARITY_NONE

stopBits = STOPBITS_1

flowcontrol = FLOWCONTROL_NONE

inputBufferSize - ignored

outputBufferSize - ignored


Please note the following:

Watchdog

The following watchdog devices are pre-configured:

DAAPI Peripheral ID DAAPI Peripheral Name Mapped To Configuration

500

WDG

Platform Watchdog

N/a

501

WWDG


N/a


Watchdog peripheral with the name WDG is a basic platform WatchdogTimer while with the name WWDG is a WindowedWatchdogTimer.