EsmacatShield - Library for EtherCAT Arduino Shield by Esmacat (EASE)
Dependents: EASE_Example HelloWorld_EASE_Proximity_Sensor HelloWorld_EASE_Motor_Example Example_EtherCAT_System_Using_EASE ... more
Information about Esmacat and EASE is provided in the link below. https://os.mbed.com/users/pratima_hb/code/EASE_Example/wiki/Homepage
Diff: EsmacatShield.h
- Revision:
- 2:77c2a6061e77
- Parent:
- 1:b66c3e4ce9f5
--- a/EsmacatShield.h Wed Jan 29 20:11:47 2020 +0000 +++ b/EsmacatShield.h Thu Feb 06 17:35:14 2020 +0000 @@ -138,7 +138,7 @@ * * @return None **************************************************************/ - void write_reg_value(int write_addr,int value, bool led_on=1); + void write_reg_value(int write_addr,int16_t value, bool led_on=1); /**********************************************************//** * @brief Read EASE Register. @@ -157,7 +157,7 @@ * * @return None **************************************************************/ - int* get_ecat_registers(int regs[8]); + int16_t* get_ecat_registers(int16_t regs[8]); /************************************************************ * @brief Default destructor for EsmacatShield Class. @@ -176,7 +176,7 @@ SPI &ecat_spi; DigitalOut &ecat_cs; - int read_reg_value(int read_addr); + int16_t read_reg_value(int16_t read_addr); };