Packages
circuits_gpio
2.3.0
2.3.0
2.2.0
2.1.3
2.1.2
retired
2.1.1
retired
2.1.0
retired
2.0.2
retired
2.0.1
retired
2.0.0
retired
2.0.0-pre.6
retired
2.0.0-pre.5
retired
2.0.0-pre.4
retired
2.0.0-pre.3
retired
2.0.0-pre.2
retired
2.0.0-pre.1
retired
2.0.0-pre.0
retired
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
Use GPIOs in Elixir
Current section
Files
Jump to
Current section
Files
c_src/hal_cdev_gpio.h
// SPDX-FileCopyrightText: 2018 Frank Hunleth
// SPDX-FileCopyrightText: 2023 Connor Rigby
//
// SPDX-License-Identifier: Apache-2.0
#ifndef HAL_CDEV_GPIO_H
#define HAL_CDEV_GPIO_H
#include <stdint.h>
#include "erl_nif.h"
struct hal_cdev_gpio_priv {
ErlNifTid poller_tid;
int pipe_fds[2];
};
struct gpio_pin;
void *gpio_poller_thread(void *arg);
int update_polling_thread(struct gpio_pin *pin);
#endif // HAL_CDEV_GPIO_H