PHP Class PiPHP\GPIO\Interrupt\InterruptWatcher

Inheritance: implements PiPHP\GPIO\Interrupt\InterruptWatcherInterface
Mostra file Open project: piphp/gpio

Public Methods

Method Description
__construct ( PiPHP\GPIO\FileSystem\FileSystemInterface $fileSystem, callable $streamSelect ) Constructor.
__destruct ( ) Destructor.
register ( PiPHP\GPIO\Pin\InputPinInterface $pin, callable $callback )
unregister ( PiPHP\GPIO\Pin\InputPinInterface $pin )
watch ( $timeout )

Method Details

__construct() public method

Constructor.
public __construct ( PiPHP\GPIO\FileSystem\FileSystemInterface $fileSystem, callable $streamSelect )
$fileSystem PiPHP\GPIO\FileSystem\FileSystemInterface An object that provides file system access
$streamSelect callable The stream select implementation

__destruct() public method

Destructor.
public __destruct ( )

register() public method

public register ( PiPHP\GPIO\Pin\InputPinInterface $pin, callable $callback )
$pin PiPHP\GPIO\Pin\InputPinInterface
$callback callable

unregister() public method

public unregister ( PiPHP\GPIO\Pin\InputPinInterface $pin )
$pin PiPHP\GPIO\Pin\InputPinInterface

watch() public method

public watch ( $timeout )