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:
- 16:a0bfe33f8a4a
- Parent:
- 15:83bbc18cccbc
- Child:
- 17:d7207b1132be
--- a/i2c_mbed_fpga.h Wed May 12 10:09:04 2021 +0000 +++ b/i2c_mbed_fpga.h Fri May 21 12:42:56 2021 +0000 @@ -29,7 +29,9 @@ nv_i_zc_th_low_val = NV_I_ZC_TH_LOW_DEFAULT; nv_di_th_1st_val = NV_DI_TH_1ST_DEFAULT; nv_di_th_2nd_val = NV_DI_TH_2ND_DEFAULT; - nv_dig_config_val = NV_DIG_CONFIG_DEFAULT; + nv_dig_config_val = NV_DIG_CONFIG_DEFAULT; + nv_clim_user_0_val = NV_CLIM_USER_0_DEFAULT; + nv_clim_user_1_val = NV_CLIM_USER_1_DEFAULT; }; int i2c_word_read(char *word); @@ -39,9 +41,12 @@ //int i2c_motor_start(); int i2c_config_mode_entry(); + int i2c_mlx_mode_entry(); int i2c_skip_app_copy(); int i2c_soft_reset(); + + int i2c_set_50k_pwm(unsigned int pwm50k); int i2c_set_position_pulse_width(unsigned int manstisa_2b, unsigned int exponenet_3b); @@ -72,6 +77,10 @@ int i2c_set_dc_sr(unsigned int sr); int i2c_set_open_loop_duty(unsigned int duty); + int i2c_set_clim_start_up(unsigned int clim); + int i2c_set_clim_brake(unsigned int clim); + int i2c_set_clim_run_time(unsigned int clim); + private: I2C i2c_master; unsigned int nv_positin_val; @@ -87,7 +96,9 @@ unsigned int nv_i_zc_th_low_val; unsigned int nv_di_th_1st_val; unsigned int nv_di_th_2nd_val; - unsigned int nv_dig_config_val; + unsigned int nv_dig_config_val; + unsigned int nv_clim_user_1_val; + unsigned int nv_clim_user_0_val; //Position Detection Task/Functions };