diff options
Diffstat (limited to 'Modelica-Arduino-MDD_Arduino_Revised/Resources/Include')
9 files changed, 50 insertions, 0 deletions
diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/analog.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/analog.h new file mode 100755 index 0000000..a761139 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/analog.h @@ -0,0 +1,2 @@ +int cmd_analog_out(int h,int pin_no,double val); +uint16_t cmd_analog_in(int h,int pin_no);
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/analogv.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/analogv.h new file mode 100755 index 0000000..a761139 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/analogv.h @@ -0,0 +1,2 @@ +int cmd_analog_out(int h,int pin_no,double val); +uint16_t cmd_analog_in(int h,int pin_no);
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/dcmotor.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/dcmotor.h new file mode 100755 index 0000000..90314fc --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/dcmotor.h @@ -0,0 +1,3 @@ +void cmd_dcmotor_setup(int h,int driver_type,int motor_no,int pin_no_1,int pin_no_2); +void cmd_dcmotor_run(int h,int motor_no,int u1); +void cmd_dcmotor_release(int h,int motor_no);
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/digital.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/digital.h new file mode 100755 index 0000000..c628bb8 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/digital.h @@ -0,0 +1,2 @@ +int cmd_digital_out(int h,int pin_no,int val); +int cmd_digital_in(int h,int pin_no);
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/encoder.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/encoder.h new file mode 100755 index 0000000..2559766 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/encoder.h @@ -0,0 +1 @@ +void cmd_encoder_init(int h,int enc_mode,int pin_no_1,int pin_no_2);
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/ieeesingle2num.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/ieeesingle2num.h new file mode 100755 index 0000000..27d701a --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/ieeesingle2num.h @@ -0,0 +1,3 @@ +long int hex2dec(char hexadecimal[]); +void dec2hex(long int decimalnum,char hexadecimalnum[]); +double ieeesingle2num(char hexa[]);
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/modbus.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/modbus.h new file mode 100755 index 0000000..7a5c8d1 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/modbus.h @@ -0,0 +1,4 @@ +double read_val(int addr_byte); +void read_voltage(); +void read_current(); +void read_active_power();
\ No newline at end of file diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/serial.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/serial.h new file mode 100755 index 0000000..4588f04 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/serial.h @@ -0,0 +1,30 @@ +#include <errno.h> +#include <termios.h> +#include <unistd.h> +#include <fcntl.h> +#include <string.h> /* memset */ +#include <stdio.h> +#include <signal.h> + +int set_interface_attribs (int fd, int speed, int parity); +void set_blocking (int b, int should_block); +int open_serial(int handle,int port, int baudrate); +int close_serial(int handle); +int write_serial(int handle, char str[],int size); +int status_serial(int handle,int nb[]); +int read_serial(int handle,char* buf,int size); +//int read_serial(int *handle,char buf[],int *size); + +void delay(long int t); +void interrupt(); + + + +/*int set_interface_attribs (int fd, int speed, int parity); +void set_blocking (int b, int should_block); +void open_serial(int *handle,int *port, int *baudrate, int *OK); +void close_serial(int *handle, int *OK); +void write_serial(int *handle, char str[],int *size, int *OK); +void status_serial(int *handle, int *OK,int *nbread, int *nbwrite); +void read_serial(int *handle,char buf[],int *size); +*/ diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/servomotor.h b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/servomotor.h new file mode 100755 index 0000000..53b7457 --- /dev/null +++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/Include/servomotor.h @@ -0,0 +1,3 @@ +void cmd_servo_attach(int h,int servo_no); +void cm_servo_move(int h,int servo_no,int u1); +void cmd_servo_detach(int h,int servo_no);
\ No newline at end of file |