 |
LightHub
v4.0.0
Smarthome controller firmware
|
Go to the documentation of this file.
3 #ifdef UARTBRIDGE_ENABLE
10 #define serialParamType uint32_t
12 #define serialParamType uint16_t
15 #define SOURCE_PORT_A 5551
16 #define SOURCE_PORT_B 5552
19 #ifndef MODULE_UATRBRIDGE_UARTA
20 #define MODULE_UATRBRIDGE_UARTA Serial1
23 #ifndef MODULE_UATRBRIDGE_UARTB
24 #define MODULE_UATRBRIDGE_UARTB Serial2
27 #ifndef MODULE_UATRBRIDGE_UARTA_RX_PIN
28 #define MODULE_UATRBRIDGE_UARTA_RX_PIN 15
31 #ifndef MODULE_UATRBRIDGE_UARTA_TX_PIN
32 #define MODULE_UATRBRIDGE_UARTA_TX_PIN 2
35 #ifndef MODULE_UATRBRIDGE_UARTB_RX_PIN
36 #define MODULE_UATRBRIDGE_UARTB_RX_PIN -1
39 #ifndef MODULE_UATRBRIDGE_UARTB_TX_PIN
40 #define MODULE_UATRBRIDGE_UARTB_TX_PIN -1
62 out_UARTbridge(
Item * _item):
abstractOut(_item){store = (ubPersistent *) item->getPersistent();};
64 int Poll(
short cause)
override;
68 int Ctrl(
itemCmd cmd,
char* subItem=NULL,
bool toExecute=
true)
override;
virtual int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true)=0
Definition: itemCmd.h:153
virtual int Stop()
Definition: abstractch.h:15
Definition: abstractout.h:7
#define ST_INT32
Definition: itemCmd.h:96
#define serialParamType
Definition: utils.h:49
Definition: abstractout.h:8
virtual int getDefaultStorageType()
Definition: abstractout.h:15
int Setup() override
Remove?? Now getChanType used instead.
Definition: abstractout.cpp:20
virtual int Poll(short cause)=0
virtual int getChanType()
Definition: abstractout.h:14
virtual int Status()
Definition: abstractch.h:16