![]() |
ME 305 Group 6 Documentation
|
Driver class for the DRV8847 motor driver form Texas Instruments. More...
Public Member Functions | |
| def | __init__ (self, pyb.Pin sleep_pin, pyb.Pin fault_pin, int timer) |
More... | |
| def | enable (self) |
| def | disable (self) |
| def | fault_cb (self, IRQ_src) |
| def | motor (self, pin1, pin2, chan1, chan2) |
Public Attributes | |
| timer | |
| nSLEEP | |
| nFAULT | |
| faultInt | |
Driver class for the DRV8847 motor driver form Texas Instruments.
Used to initialize the driver, set up sleep and fault pins, but not timer channels.
| def DRV8847_03.DRV8847_03.__init__ | ( | self, | |
| pyb.Pin | sleep_pin, | ||
| pyb.Pin | fault_pin, | ||
| int | timer | ||
| ) |
Sets up sleep pin and fault pin, but not input pins (those get defined in the motor class). Also creates timer object (at 20kHz) for use later.