LTPS C++ API
portextender.h
1 
6 #ifndef __LPORTEXTENDER_H__
7 #define __LPORTEXTENDER_H__
8 
14 struct PortexData
15 {
17  bool direction;
18 
20  bool value;
21 
23  bool pullup;
24 };
25 
32 {
33 public:
34 
35  Portextender();
36 
37  virtual ~Portextender();
38 
40 
45  void getData(const char *socket, int pin, PortexData &pextender);
46 
48 
53  void setData(const char *socket, int pin, PortexData &pextender);
54 };
55 
56 #endif
Struct with data for MCP23008.
Definition: portextender.h:14
bool direction
Current direction (false for output, true for input)
Definition: portextender.h:17
void setData(const char *socket, int pin, PortexData &pextender)
Set current data for 8-bit port.
void getData(const char *socket, int pin, PortexData &pextender)
Get current data for 8-bit port.
Class for 8-bit port tibbit control (Tibbit #41)
Definition: portextender.h:31
bool value
Current value (read/write for output, read for input)
Definition: portextender.h:20
bool pullup
Pull-up enabled (read/write for input, read for output)
Definition: portextender.h:23