On 29/05/2019 18.46, Denis Kenzior wrote:
> // off
> l_gpio_writer_set(line, lines, 0);
> // on
> l_gpio_writer_set(line, lines, 1);
> // many
> l_gpio_writer_setv(line, 1, lines);
That looks fine to me.
While working at implementing this, I realized that the kernel API
requires setting all lines at once, so I guess we have to settle with:
l_gpio_writer_set(struct l_gpio_writer *, uint32_t, uint32_t);
And bail out if the number of values doesn't match the number of lines
passed when creating the writer.