gpiod

package
v0.0.0-...-def6e6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LineDirectionAsIs    lineDirection = C.GPIOD_LINE_DIRECTION_AS_IS
	LineDirectionInput   lineDirection = C.GPIOD_LINE_DIRECTION_INPUT
	LineDirectionOutput  lineDirection = C.GPIOD_LINE_DIRECTION_OUTPUT
	LineDirectionUnknown lineDirection = 100
)
View Source
const (
	LineValueError    lineValue = C.GPIOD_LINE_VALUE_ERROR
	LineValueInactive lineValue = C.GPIOD_LINE_VALUE_INACTIVE
	LineValueActive   lineValue = C.GPIOD_LINE_VALUE_ACTIVE
)

Variables

This section is empty.

Functions

func ApiVersion

func ApiVersion() string

func NewDevice

func NewDevice(path string) *device

func NewLineConfig

func NewLineConfig() (*lineConfig, error)

func NewLineDirection

func NewLineDirection(fromC C.enum_gpiod_line_direction) lineDirection

func NewLineSettings

func NewLineSettings(offset uint) (*lineSettings, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL