void set_relay_status(void)
Set relay status to CLOSED - 1.
Definition: relay.c:122
uint8_t get_relay_status(void)
Get relay status.
Definition: relay.c:112
int relay_close(struct no_os_gpio_desc *relay)
Close relay command.
Definition: relay.c:91
int relay_close(struct no_os_gpio_desc *relay)
Close relay command.
Definition: relay.c:91
int32_t no_os_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: no_os_gpio.c:221
int relay_open(struct no_os_gpio_desc *relay)
Open relay command.
Definition: relay.c:81
void reset_relay_status(void)
Set relay status to OPENED - 0.
Definition: relay.c:132
int relay_open(struct no_os_gpio_desc *relay)
Open relay command.
Definition: relay.c:81
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
uint8_t get_relay_status(void)
Get relay status.
Definition: relay.c:112
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
void reset_relay_status(void)
Set relay status to OPENED - 0.
Definition: relay.c:132
int relay_state(struct no_os_gpio_desc *relay, uint8_t *state)
Relay command line state.
Definition: relay.c:102
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
int relay_init(struct no_os_gpio_desc **relay)
Initialize relay component.
Definition: relay.c:59
int relay_state(struct no_os_gpio_desc *relay, uint8_t *state)
Relay command line state.
Definition: relay.c:102
struct no_os_gpio_init_param ade9113_gpio_relay_ip
Definition: common_data.c:88
int relay_init(struct no_os_gpio_desc **relay)
Initialize relay component.
Definition: relay.c:59
void set_relay_status(void)
Set relay status to CLOSED - 1.
Definition: relay.c:122
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:75