gpiosim(4) - NetBSD Manual Pages

Command: Section: Arch: Collection:  
GPIOSIM(4)              NetBSD Kernel Interfaces Manual             GPIOSIM(4)


NAME
gpiosim -- General Purpose Input/Output Simulator
SYNOPSIS
pseudo-device gpiosim
DESCRIPTION
The gpiosim pseudo-device simulates a 64-bit wide gpio(4) device. The state of the simulated device can be manipulated through the sysctl(8) interface. For this purpose, access the "hw.gpiosim<N>.value" sysctl(8) variable, where "<N>" denotes the number of the gpiosim instance. Both edge and level interrupts are simulated. The "hw.gpiosim<N>.ms" sysctl(8) variable will change the amount of time between callout(9) ticks for simulated level interrupts.
SEE ALSO
gpio(4), gpioirq(4), sysctl(8)
AUTHORS
The gpiosim driver was written by Marc Balmer <marc@msys.ch> Simulated interrupts added by Brad Spencer <brad@anduin.eldar.org>. NetBSD 10.99 November 8, 2013 NetBSD 10.99
Powered by man-cgi (2024-03-20). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.