summaryrefslogtreecommitdiffstats
path: root/libk8055/libk8055.cpp
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-06 07:01:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-06 07:01:09 +0200
commitb019e00751a521524a5a3f8869cbf0f152ded52e (patch)
tree6e3406f6b695ea80ffb1e38edd7b52497c732257 /libk8055/libk8055.cpp
parent1dcf7f69f49dd11108c01c97025bfc1abd3b75d2 (diff)
downloadk8055-b019e00751a521524a5a3f8869cbf0f152ded52e.zip
k8055-b019e00751a521524a5a3f8869cbf0f152ded52e.tar.gz
rename k8055_digital_x to k8055_digital_input_x, add k8055_digital_output_x, same for analog
Diffstat (limited to 'libk8055/libk8055.cpp')
-rw-r--r--libk8055/libk8055.cpp56
1 files changed, 42 insertions, 14 deletions
diff --git a/libk8055/libk8055.cpp b/libk8055/libk8055.cpp
index 5c6aa2b..f537676 100644
--- a/libk8055/libk8055.cpp
+++ b/libk8055/libk8055.cpp
@@ -39,32 +39,60 @@ int K8055::write( void ) {
return k8055_write( &dev );
}
-int K8055::digital_1( void ) {
- return k8055_digital_1( &dev );
+int K8055::digital_output_1( void ) {
+ return k8055_digital_output_1( &dev );
}
-int K8055::digital_2( void ) {
- return k8055_digital_2( &dev );
+int K8055::digital_output_2( void ) {
+ return k8055_digital_output_2( &dev );
}
-int K8055::digital_3( void ) {
- return k8055_digital_3( &dev );
+int K8055::digital_output_3( void ) {
+ return k8055_digital_output_3( &dev );
}
-int K8055::digital_4( void ) {
- return k8055_digital_4( &dev );
+int K8055::digital_output_4( void ) {
+ return k8055_digital_output_4( &dev );
}
-int K8055::digital_5( void ) {
- return k8055_digital_5( &dev );
+int K8055::digital_output_5( void ) {
+ return k8055_digital_output_5( &dev );
}
-int K8055::analog_1( void ) {
- return k8055_analog_1( &dev );
+int K8055::analog_output_1( void ) {
+ return k8055_analog_output_1( &dev );
}
-int K8055::analog_2( void ) {
- return k8055_analog_2( &dev );
+int K8055::analog_output_2( void ) {
+ return k8055_analog_input_2( &dev );
+}
+
+int K8055::digital_input_1( void ) {
+ return k8055_digital_input_1( &dev );
+}
+
+int K8055::digital_input_2( void ) {
+ return k8055_digital_input_2( &dev );
+}
+
+int K8055::digital_input_3( void ) {
+ return k8055_digital_input_3( &dev );
+}
+
+int K8055::digital_input_4( void ) {
+ return k8055_digital_input_4( &dev );
+}
+
+int K8055::digital_input_5( void ) {
+ return k8055_digital_input_5( &dev );
+}
+
+int K8055::analog_input_1( void ) {
+ return k8055_analog_input_1( &dev );
+}
+
+int K8055::analog_input_2( void ) {
+ return k8055_analog_input_2( &dev );
}
int K8055::counter_1( void ) {