SysIo  1.9.0
Embedded Library and tools
doutput.h
1 
8 #ifndef _SYSIO_DOUTPUT_H_
9 #define _SYSIO_DOUTPUT_H_
10 #include <sysio/gpio.h>
11 
12 #ifndef __DOXYGEN__
13 
14 #ifdef __cplusplus
15  extern "C" {
16 #endif
17 /* ========================================================================== */
33 /* structures =============================================================== */
37 typedef struct xDout {
38  int num;
39  bool act;
40 } xDout;
41 
47 typedef struct xDoutPort xDoutPort;
48 
49 /* internal public functions ================================================ */
50 
59 xDoutPort * xDoutOpen (const xDout * pins, unsigned size);
60 
67 int iDoutClose (xDoutPort * port);
68 
75 int iDoutPortSize (xDoutPort * port);
76 
87 int iDoutClear (unsigned output, xDoutPort * port);
88 
99 int iDoutSet (unsigned output, xDoutPort * port);
100 
108 int iDoutToggle (unsigned output, xDoutPort * port);
109 
120 int iDoutRead (unsigned output, xDoutPort * port);
121 
131 int iDoutClearAll (xDoutPort * port);
132 
142 int iDoutSetAll (xDoutPort * port);
143 
150 int iDoutToggleAll (xDoutPort * port);
151 
163 int iDoutReadAll (xDoutPort * port);
164 
169 #ifdef __cplusplus
170  }
171 #endif
172 #endif // __DOXYGEN__
173 /* ========================================================================== */
174 #endif /*_SYSIO_DOUTPUT_H_ defined */