ME305Lab
|
A motor driver class for the DRV8847 from TI. More...
Public Member Functions | |
def | __init__ (self) |
Initializes and returns a DRV8847 object. | |
def | enable (self) |
Brings the DRV8847 out of sleep mode. | |
def | disable (self) |
Puts the DRV8847 in sleep mode. | |
def | fault_cb (self, IRQ_src) |
Callback function to run on fault condition. More... | |
def | Motorf (self, PWM_tim, timch1, timch2, IN1_pin, IN2_pin) |
Creates a DC motor object connected to the DRV8847. More... | |
Public Attributes | |
nSLEEP | |
nFAULT | |
FaultInt | |
Motor | |
A motor driver class for the DRV8847 from TI.
Objects of this class can be used to configure the DRV8847 motor driver and to create one or moreobjects of the Motor class which can be used to perform motor control. Refer to the DRV8847 datasheet here: https://www.ti.com/lit/ds/symlink/drv8847.pdf
def DRV8847.DRV8847.fault_cb | ( | self, | |
IRQ_src | |||
) |
Callback function to run on fault condition.
IRQ_src | The source of the interrupt request. |
def DRV8847.DRV8847.Motorf | ( | self, | |
PWM_tim, | |||
timch1, | |||
timch2, | |||
IN1_pin, | |||
IN2_pin | |||
) |
Creates a DC motor object connected to the DRV8847.