|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Module ORB servant implementing the IOControlOperations interface.
Reference to this servant can be obtained by using following name:
Method Summary | |
com.nokia.m2m.orb.idl.iomodule.AnalogAlarmLimits |
getInputPinAlarmLimits(short pinNumber)
Returns the alarm limits of an analog input pin. |
short |
getInputPinAlarmPeriod(short pinNumber)
Returns the alarm time of an analog input pin. |
com.nokia.m2m.orb.idl.iomodule.PinMode |
getInputPinMode(short pinNumber)
Returns the input mode of a given pin number. |
int |
getInputPinValue(short pinNumber)
Returns the current value of an input pin. |
int[] |
getInputPinValueList(short[] pinNumbers)
Returns the values of multiple input pins. |
int |
getOutputPinValue(short pinNumber)
Returns the value of an output pin. |
int[] |
getOutputPinValueList(short[] pinNumbers)
Returns the values of multiple digital output pins. |
int |
numberOfInputPins()
Returns the total number of input pins. |
int |
numberOfOutputPins()
Returns the total number of output pins. |
void |
removeIOControlObserver(com.nokia.m2m.orb.idl.iomodule.IOControlObserver observer,
short[] pinNumbers)
Method call is used for canceling I/O control observer. |
void |
setInputPinModeAlarming(short pinNumber,
com.nokia.m2m.orb.idl.iomodule.AnalogAlarmLimits limits)
Method call is used for setting the mode of a given input pin to analog and alarming. |
void |
setInputPinModeAnalog(short pinNumber)
Method call is used for setting the mode of a given input pin to analog. |
void |
setInputPinModeDigital(short pinNumber)
Method call is used for setting the mode of a given input pin to digital. |
void |
setInputPinModePeriodical(short pinNumber,
short interval)
Method call is used for setting the mode of a given input pin to analog and periodical. |
void |
setIOControlObserver(com.nokia.m2m.orb.idl.iomodule.IOControlObserver observer,
short[] pinNumbers)
Method call is used for subscribing input events. |
void |
setOutputPinValue(short pinNumber,
int value)
Sets the value of a digital output pin. |
void |
setOutputPinValueList(short[] pinNumbers,
int[] values)
Sets the values of multiple digital output pins. |
Method Detail |
public int numberOfInputPins()
public int numberOfOutputPins()
public com.nokia.m2m.orb.idl.iomodule.PinMode getInputPinMode(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
pinNumber
- Defines the pin number queried. If the pin number is 1, 2 or 3, the pin number refers to analog pin. Pin numbers 4 or higher refer to digital input pins.
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
public com.nokia.m2m.orb.idl.iomodule.AnalogAlarmLimits getInputPinAlarmLimits(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
pinNumber
- Defines the pin number. If the pin number is 1, 2 or 3,
the pin number refers to analog pin. Pin numbers 4 or higher refer to digital input pins.
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
public short getInputPinAlarmPeriod(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
pinNumber
- Defines the pin number. If the pin number is 1, 2 or 3,
the pin number refers to analog pin. Pin numbers 4 or higher refer to digital input pins.
PinNumberOutOfRange
InvalidPinMode,
- if the queried input pin is digital.
com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
public void setInputPinModeDigital(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
pinNumber
-
PinNumberOutOfRange
InvalidPinMode
public void setInputPinModeAnalog(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
pinNumber
-
PinNumberOutOfRange
InvalidPinMode
public void setInputPinModeAlarming(short pinNumber, com.nokia.m2m.orb.idl.iomodule.AnalogAlarmLimits limits) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.PeriodOutOfRange, com.nokia.m2m.orb.idl.iomodule.LowLimitOutOfRange, com.nokia.m2m.orb.idl.iomodule.InvalidPinMode, com.nokia.m2m.orb.idl.iomodule.HighLimitOutOfRange
pinNumber
- limits
-
PinNumberOutOfRange
InvalidPinMode
PeriodOutOfRange
HighLimitOutOfRange
LowLimitOutOfRange
public void setInputPinModePeriodical(short pinNumber, short interval) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.PeriodOutOfRange, com.nokia.m2m.orb.idl.iomodule.InvalidPinMode
pinNumber
- interval
-
PinNumberOutOfRange
InvalidPinMode
PeriodOutOfRange
public int getInputPinValue(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
pinNumber
- Defines the pin number. If the pin number is 1, 2 or 3,
the pin number refers to analog pin. Pin numbers 4 or higher refer to digital input pins.
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
public int[] getInputPinValueList(short[] pinNumbers) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
pinNumbers
- An array of pin numbers to be queried. Each pin number in in the array
has following meaning: Pin numbers 1, 2 and 3 refer to analog pins
and pin numbers 4 or higher refer to digital pins.
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
public void setOutputPinValue(short pinNumber, int value) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange, com.nokia.m2m.orb.idl.iomodule.PinValueOutOfRange
pinNumber
- Defines the pin number for the digital output pin.value
- Defines the value of digital output pin. If the value is set to 0,
then the digital output pin is turned off. Otherwise the digital output pin is turned on.
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
com.nokia.m2m.orb.idl.iomodule.PinValueOutOfRange
public void setOutputPinValueList(short[] pinNumbers, int[] values) throws com.nokia.m2m.orb.idl.iomodule.PinValueOutOfRangeList, com.nokia.m2m.orb.idl.iomodule.ListsNotEven, com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
pinNumbers
- Defines multible pin numbers to be referred. For each pin number defined,
1, 2 and 3 refer to analog pin and numbers 4 or higher refer to digital pin.values
- Defines multible pin values. For each value defined,
0 means that the pin is turned off and other values mean that the pin is turned on.
com.nokia.m2m.orb.idl.iomodule.PinValueOutOfRangeList
com.nokia.m2m.orb.idl.iomodule.ListsNotEven
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
public int getOutputPinValue(short pinNumber) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRange
pinNumber
- Defines digital output pin number to be queried.
PinNumberOutOfRange
public int[] getOutputPinValueList(short[] pinNumbers) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
pinNumbers
- Defines pin numbers to be queried.
com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
public void setIOControlObserver(com.nokia.m2m.orb.idl.iomodule.IOControlObserver observer, short[] pinNumbers) throws com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
observer
- pinNumbers
-
PinNumberOutOfRangeList
public void removeIOControlObserver(com.nokia.m2m.orb.idl.iomodule.IOControlObserver observer, short[] pinNumbers) throws com.nokia.m2m.orb.idl.iomodule.ObserverNotExists, com.nokia.m2m.orb.idl.iomodule.PinNumberOutOfRangeList
observer
- pinNumbers
-
ObserverNotExists
PinNumberOutOfRangeList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |