![]() |
![]() |
|
MSPM0C1106HallSensoredTrapMotorControlLibrary
1.0
|
#include "hal.h"
Go to the source code of this file.
Data Structures | |
| struct | drv8328_Instance |
| Defines drv8328 instance. More... | |
Macros | |
| #define | drv8328_MAXIMUM_WAKEUP_TIME (2000) |
| Defines the time to wakeup the drv after reset. | |
| #define | drv8328_VOLTAGE_CONV_CONST _IQ20(23.044) |
| Defines voltage conversion constant. | |
| #define | drv8328_CSA_REF_VOLTAGE (3300) |
| Defines CSA reference voltage. | |
Enumerations | |
| enum | drv8328_DRVOFF_PIN_STAT { drv8328_DRVOFF_PIN_LOW = HAL_GPIO_PIN_LOW, drv8328_DRVOFF_PIN_HIGH = HAL_GPIO_PIN_HIGH } |
| enum | drv8328_DRV_NSLEEP_STAT { drv8328_DRV_NSLEEP_SLEEP = HAL_GPIO_PIN_LOW, drv8328_DRV_NSLEEP_AWAKE = HAL_GPIO_PIN_HIGH } |
| Represents NSLEEP Pin State. More... | |
Functions | |
| __STATIC_INLINE void | drv8328_setDrvoff (drv8328_Instance *drvHandle, drv8328_DRVOFF_PIN_STAT value) |
| set drvoff More... | |
| __STATIC_INLINE void | drv8328_setnSleep (drv8328_Instance *drvHandle, drv8328_DRV_NSLEEP_STAT value) |
| set nSleep More... | |
| __STATIC_INLINE _iq20 | drv8328_getcsaVref (uint16_t vRef) |
| get Current reference in IQ20 More... | |
| void | drv8328_init (drv8328_Instance *drvHandle) |
| initialize the drv8328 module More... | |
| void | drv8328_enable (drv8328_Instance *drvHandle) |
| Enable DRV. More... | |
| void | drv8328_updateCSAScaleFactor (drv8328_Instance *drvHandle, uint16_t csa) |
| updates the current gain scale factor More... | |
| _iq20 | drv8328_getVoltage (HAL_ADC_CHAN chan) |
| Get voltage from adc channel. More... | |
| _iq20 | drv8328_getCurrent (HAL_ADC_CHAN chan, drv8328_Instance *drvHandle) |
| Get current from adc channel. More... | |
| void | drv8328_ADCVRefSel (HAL_ADC_VREF adcRef, HAL_ADC_CHAN chan, HAL_ADC_INT_VREF internalVRef, uint16_t externalVRef) |
| updates the adc voltage reference More... | |