public class TiVS1838BNEC extends Object implements ITiEventListener
Constructor and Description |
---|
TiVS1838BNEC(TiGPIO gpio,
int dataPinID)
TiVS1838B initialization
|
Modifier and Type | Method and Description |
---|---|
int |
getAddress()
Gets the address received
|
int |
getCommand()
Gets the command received
|
int |
getDataPinID()
Gets the data pin id
|
TiEventType |
getType()
the event type of the listener
|
void |
onEvent(ITiEvent evt)
triggered when the event occurs
|
void |
setEventListener(ITiVS1838BNECEventListener lc)
Set the TiVS1838BNEC event listener
|
public TiVS1838BNEC(TiGPIO gpio, int dataPinID) throws IOException
gpio
- TiGPIO object[IN]dataPinID
- data pin id[IN]IOException
public int getAddress()
public int getCommand()
public int getDataPinID()
public TiEventType getType()
ITiEventListener
getType
in interface ITiEventListener
public void onEvent(ITiEvent evt)
ITiEventListener
onEvent
in interface ITiEventListener
evt
- event objectpublic void setEventListener(ITiVS1838BNECEventListener lc) throws IOException
lc
- listener or null[IN]IOException