summaryrefslogtreecommitdiffstats
path: root/libk8055
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-03-01 11:36:25 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-03-01 11:36:25 +0100
commitcd429e12385410bc56b653585702ef8f77aaf5f5 (patch)
treeeac1bb7f8221909b196e4186a80cc3f4c02be3a3 /libk8055
parent5ce542cf07a3db8b28cee5362802188ae9937631 (diff)
downloadk8055-cd429e12385410bc56b653585702ef8f77aaf5f5.zip
k8055-cd429e12385410bc56b653585702ef8f77aaf5f5.tar.gz
small cpp API typo fixes
Diffstat (limited to 'libk8055')
-rw-r--r--libk8055/k8055++.h8
-rw-r--r--libk8055/libk8055.cpp16
2 files changed, 12 insertions, 12 deletions
diff --git a/libk8055/k8055++.h b/libk8055/k8055++.h
index 87c9b9b..b924f65 100644
--- a/libk8055/k8055++.h
+++ b/libk8055/k8055++.h
@@ -53,7 +53,7 @@ class K8055 {
int SetAnalogChannel( int channel );
int ClearAnalogChannel( int channel );
- int ReadAnalogChannel( int channel_no );
+ int ReadAnalogChannel( int channel );
int WriteAnalogChannel( int channel, int data );
int SetAllAnalog();
@@ -73,10 +73,10 @@ class K8055 {
int SetAllValues( int digital_data, int ad_data1, int ad_data2 );
int ReadAllValues ( int* data1, int* data2, int* data3, int* data4, int* data5 );
- int ResetCounter( int counter_n );
- int ReadCounter( int counter_n );
+ int ResetCounter( int counter );
+ int ReadCounter( int counter );
- int SetCounterDebounceTime( int counter_n, int debounce_time );
+ int SetCounterDebounceTime( int counter, int debounce_time );
private:
struct k8055_dev dev;
diff --git a/libk8055/libk8055.cpp b/libk8055/libk8055.cpp
index 2266a41..5c6aa2b 100644
--- a/libk8055/libk8055.cpp
+++ b/libk8055/libk8055.cpp
@@ -99,8 +99,8 @@ int K8055::ClearAnalogChannel( int channel ) {
return k8055_clear_analog_channel( &dev, channel );
}
-int K8055::ReadAnalogChannel( int channel_no ) {
- return k8055_read_analog_channel( &dev, channel_no );
+int K8055::ReadAnalogChannel( int channel ) {
+ return k8055_read_analog_channel( &dev, channel );
}
int K8055::WriteAnalogChannel( int channel, int data ) {
@@ -158,15 +158,15 @@ int K8055::ReadAllValues ( int* data1, int* data2, int* data3, int* data4, int*
return k8055_read_all_values( &dev, data1, data2, data3, data4, data5 );
}
-int K8055::ResetCounter( int counter_n ) {
- return k8055_reset_counter( &dev, counter_n );
+int K8055::ResetCounter( int counter ) {
+ return k8055_reset_counter( &dev, counter );
}
-int K8055::ReadCounter( int counter_n ) {
- return k8055_read_counter( &dev, counter_n );
+int K8055::ReadCounter( int counter ) {
+ return k8055_read_counter( &dev, counter );
}
-int K8055::SetCounterDebounceTime( int counter_n, int debounce_time ) {
- return k8055_set_counter_debounce_time( &dev, counter_n, debounce_time );
+int K8055::SetCounterDebounceTime( int counter, int debounce_time ) {
+ return k8055_set_counter_debounce_time( &dev, counter, debounce_time );
}