2N TELEKOMUNIKACE a.s., www.2n.cz
14/42
IndoorTouch.RC_OK = 0;
IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
IndoorTouch.RC_ERR_SYS = -6; system error (the value cannot be written, etc.)
IndoorTouch.RC_ERR_DENIED = -7; GPIO does not exist or is unwriteable
IndoorTouch.RC_ERR_LOCKED = -8; locked by another process via GPIOLock
3.3.2.3 GPIO Pin Locking
int
IndoorTouch.GPIOLock(
int
pin);
Pin is the PIN index, refer to
. Locks the PIN against use with
the active process. Another process can read the value but the setting ends with
R C _ E R R _ L O C K E D .
The return value is as follows:
IndoorTouch.RC_OK = 0;
IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
IndoorTouch.RC_ERR_LOCKED = -8; already locked by another process via
GPIOLock
3.3.2.4 GPIO Pin Unlocking
int
IndoorTouch.GPIOUnlock(
int
pin);
Pin is the PIN index, refer to
. Unlocks the selected PIN that
was locked via GPIOLock.
The return value is as follows:
IndoorTouch.RC_OK = 0;
IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
IndoorTouch.RC_ERR_LOCKED = -8; already locked by another process via
GPIOLock
IndoorTouch.RC_ERR_NOTLOCKED = -9; PIN is not locked and need not be
unlocked