ME 305 Group 6 Documentation
Public Member Functions | Public Attributes | List of all members
DRV8847_03.DRV8847_03 Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.


The documentation for this class was generated from the following file: