mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-18 16:05:05 +00:00
24 lines
349 B
C
24 lines
349 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <tactility/drivers/gpio.h>
|
|
|
|
enum GpioHogMode {
|
|
GPIO_HOG_MODE_OUTPUT_HIGH,
|
|
GPIO_HOG_MODE_OUTPUT_LOW,
|
|
GPIO_HOG_MODE_INPUT,
|
|
};
|
|
|
|
struct GpioHogConfig {
|
|
struct GpioPinSpec pin;
|
|
enum GpioHogMode mode;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|