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.
Diff: i2c_mbed_fpga.h
- Revision:
- 9:76a0b9f29a2d
- Parent:
- 6:019ab407ac3c
- Child:
- 10:a8390614edcc
diff -r 2554218db1e6 -r 76a0b9f29a2d i2c_mbed_fpga.h
--- a/i2c_mbed_fpga.h Tue Jan 26 11:13:25 2021 +0000
+++ b/i2c_mbed_fpga.h Fri Feb 26 08:45:13 2021 +0000
@@ -17,7 +17,9 @@
i2c_master.frequency(35000);
nv_positin_val = NV_POSITION_DEFUALT;
nv_start_up_val = NV_START_UP_DEFAULT;
- nv_wind_brake_val = NV_WIND_BRAKE_DEFAULT;
+ nv_wind_brake_val = NV_WIND_BRAKE_DEFAULT;
+ ram_open_duty_val = RAM_OPEN_DUTY_VAL;
+ nv_spd_control_1_val = NV_SPD_CONTROL_1_VAL;
};
int i2c_word_read(char *word);
@@ -38,13 +40,17 @@
int i2c_set_soft_start_up(unsigned int enbale, unsigned int mantisaa_3b, unsigned int exponent_3b, unsigned int step_size, unsigned int num_steps);
int i2c_set_high_torque_start_up(unsigned int enbale, unsigned int mantisaa_3b, unsigned int exponent_3b);
int i2c_set_single_pulse_start_up(unsigned int enbale, unsigned int mantisaa_3b, unsigned int exponent_3b);
-
+ int i2c_set_loop_mode(unsigned int openloop);
+ int i2c_set_open_loop_duty(unsigned int duty);
private:
I2C i2c_master;
unsigned int nv_positin_val;
unsigned int nv_start_up_val;
unsigned int nv_wind_brake_val;
+ unsigned int nv_spd_control_1_val;
+ unsigned int ram_open_duty_val;
+
//Position Detection Task/Functions
};
