![]() |
![]() |
|
MSPM0C1106HallSensoredTrapMotorControlLibrary
1.0
|
#include "hal.h"
Go to the source code of this file.
Data Structures | |
| struct | DRV8300_Instance |
| Defines DRV8300 instance. More... | |
Macros | |
| #define | DRV8300_VOLTAGE_CONV_CONST _IQ20(33.425) |
| Defines voltage conversion constant. | |
| #define | DRV8300_CSA_REF_VOLTAGE (3300) |
| Defines CSA reference voltage. | |
Functions | |
| void | DRV8300_init (DRV8300_Instance *drvHandle) |
| initialize the drv8300 module More... | |
| void | DRV8300_enable (DRV8300_Instance *drvHandle) |
| Enable DRV. More... | |
| void | DRV8300_updateCSAScaleFactor (DRV8300_Instance *drvHandle, uint16_t csa) |
| updates the current gain scale factor More... | |
| _iq20 | DRV8300_getVoltage (HAL_ADC_CHAN chan) |
| Get voltage from adc channel. More... | |
| _iq20 | DRV8300_getCurrent (HAL_ADC_CHAN chan, DRV8300_Instance *drvHandle, _iq20 vRef) |
| Get current from adc channel. More... | |
| void | DRV8300_ADCVRefSel (HAL_ADC_VREF adcRef, HAL_ADC_CHAN chan, HAL_ADC_INT_VREF internalVRef, uint16_t externalVRef) |
| updates the adc voltage reference More... | |
| __STATIC_INLINE _iq20 | DRV8300_getcsaVref (uint16_t vRef) |
| get Current reference in IQ20 More... | |