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]IOExceptionpublic int getAddress()
public int getCommand()
public int getDataPinID()
public TiEventType getType()
ITiEventListenergetType in interface ITiEventListenerpublic void onEvent(ITiEvent evt)
ITiEventListeneronEvent in interface ITiEventListenerevt - event objectpublic void setEventListener(ITiVS1838BNECEventListener lc) throws IOException
lc - listener or null[IN]IOException