Northeastern-Electric-Racing / ProteusMC

Our fully custom, in-house dual HV motor controller
2 stars 0 forks source link

#3 Initial Skeleton Interface for Gate Driver #27

Closed nwdepatie closed 8 months ago

nwdepatie commented 9 months ago

Changes

Here is an initial skeleton for what I'm envisioning the interface for interacting with the gate driver to look like. A lot of this stuff is STM internal (i.e. the current ADCs) so we prob don't need "drivers" for that, but for the actual isolated ADC we probably do.

Notes

Moving forward, we are gonna have to be super anal about signal synchronization. Especially for PWM, we want to calculate all the PWM values to write and then write them all at once in an ideal world. I can take more of a look at how STM does this in our example code that was generated.

Test Cases

To Do

Lot of stuff outside of this PR to address in future tickets

Checklist

It can be helpful to check the Checks and Files changed tabs. Please reach out to your Project Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.

Closes #3