![]() |
![]() |
|
MSPM0G3507SensorlessFOCMotorControlLibrary
1.0
|
#include "stdint.h"#include "stdbool.h"#include "appDefs.h"#include "ti_msp_dl_config.h"#include <ti/driverlib/driverlib.h>
Go to the source code of this file.
Macros | |
| #define | DRV8323_SPI_INST SPI_0_INST |
| DRV8323 SPI instance. | |
Functions | |
| uint16_t | drv8323SPIRead (volatile uint16_t prevReadVal, volatile int16_t regAddr) |
| DRV8323 register Read. More... | |
| void | drv8323SPIWrite (int16_t regAddr, uint16_t data) |
| DRV8323 Register write. More... | |
| void | HAL_writeSPI16 (uint16_t data) |
| Write data to spi resister. More... | |
| uint16_t | HAL_readSPI16 (void) |
| Read data in spi resister. More... | |
| uint16_t drv8323SPIRead | ( | volatile uint16_t | prevReadVal, |
| volatile int16_t | regAddr | ||
| ) |
DRV8323 register Read.
| [in] | prevReadVal | Previous read value |
| [in] | regAddr | Register address to read |
| void drv8323SPIWrite | ( | int16_t | regAddr, |
| uint16_t | data | ||
| ) |
DRV8323 Register write.
| [in] | regAddr | Register address to write |
| [in] | data | data to be written to the register |
| void HAL_writeSPI16 | ( | uint16_t | data | ) |
Write data to spi resister.
| [in] | data | Data to write |
| uint16_t HAL_readSPI16 | ( | void | ) |
Read data in spi resister.