Skip to content

File syn_gpio.c

FileList > drivers > syn_gpio.c

Go to the source code of this file

GPIO driver implementation.

  • #include "../util/syn_assert.h"
  • #include "syn_gpio.h"

Public Functions

Type Name
SYN_Status syn_gpio_init_multiple (const SYN_GPIO_Pin * pins, size_t count, SYN_GPIO_Mode mode)
Initialize multiple pins with the same mode.
SYN_Status syn_gpio_write_multiple (const SYN_GPIO_Pin * pins, size_t count, SYN_GPIO_State state)
Write the same state to multiple pins.

Public Functions Documentation

function syn_gpio_init_multiple

Initialize multiple pins with the same mode.

SYN_Status syn_gpio_init_multiple (
    const SYN_GPIO_Pin * pins,
    size_t count,
    SYN_GPIO_Mode mode
) 

Parameters:

  • pins Array of pin identifiers.
  • count Number of pins.
  • mode Mode to apply to all pins.

Returns:

SYN_OK if all succeeded, or the first error encountered.


function syn_gpio_write_multiple

Write the same state to multiple pins.

SYN_Status syn_gpio_write_multiple (
    const SYN_GPIO_Pin * pins,
    size_t count,
    SYN_GPIO_State state
) 

Parameters:

  • pins Array of pin identifiers.
  • count Number of pins.
  • state State to write.

Returns:

SYN_OK if all succeeded, or the first error encountered.



The documentation for this class was generated from the following file src/syntropic/drivers/syn_gpio.c