Download Print this page

AcSiP S76G Command Reference Manual page 16

Commands set reference

Advertisement

>> module=S76G ver=v1.0.8
3.1.10 (production verification) sip set_gpio_mode <Gpio_Group>
<Gpio_Pin_Number> <Gpio_Mode>
<Gpio_Group> A string representing STM32 GPIO pin groups, it can be these characters A, B, C, D, E,
F and H (note: no G).
<Gpio_Pin_Number> A decimal string representing STM32 GPIO pin number, it can be set from 1 to
15.
<Gpio_Mode > A decimal string representing STM32 GPIO pin mode, it can be assigned as output or
input, set 1 would let pin state be output mode and 0 let it as input mode.
Response: Ok, if input arguments are valid.
Invalid, if input argument are not valid or out of range.
Purpose: Assign STM32 GPIO pin mode as input or output.
Example (Set PA_0 as output mode):
sip set_gpio_mode A 0 1
>> Ok
3.1.11 (production verification) sip set_gpio <Gpio_Group>
<Gpio_Pin_Number> <Gpio_Value>
<Gpio_Group> A string representing STM32 GPIO pin groups, it can be these characters A, B, C, D, E,
F and H (note: no G).
<Gpio_Pin_Number> A decimal string representing STM32 GPIO pin number, it can be set from 0 to
15.
<Gpio_Value > A decimal string representing STM32 GPIO pin value, it can be assigned as high or low,
set 1 would let pin be high state and 0 let it as low state.
Response: Ok, if input arguments are valid.
Invalid, if input argument are not valid or out of range.
Purpose: Assign STM32 GPIO pin state as high or low.
Example (Set PA_0 as output high state):
sip set_gpio_mode A 0 1
>> Ok
S76G/S78G Commands Set Reference
Product Name
Version
v1.6.5
Doc No
Date
July 2, 2018
Page
15 of 73

Advertisement

loading

This manual is also suitable for:

S78g