st_ioctl()


Configuring and Operating the designaed software timer(ST)

Description

void st_ioctl(int $st_id, string $cmd)

Parameters

refer to the document named PHPoC Device Programming Guide for P40 for the details about commands available on $cmd

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