6. LW2 Programmer's Reference
RAP-B511 series
– User's Manual
63
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
6.4.6.
Enable/disable the Ethernet Port
Command and Response
{ETH_ENABLE=
<switch>
}
(ETH_ENABLE=
<switch>
)CrLf
Parameters
If the
<switch>
parameter is
0
, the port is
disabled
. If its value is
1
, the port is
enabled
.
Example
{ETH_ENABLE=1}
(ETH_ENABLE=1)
6.5. GPIO Port Configuration
6.5.1.
Setting the Level and Direction for Each Pins
GPIO pins can be configured as follows. See more details about GPIO connector in the
section.
Command and Response
#gpio
{GPIO
<pin_nr>
=
<dir>
;
<level>
}
(GPIO
<pin_nr>
=
<dir>
;
<level>
)CrLf
Parameters
Parameter
Parameter description
Value
Value description
<pin_nr>
GPIO pin number
0-3
static
<dir>
The direction of the communication
I
Input
O
Output
<level>
The level of the pin
L
Low
H
High
T
Toggle between low and high
Example
{gpio1=O;H}
(GPIO1=O;H)
GPIO pin 1 is set to output with high level.
INFO:
The current GPIO pin configuration can be queried by typing the {GPIO<pin_nr>=?} command.