summaryrefslogtreecommitdiffstats
path: root/libk8055/k8055.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-03-01 09:44:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-03-01 09:44:51 +0100
commit1a663cd2b28b8558f92d99078ec0daed288c87be (patch)
tree7bcddf956c7b4cacb1b4199d6e1bdab3595b2dea /libk8055/k8055.h
parenta923ca34734decc31eb38e89c9e7353569a4dc6e (diff)
downloadk8055-1a663cd2b28b8558f92d99078ec0daed288c87be.zip
k8055-1a663cd2b28b8558f92d99078ec0daed288c87be.tar.gz
update C API long => int ...
Diffstat (limited to 'libk8055/k8055.h')
-rw-r--r--libk8055/k8055.h38
1 files changed, 23 insertions, 15 deletions
diff --git a/libk8055/k8055.h b/libk8055/k8055.h
index 9758e37..f180831 100644
--- a/libk8055/k8055.h
+++ b/libk8055/k8055.h
@@ -35,29 +35,37 @@ extern "C" {
char* k8055_version( void );
void k8055_set_debug_on( void );
void k8055_set_debug_off( void );
- long k8055_search_devices( void );
+ int k8055_search_devices( void );
+
int k8055_open_device( struct k8055_dev* dev, int board_address );
int k8055_close_device( struct k8055_dev* dev );
- long k8055_read_analog_channel( struct k8055_dev* dev, int channel );
- int k8055_read_all_analog( struct k8055_dev* dev, long* data1, long* data2 );
- int k8055_output_analog_channel( struct k8055_dev* dev ,int channel, long data );
- int k8055_output_all_analog( struct k8055_dev* dev, long data1, long data2 );
- int k8055_clear_all_analog( struct k8055_dev* dev );
- int k8055_clear_analog_channel( struct k8055_dev* dev, int channel );
+
int k8055_set_analog_channel( struct k8055_dev* dev, int channel );
+ int k8055_clear_analog_channel( struct k8055_dev* dev, int channel );
+ int k8055_read_analog_channel( struct k8055_dev* dev, int channel );
+ int k8055_write_analog_channel( struct k8055_dev* dev ,int channel, int data );
+
int k8055_set_all_analog( struct k8055_dev* dev );
- int k8055_write_all_digital( struct k8055_dev* dev, long data );
- int k8055_clear_digital_channel( struct k8055_dev* dev, int channel );
- int k8055_clear_all_digital( struct k8055_dev* dev );
+ int k8055_clear_all_analog( struct k8055_dev* dev );
+ int k8055_read_all_analog( struct k8055_dev* dev, long* data1, long* data2 );
+ int k8055_write_all_analog( struct k8055_dev* dev, int data1, int data2 );
+
int k8055_set_digital_channel( struct k8055_dev* dev, int channel );
- int k8055_set_all_digital( struct k8055_dev* dev );
+ int k8055_clear_digital_channel( struct k8055_dev* dev, int channel );
int k8055_read_digital_channel( struct k8055_dev* dev, int channel );
- long k8055_read_all_digital( struct k8055_dev* dev );
- int k8055_read_all_values( struct k8055_dev* dev, long int* data1, long int* data2, long int* data3, long int* data4, long int* data5 );
+
+ int k8055_set_all_digital( struct k8055_dev* dev );
+ int k8055_clear_all_digital( struct k8055_dev* dev );
+ int k8055_read_all_digital( struct k8055_dev* dev );
+ int k8055_write_all_digital( struct k8055_dev* dev, int data );
+
int k8055_set_all_values( struct k8055_dev* dev, int digital_data, int ad_data1, int ad_data2 );
+ int k8055_read_all_values( struct k8055_dev* dev, long int* data1, long int* data2, long int* data3, long int* data4, long int* data5 );
+
int k8055_reset_counter( struct k8055_dev* dev, int counter );
- long k8055_read_counter( struct k8055_dev* dev, int counter );
- int k8055_set_counter_debounce_time( struct k8055_dev* dev, int counter, long debounce_time );
+ int k8055_read_counter( struct k8055_dev* dev, int counter );
+
+ int k8055_set_counter_debounce_time( struct k8055_dev* dev, int counter, int debounce_time );
/* Velleman API */
char* Version( void );