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