Skip to content

File syn_port_gpio.h

File List > port > syn_port_gpio.h

Go to the documentation of this file

#ifndef SYN_PORT_GPIO_H
#define SYN_PORT_GPIO_H

#include "../common/syn_defs.h"

#ifdef __cplusplus
extern "C" {
#endif

SYN_Status syn_port_gpio_init(SYN_GPIO_Pin pin, SYN_GPIO_Mode mode);

SYN_Status syn_port_gpio_deinit(SYN_GPIO_Pin pin);

SYN_Status syn_port_gpio_write(SYN_GPIO_Pin pin, SYN_GPIO_State state);

SYN_GPIO_State syn_port_gpio_read(SYN_GPIO_Pin pin);

SYN_Status syn_port_gpio_toggle(SYN_GPIO_Pin pin);

#ifdef __cplusplus
}
#endif

#endif /* SYN_PORT_GPIO_H */