Affected by GO-2022-0793
and 1 other vulnerabilities
GO-2022-0793 : Path traversal in u-root in github.com/u-root/u-root
GO-2022-0805 : github.com/u-root/u-root/pkg/tarutil Arbitrary File Write via Archive Extraction (Zip Slip) in github.com/u-root/u-root
Discover Packages
github.com/u-root/u-root
pkg
gpio
package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Nov 29, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package gpio provides functions for interacting with GPIO pins via the
GPIO Sysfs Interface for Userspace.
Export enables access to the given gpio pin.
GetPinID computes the sysfs pin ID for a specific port on a specific GPIO
controller chip. The controller arg is matched to a gpiochip's label in
sysfs. GetPinID gets the base offset of that chip, and adds the specific
pin number.
SetOutputValue configures the gpio as an output pin with the given value.
Value represents the value of a gpio pin
Gpio pin values can either be low (0) or high (1)
ReadValue returns the value of the given gpio pin. If the read was
unsuccessful, it returns a value of Low and the associated error.
Dir returns the representation that sysfs likes to use.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.