diff options
Diffstat (limited to 'libk8055')
-rw-r--r-- | libk8055/k8055++.h | 8 | ||||
-rw-r--r-- | libk8055/libk8055.cpp | 16 |
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 ); } |