php-linux-gpio/lib/Gpio.php

39 lines
741 B
PHP

<?php
namespace NoccyLabs\Gpio;
class Gpio
{
public function __construct()
{}
// call export before getpin
public function getPin($pinno)
{}
// export the pin
public function exportPin($pinno)
{}
// unexport the pin
public function unexportPin($pinno)
{}
// set handler, pass null to disable interrupts
public function setInterruptHandler(GpioPin $pin, callable $handler=null)
{}
// get the interrupt handler for the pin
public function getInterruptHandler(GpioPin $pin)
{}
// set edge
public function setInterruptEdge(GpioPin $pin, $edge)
{}
// get edge
public function getInterruptEdge(GpioPin $pin)
{}
}