18
Configuration
GPIO1 connector configuration can be done by editing the user preferences using the
Administration console
user interface or with a configuration
script. The GPIO1 configuration part for this script is described here:
H ow to configure the J ack 3.5 mm connector:
//Set Jack 3.5 mm mode infrared
if (aDirection = = "disable")
{
Services.prefs.setBoolPref("system.connector.jack35_ 1.1.io.uart_ 1.enabled", true);
}
else //Set Jack 3.5 mm mode GPIO
{
Services.prefs.setBoolPref("system.connector.jack35_ 1.1.io.uart_ 1.enabled", false);
}
// Set the Jack 3.5 mm direction: input or output
if (aDirection = = "out")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_ 1.jack35_ 1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_ 1.jack35_ 1.*.authorized", true);
Services.prefs.setBoolPref("system.connector.jack35_ 1.1.io.jack35-gpio_ 1.enabled", true);
}
else if (aDirection = = "in")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_ 1.jack35_ 1.*.authorized", true);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_ 1.jack35_ 1.*.authorized", false);
Services.prefs.setBoolPref("system.connector.jack35_ 1.1.io.jack35-gpio_ 1.enabled", true);
}
else if (aDirection = = "disable")
{
Services.prefs.setBoolPref("innes.app-profile.gpio-input.jack35-gpio_ 1.jack35_ 1.*.authorized", false);
Services.prefs.setBoolPref("innes.app-profile.gpio-output.jack35-gpio_ 1.jack35_ 1.*.authorized", false);
Services.prefs.setBoolPref("system.connector.jack35_ 1.1.io.jack35-gpio_ 1.enabled", false);
}
Содержание 4.13.15 002E
Страница 1: ...U ser manual DMB 400 4 13 15 002E...
Страница 4: ...4 Part I Description and installation...
Страница 7: ...7 1 2 1 Device xture...
Страница 8: ...8 1 2 2 Device dimensions...
Страница 15: ...15 N Function 1 CD 2 RX D 3 TX D 4 DTR 5 GND 6 DSR 7 RTS 8 CTS 9...
Страница 17: ...17...
Страница 19: ...19 Part II Applicative user interface...
Страница 21: ...21 Part III Administration console user interface...
Страница 49: ...49 Part IV Con guration b y script...
Страница 51: ...51 Part V Technical information...
Страница 54: ...54 5 2 Conformities In conformity with the following European directives LVD 2014 35 EU EMC 2014 30 EU...
Страница 55: ...55 Part VI Contacts...
Страница 57: ...57 Part VII Appendix...
Страница 62: ...62 15 16 17...