Our website is under construction. Please stay tuned!

leaps_gpio_cfg_output

Configure GPIO pin as output and set value.

Input
  • gpio_idx: ? 8-bit unsigned integer ? (pin index)

  • value: ? 8-bit unsigned integer ? (0 or 1)

Output

Example 1

TLV request

Type

Length

Value

pin index

pin value

0x28

0x02

0x0D

0x01

Type 0x28 means command leaps_gpio_cfg_output

TLV response

Type

Length

Value

0x40

0x01

0x00

Type 0x40 means status code

Example 2

TLV request

Type

Length

Value

pin index, 8 is reserved pin!

pin value

0x28

0x02

0x08

0x01

Type 0x28 means command leaps_gpio_cfg_output

TLV response

Type

Length

Value

  • 0 Ok

  • 1 Error

0x40

0x01

0x01

Type 0x40 means status code