PHP Class PiPHP\GPIO\Interrupt\InterruptWatcher

Inheritance: implements PiPHP\GPIO\Interrupt\InterruptWatcherInterface
Afficher le fichier Open project: piphp/gpio

Méthodes publiques

Méthode 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 méthode

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 méthode

Destructor.
public __destruct ( )

register() public méthode

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

unregister() public méthode

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

watch() public méthode

public watch ( $timeout )