st_ioctl()


指定ST(software timer)的设定及使用

Description

void st_ioctl(int $st_id, string $cmd)

Parameters

在$cmd上可使用的命令种类及使用方法请参考 PHPoC Device Programming Guide for P40

Return Value

none

Example

<?php
include "/lib/sd_340.php";
st_ioctl(0, "set div us");    // Configuring the unit of ST0 to micro second
st_ioctl(0, "set mode free"); // free mode
st_ioctl(0, "set dir up");    // up count
st_ioctl(0, "start");         // start the ST0
sleep(1);
st_ioctl(0, "stop");          // stop the ST0
?>

See also