ed785b7c85
ld: correct timer and dac reset in pwr_up seq
2024-02-21 11:11:12 +08:00
30ab228b4b
ld: Set default ld_current_limit in setup() fn
2024-02-20 16:22:13 +08:00
88cca12a60
ld: Use Timer IRQ to ramp up/down output current
...
- Fixes possible watchdog timeout
- Improves ethernet response time & thermostat Pid update interval consistency
2024-02-20 16:18:06 +08:00
8139ebdc1b
ld_ctrl: set_dac() fn now returns the volt set
...
- before this fix, set_dac() just returns the inputted voltage
2024-02-20 12:30:00 +08:00
5f83b73011
cmd: Add active report mode cmd
2024-02-19 15:08:00 +08:00
60a79d1780
rename get_term_status -> get_lf_mod_in_impedance
2024-02-15 12:14:14 +08:00
6096711d2c
eth: Poll and Handle Json based Ld ctrl cmd
...
- Upgrade to miniconf 9.0
- Only non report related laser diode ctrl command is implemented
2024-02-02 17:35:58 +08:00
3d3d6f5cb5
ld: cleanup
2024-02-02 17:23:39 +08:00
4e0d14def2
laser: Add driver and fn to get termination status
2024-01-30 13:01:33 +08:00
f6677d874c
LD: Rst LD current at power_up for soft start
2024-01-26 16:56:55 +08:00
d391e3a1fb
LD: Setting LD output current now ramps up slowly
2024-01-26 16:56:55 +08:00
edd30e94a0
laser_diode: Add fn to set pd_dark_i
2024-01-26 16:56:55 +08:00
ad731c2f15
rename pd_mon -> pd_responsitivity
2024-01-26 16:56:55 +08:00
9d8a553669
pd_mon: add fns to convert between pwr and current
2024-01-26 16:56:55 +08:00
6af0f992d5
LdPwrExcProtector: Cleanup
2024-01-26 16:56:55 +08:00
f50505feaf
Rename Analog_Wdg -> LdPwrExcProtector
2024-01-26 16:56:55 +08:00
85b50bf824
Analog_Wdg: Finish Power Excursion Protection fns
...
- Verified to be working
2024-01-26 16:56:39 +08:00
af283b17ac
laser_diode: use analog wdg fns
2024-01-24 12:18:42 +08:00
c02181c80c
laser diode: Add Analog Watchdog initial commit
...
- rm pid_state for laser diode
2024-01-24 12:18:42 +08:00
0d12c902fc
pd_mon: Separate ld_power calculation to a file
2024-01-24 12:18:37 +08:00
3cfdee917a
rename current_source -> ld_ctrl
2024-01-24 12:16:06 +08:00
5f582be143
rename ld_drive to laser_diode
2024-01-24 12:16:06 +08:00
709eae8566
max5719: Slow down SPI clock
...
- setting it to 30MHz hang MCU core
2024-01-11 17:46:35 +08:00
33d9cb45c4
ld_drive: Add soft current limit
2024-01-11 17:17:38 +08:00
e48f1979f0
Clean up warnings
2024-01-10 10:38:05 +08:00
59f2385ecf
ld_drive: make settings private & add set & get fn
2024-01-10 10:38:05 +08:00
d4e074cbd4
ld_drive: rebase to the point that declare set_i
2024-01-10 10:38:05 +08:00
be8bf0a8b6
ld_drive: add setup fn
2024-01-10 10:38:05 +08:00
b1123047c7
ld_drive: Add fns to get pd current & cal ld pwr
2024-01-10 10:38:05 +08:00
707fac0775
ld_drive: add a param for setting to cal pd pwr
...
- Conversion ratio between pd current and ld output power
2024-01-10 10:38:05 +08:00
a99dde8b38
current_source: add driver to read pd voltage
2024-01-10 10:38:05 +08:00
d1f7a20c15
ld_drive: Add fns to set ld output current
2024-01-10 10:38:05 +08:00
58a8b15c40
ld_drive: add unit type and hw related constant
2024-01-10 10:38:05 +08:00
590ba8171c
Add high level ld_drive mod
...
- Use current_source driver to interface with the board
2024-01-10 10:38:05 +08:00
0807f66b3c
Add digital gpio related fns to Current source
...
- power_up
- power_down
- ld_short_enable
- ld_short_disable
- Rev0_2 has hardware connection bug for LD_EN net.
- laser driver power will always be enabled
2024-01-10 10:38:05 +08:00
2953d4edde
Rewrite current_source obj and add gpio init
2024-01-10 10:38:05 +08:00
f2c026ffdd
Rewrite MAX5719 Driver into a separated file
2024-01-10 10:38:05 +08:00
c7d36bc8d5
Reorganize variables and fns structure
2024-01-10 10:38:00 +08:00
topquark12
1b3b121a2d
cleanup
2022-10-23 16:59:15 +08:00
topquark12
6867a293e5
squash (most) warnings, cleanup
2022-10-22 15:49:01 +08:00
topquark12
dbb1b03638
current source working
2022-10-22 01:58:18 +08:00
topquark12
361c2ff316
add gpio setup
2022-10-21 12:05:55 +08:00