libwallaby  v24
The wallaby standard library
digital.h
Go to the documentation of this file.
1 /*
2  * digital.h
3  *
4  * Created on: Nov 2, 2015
5  * Author: Joshua Southerland
6  */
7 
8 #ifndef INCLUDE_WALLABY_DIGITAL_H_
9 #define INCLUDE_WALLABY_DIGITAL_H_
10 
11 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
27 int digital(int port);
28 
34 void set_digital_value(int port, int value);
35 
36 
43 int get_digital_value(int port);
44 
51 void set_digital_output(int port, int out);
52 
59 int get_digital_output(int port);
60 
67 int get_digital_pullup(int port);
68 
76 void set_digital_pullup(int port, int pullup);
77 
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif /* INCLUDE_WALLABY_DIGITAL_H_ */
get_digital_output
int get_digital_output(int port)
get_digital_pullup
int get_digital_pullup(int port)
set_digital_pullup
void set_digital_pullup(int port, int pullup)
get_digital_value
int get_digital_value(int port)
set_digital_output
void set_digital_output(int port, int out)
set_digital_value
void set_digital_value(int port, int value)
digital
int digital(int port)