Linx Technologies RXM-GPS-F4 User Manual

Page 19

Advertising
background image

32

33

213 – WriteOutput
Figure 40 contains the values for the following example to write the state of
GPIOA to low:

$PLSC,213,A,0*61

The receiver outputs a response to this command. Figure 41 contains the
response for the above command.

For some further examples of this command:

Set GPIOA to low

Input command:

$PLSC,213,A,0*61

Output response:

$PLSR,213,1*1C

Set GPIOA to high

Input command:

$PLSC,213,A,1*60

Output response:

$PLSR,213,1*1C

GPIOA is not an output

Input command:

$PLSC,213,A,1*60

Output response:

$PLSR,213,0*1D

WriteOutput Example

Name

Example

Units

Description

MID

$PLSC,213

Message ID

GPIO Number

A

Number of the GPIO line to write. Only one

line can be set at a time.

State

0

State; 0 = Low; 1 = High

Checksum

*61

<CR> <LF>

End of message termination

Figure 40: WriteOutput Example

WriteOutput Response Example

Name

Example

Units

Description

MID

$PLSR,213

Message ID

Valid

A

0: command invalid, 1: command valid

Checksum

*1C

<CR> <LF>

End of message termination

Figure 41: WriteOutput Response Example

214 – Query: Get Configuration and GPIO Last State
Figure 42 contains the values for the following example to read the
configuration and state of all of the GPIO lines:

$PLSC,214*17

The receiver outputs a response to this command. Figure 43 contains the
response for the above command.

Query Example

Name

Example

Units

Description

MID

$PLSC,214

Message ID

Checksum

*17

<CR> <LF>

End of message termination

Figure 42: Query Example

WriteOutput Example

Name

Example

Units

Description

MID

$PLSR,214

Message ID

Count

5

Total number of GPIOs

GPIO Number

A

GPIO Number

Configuration

0

Direction; 0 = Input; 1 = Output

Current State

0

0 = Low; 1 = High

GPIO Number

B

GPIO Number

Configuration

0

Direction; 0 = Input; 1 = Output

Current State

0

0 = Low; 1 = High

GPIO Number

C

GPIO Number

Configuration

0

Direction; 0 = Input; 1 = Output

Current State

0

0 = Low; 1 = High

GPIO Number

D

GPIO Number

Configuration

0

Direction; 0 = Input; 1 = Output

Current State

1

0 = Low; 1 = High

GPIO Number

E

GPIO Number

Configuration

0

Direction; 0 = Input; 1 = Output

Current State

0

0 = Low; 1 = High

Checksum

*73

<CR> <LF>

End of message termination

Figure 43: Query Response Example

Advertising