Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: EASE_Example HelloWorld_EASE_Proximity_Sensor HelloWorld_EASE_Motor_Example Example_EtherCAT_System_Using_EASE ... more
Diff: EsmacatShield.cpp
- Revision:
- 2:77c2a6061e77
- Parent:
- 1:b66c3e4ce9f5
diff -r b66c3e4ce9f5 -r 77c2a6061e77 EsmacatShield.cpp
--- a/EsmacatShield.cpp Wed Jan 29 20:11:47 2020 +0000
+++ b/EsmacatShield.cpp Thu Feb 06 17:35:14 2020 +0000
@@ -44,7 +44,7 @@
}
-void EsmacatShield::write_reg_value(int write_addr,int value, bool led_on)
+void EsmacatShield::write_reg_value(int write_addr, int16_t value, bool led_on)
{
uint8_t v1,v2;
// Chip must be selected
@@ -68,7 +68,7 @@
wait_us(2000); //sleep for 2 ms;
}
-int* EsmacatShield::get_ecat_registers(int regs[8]) {
+int16_t* EsmacatShield::get_ecat_registers(int16_t regs[8]) {
regs[0] = read_reg_value(1);
regs[1] = read_reg_value(2);
regs[2] = read_reg_value(3);
@@ -80,7 +80,7 @@
return(regs);
}
-int EsmacatShield::read_reg_value(int read_addr)
+int16_t EsmacatShield::read_reg_value(int16_t read_addr)
{
uint16_t v2,v3;
// Chip must be selected