c2000ware-core-sdk/driverlib/.meta/inputxbar/inputxbar_deviceSpecific.js

19 lines
442 B
JavaScript
Raw Normal View History

2023-06-24 09:05:38 +03:00
exports = {
getExtraInputOptions : getExtraInputOptions
};
function getExtraInputOptions()
{
var deviceName = system.deviceData.deviceId;
2023-12-13 14:16:16 +03:00
if (["F28003x", "F28002x", "F28004x", "F2838x", "F280013x", "F280015x","F28P65x","F28P55x"].includes(deviceName))
2023-06-24 09:05:38 +03:00
{
return [
{name: "0xFFFE", displayName : "LOGIC HIGH ('1' selected input)"},
{name: "0xFFFF", displayName : "LOGIC LOW ('0' selected input)"}
];
}
else
{
return [];
}
}