beautypg.com

Figure 4-1: receive data structure, Figure 4-2: transmit data structure, Table 4-1: uart configuration – PNI SpacePoint Scout User Manual

Page 8

background image

PNI Sensor Corporation

Doc #1017545 r03

SpacePoint Scout User Manual

– January 2013

Page 8 of 19

the orientation of the module, and the horizontal and vertical position for a cursor. See

Section 5 for how to interpret the outputs.

Table 4-1: UART Configuration

Parameter

Value

Baud Rate

115200

Data Bits

8

Parity

none

Stop Bits

1

Flow Control

none

The receive (Rx) and transmit (Tx) data structures and data frames for the UART interface

are shown below in Figure 4-1 and Figure 4-2. All data is presented as unsigned integers in

little Endian format. (For I

2

C communication the format is different, being big Endian.)

Note that the receive command is a single byte frame.

Rx Command

Description

kRequestQ

0x32

Request quaternion data from SpacePoint algorithm.

kResetRef

0x34

Reset Reference Frame

Figure 4-1: Receive Data Structure

Frame ID

Description

kRequestQResp

0x32

Output SpacePoint quaternion data.

Figure 4-2: Transmit Data Structure

RX Command

(UInt8)