![]() |
no-OS
|
Relay implementation file. More...
Functions | |
| int | relay_init (struct no_os_gpio_desc **relay) |
| Initialize relay component. | |
| int | relay_open (struct no_os_gpio_desc *relay) |
| Open relay command. | |
| int | relay_close (struct no_os_gpio_desc *relay) |
| Close relay command. | |
| int | relay_state (struct no_os_gpio_desc *relay, uint8_t *state) |
| Relay command line state. | |
| uint8_t | get_relay_status (void) |
| Get relay status. | |
| void | set_relay_status (void) |
| Set relay status to CLOSED - 1. | |
| void | reset_relay_status (void) |
| Set relay status to OPENED - 0. | |
Relay implementation file.
Copyright (c) 2023 Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| uint8_t get_relay_status | ( | void | ) |
Get relay status.
| int relay_close | ( | struct no_os_gpio_desc * | relay | ) |
Close relay command.
| relay | - relay GPIO pin description |
| int relay_init | ( | struct no_os_gpio_desc ** | relay | ) |
Initialize relay component.
| relay | - relay GPIO pin description |
| int relay_open | ( | struct no_os_gpio_desc * | relay | ) |
Open relay command.
| relay | - relay GPIO pin description |
| int relay_state | ( | struct no_os_gpio_desc * | relay, |
| uint8_t * | state ) |
Relay command line state.
| relay | - relay GPIO pin description |
| state | - relay state (0 - OPEN, 1 - CLOSED) |
| void reset_relay_status | ( | void | ) |
Set relay status to OPENED - 0.
Set relay status to OPENED - 0
| void set_relay_status | ( | void | ) |
Set relay status to CLOSED - 1.
Set relay status to CLOSED - 1