MSPM0C1106HallSensoredTrapMotorControlLibrary  1.0
Data Structures | Macros | Enumerations | Functions
drv8323.h File Reference

Detailed Description

DRV8323_MODULE Module.


Overview

API's releated to DRV8323


#include "hal.h"
Include dependency graph for drv8323.h:

Go to the source code of this file.

Data Structures

struct  DRV8323_Instance
 Defines drv8323 instance. More...
 

Macros

#define DRV8323_MAXIMUM_WAKEUP_TIME   (2000)
 Defines the time to wakeup the drv after reset.
 
#define DRV8323_VOLTAGE_CONV_CONST   _IQ20(17.433)
 Defines voltage conversion constant.
 
#define DRV8323_CSA_REF_VOLTAGE   (3300)
 Defines CSA reference voltage.
 
#define DRV8323_CSAGAIN_5_IQ   _IQ20(5)
 Defines CSA gains 5 in IQ20.
 
#define DRV8323_CSAGAIN_10_IQ   _IQ20(10)
 Defines CSA gains 10 in IQ20.
 
#define DRV8323_CSAGAIN_20_IQ   _IQ20(20)
 Defines CSA gains 20 in IQ20.
 
#define DRV8323_CSAGAIN_40_IQ   _IQ20(40)
 Defines CSA gains 40 in IQ20.
 

Enumerations

enum  DRV8323_CSAGAIN {
  DRV8323_CSAGAIN_5 = 0 << 0,
  DRV8323_CSAGAIN_10 = 1 << 0,
  DRV8323_CSAGAIN_20 = 2 << 0,
  DRV8323_CSAGAIN_40 = 3 << 0
}
 
enum  DRV8323_DRVOFF_PIN_STAT {
  DRV8323_DRVOFF_PIN_LOW = HAL_GPIO_PIN_LOW,
  DRV8323_DRVOFF_PIN_HIGH = HAL_GPIO_PIN_HIGH
}
 
enum  DRV8323_DRV_NSLEEP_STAT {
  DRV8323_DRV_NSLEEP_SLEEP = HAL_GPIO_PIN_LOW,
  DRV8323_DRV_NSLEEP_AWAKE = HAL_GPIO_PIN_HIGH
}
 Represents NSLEEP Pin State. More...
 

Functions

__STATIC_INLINE void DRV8323_setnSleep (DRV8323_Instance *drvHandle, DRV8323_DRV_NSLEEP_STAT value)
 set nSleep More...
 
__STATIC_INLINE _iq20 DRV8323_getcsaVref (uint16_t vRef)
 get Current reference in IQ20 More...
 
void DRV8323_init (DRV8323_Instance *drvHandle)
 initialize the drv8323 module More...
 
void DRV8323_enable (DRV8323_Instance *drvHandle)
 Enable DRV. More...
 
void DRV8323_updateCSAScaleFactor (DRV8323_Instance *drvHandle, DRV8323_CSAGAIN csa, uint16_t rSense)
 updates the current gain scale factor More...
 
_iq20 DRV8323_getVoltage (HAL_ADC_CHAN chan)
 Get voltage from adc channel. More...
 
_iq20 DRV8323_getCurrent (HAL_ADC_CHAN chan, DRV8323_Instance *drvHandle, _iq20 vRef)
 Get current from adc channel. More...
 
void DRV8323_ADCVRefSel (HAL_ADC_VREF adcRef, HAL_ADC_CHAN chan, HAL_ADC_INT_VREF internalVRef, uint16_t externalVRef)
 updates the adc voltage reference More...
 
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale