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
31
class
Portextender
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
PortexData
Struct with data for MCP23008.
Definition:
portextender.h:14
PortexData::direction
bool direction
Current direction (false for output, true for input)
Definition:
portextender.h:17
Portextender
Class for 8-bit port tibbit control (Tibbit #41)
Definition:
portextender.h:31
PortexData::value
bool value
Current value (read/write for output, read for input)
Definition:
portextender.h:20
PortexData::pullup
bool pullup
Pull-up enabled (read/write for input, read for output)
Definition:
portextender.h:23
Fri Jul 27 2018 08:50:33