Our website is under construction. Please stay tuned!

dwm_gpio_value_set

Sets pin value

void dwm_gpio_value_set(uint8_t gpio_idx, uint8_t value)
Parameters
  • gpio_idx – ? 8-bit integer ? (see previous chapter for allowed values).

  • value – ? 8-bit integer ? (0 or 1).

  • output – err_code.

C code example

dwm_gpio_value_set(DWM_GPIO_IDX_13, 1);
dwm_gpio_value_set(DWM_GPIO_IDX_13, 0);
dwm_gpio_value_set(DWM_GPIO_IDX_2, 1);

SPI/UART example

TLV request

type

length

value

pin index

pin value

0x2a

0x02

0x0D

0x01

Type 0x2a means command dwm_gpio_value_set

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the previous command