MSPM0C1106HallSensoredTrapMotorControlLibrary  1.0
Data Fields
drv8311_Instance Struct Reference

Defines drv8311 instance. More...

#include <drv8311.h>

Data Fields

HAL_GPIO_OUT nsleep
 
HAL_GPIO_OUT drvoff
 
HAL_GPIO_IN nfault
 
HAL_SPI_CHAN spiChan
 
HAL_SPI_CS spiCs
 
_iq20 csa_sf
 
_iq20 csaVRef
 
HAL_ADC_CHAN Vsen
 
HAL_ADC_CHAN VsenA
 
HAL_ADC_CHAN VsenB
 
HAL_ADC_CHAN VsenC
 
HAL_ADC_CHAN IsenA
 
HAL_ADC_CHAN IsenB
 
HAL_ADC_CHAN IsenC
 
HAL_FAULT_INPUT faultIn
 

Detailed Description

Defines drv8311 instance.

Field Documentation

§ nsleep

HAL_GPIO_OUT drv8311_Instance::nsleep

HAL output pin connected to the motor driver's nsleep pin.

Referenced by drv8311_setnSleep().

§ drvoff

HAL_GPIO_OUT drv8311_Instance::drvoff

HAL output pin connected to the motor driver's drvoff pin.

Referenced by drv8311_setDrvoff().

§ nfault

HAL_GPIO_IN drv8311_Instance::nfault

HAL input pin connected to the motor driver's nfault pin.

§ spiChan

HAL_SPI_CHAN drv8311_Instance::spiChan

HAL SPI channel connected to the motor driver's spi pins

§ spiCs

HAL_SPI_CS drv8311_Instance::spiCs

HAL SPI CS connected to the motor driver's spi cs pin

§ csa_sf

_iq20 drv8311_Instance::csa_sf

Scale factor used to cache values needed to calculate current

Referenced by drv8311_getCurrent(), and drv8311_updateCSAScaleFactor().

§ csaVRef

_iq20 drv8311_Instance::csaVRef

Scale factor used to cache values needed to calculate current

§ Vsen

HAL_ADC_CHAN drv8311_Instance::Vsen

ADc channels used to measure bus voltage

Referenced by drv8311_init().

§ VsenA

HAL_ADC_CHAN drv8311_Instance::VsenA

ADc channels used to measure phase A voltage

Referenced by drv8311_init().

§ VsenB

HAL_ADC_CHAN drv8311_Instance::VsenB

ADc channels used to measure phase B voltage

Referenced by drv8311_init().

§ VsenC

HAL_ADC_CHAN drv8311_Instance::VsenC

ADc channels used to measure phase C voltage

Referenced by drv8311_init().

§ IsenA

HAL_ADC_CHAN drv8311_Instance::IsenA

ADc channels used to measure phase A current

Referenced by drv8311_init().

§ IsenB

HAL_ADC_CHAN drv8311_Instance::IsenB

ADc channels used to measure phase B current

Referenced by drv8311_init().

§ IsenC

HAL_ADC_CHAN drv8311_Instance::IsenC

ADc channels used to measure phase C current

Referenced by drv8311_init().

§ faultIn

HAL_FAULT_INPUT drv8311_Instance::faultIn

pwm timer to which fault pin is connected


The documentation for this struct was generated from the following file:
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale