ME305Lab
Public Member Functions | Public Attributes | List of all members
DRV8847.DRV8847 Class Reference

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
 

Detailed Description

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

Member Function Documentation

◆ fault_cb()

def DRV8847.DRV8847.fault_cb (   self,
  IRQ_src 
)

Callback function to run on fault condition.

Parameters
IRQ_srcThe source of the interrupt request.

◆ Motorf()

def DRV8847.DRV8847.Motorf (   self,
  PWM_tim,
  timch1,
  timch2,
  IN1_pin,
  IN2_pin 
)

Creates a DC motor object connected to the DRV8847.

Returns
An object of class Motor

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