??
This commit is contained in:
+8
-7
@@ -2,17 +2,18 @@
|
|||||||
|
|
||||||
class CC100_HW extends IPSModule
|
class CC100_HW extends IPSModule
|
||||||
{
|
{
|
||||||
private $DigOutPID = "/sys/kernel/dout_drv/DOUT_DATA";
|
|
||||||
private $PT1PID = "/sys/bus/iio/devices/iio:device2/in_voltage13_raw";
|
|
||||||
private $PT2PID = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw";
|
|
||||||
private $DIN_FILE = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw";
|
|
||||||
private $waitingTime = 1; // Waiting time (in ms) for a new attempt to write a digital output (if file is blocked)
|
|
||||||
private $maxTime = 5000; // Max time (in ms) for the writing process
|
|
||||||
|
|
||||||
public function Create()
|
public function Create()
|
||||||
{
|
{
|
||||||
parent::Create();
|
parent::Create();
|
||||||
$this->RegisterPropertyString("FilePath", $this->DigOutPID);
|
|
||||||
|
private $DigOutPID = "/sys/kernel/dout_drv/DOUT_DATA";
|
||||||
|
private $PT1PID = "/sys/bus/iio/devices/iio:device2/in_voltage13_raw";
|
||||||
|
private $PT2PID = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw";
|
||||||
|
private $DIN_FILE = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw";
|
||||||
|
private $waitingTime = 1; // Waiting time (in ms) for a new attempt to write a digital output (if file is blocked)
|
||||||
|
private $maxTime = 5000; // Max time (in ms) for the writing process
|
||||||
|
|
||||||
$this->RegisterVariableBoolean("Bit1", "DO 1", "~Switch", 1);
|
$this->RegisterVariableBoolean("Bit1", "DO 1", "~Switch", 1);
|
||||||
$this->RegisterVariableBoolean("Bit2", "DO 2", "~Switch", 2);
|
$this->RegisterVariableBoolean("Bit2", "DO 2", "~Switch", 2);
|
||||||
$this->RegisterVariableBoolean("Bit3", "DO 3", "~Switch", 3);
|
$this->RegisterVariableBoolean("Bit3", "DO 3", "~Switch", 3);
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.160",
|
"version": "0.161",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user