 |
C2000Ware Digital Power SDK
5.03.00.00
|
|
Go to the documentation of this file.
20 #include "driverlib.h"
116 uint16_t scirx_gpio_pin,
117 uint32_t scirx_gpio_pin_config,
118 uint16_t scitx_gpio_pin,
119 uint32_t scitx_gpio_pin_config,
120 uint16_t led_indicator_flag,
121 uint16_t led_gpio_pin,
122 uint32_t led_gpio_pin_config,
124 uint16_t plot_option)
132 GPIO_setPinConfig(scirx_gpio_pin_config);
133 GPIO_setPinConfig(scitx_gpio_pin_config);
134 GPIO_setQualificationMode(scirx_gpio_pin, GPIO_QUAL_ASYNC);
135 GPIO_setQualificationMode(scitx_gpio_pin, GPIO_QUAL_ASYNC);
145 SCI_setConfig(sci_base,
148 SCI_CONFIG_STOP_ONE |
149 SCI_CONFIG_PAR_NONE));
153 SCI_disableLoopback(sci_base);
155 SCI_enableInterrupt(sci_base, SCI_INT_RXRDY_BRKDT | SCI_INT_TXRDY);
160 SCI_enableModule(sci_base);
161 SCI_performSoftwareReset(sci_base);
163 HWREGH(sci_base + SCI_O_FFTX) = 0x8040;
164 HWREGH(sci_base + SCI_O_FFRX) = 0x204f;
165 HWREGH(sci_base + SCI_O_FFCT) = 0x0;
170 SCI_clearInterruptStatus(sci_base,
171 SCI_INT_TXRDY | SCI_INT_RXRDY_BRKDT );
285 if(led_indicator_flag == 1)
287 GPIO_setDirectionMode(led_gpio_pin, GPIO_DIR_MODE_OUT);
288 GPIO_setQualificationMode(led_gpio_pin, GPIO_QUAL_SYNC);
289 GPIO_setPinConfig(led_gpio_pin_config);
317 (*SFRA_GUI_rcvTaskPointer)();
362 SCI_INT_TXRDY | SCI_INT_RXRDY_BRKDT);
364 asm(
" RPT#8 || NOP");
void(* SFRA_GUI_rcvTaskPointer)(void)
void SFRA_GUI_config(volatile uint32_t sci_base, uint32_t vbus_clk, uint32_t baudrate, uint16_t scirx_gpio_pin, uint32_t scirx_gpio_pin_config, uint16_t scitx_gpio_pin, uint32_t scitx_gpio_pin_config, uint16_t led_indicator_flag, uint16_t led_gpio_pin, uint32_t led_gpio_pin_config, SFRA_F32 *sfra, uint16_t plot_option)
Configures the SFRA_GUI module.
void SFRA_GUI_setButton(void)
volatile uint32_t SFRA_GUI_sci_base_addr
int16_t SFRA_GUI_memGetAmount
void SFRA_GUI_getData(void)
Defines the SFRA_F32 structure.
#define SFRA_GUI_PLOT_GH_CL
float32_t * freqVect
Frequency Vector.
volatile int16_t SFRA_GUI_commsOKflg
int16_t SFRA_GUI_memGetPtr
void SFRA_GUI_lifePulseTsk(void)
volatile int16_t * SFRA_GUI_varGetList[16]
void SFRA_GUI_setSlider(void)
int32_t SFRA_GUI_dataOut32
volatile int32_t * SFRA_GUI_arrayGetList[16]
uint16_t SFRA_GUI_led_gpio
#define SFRA_GUI_CMD_NUMBER
void SFRA_GUI_getArray(void)
float32_t * h_phaseVect
Plant Phase SFRA Vector.
uint16_t SFRA_GUI_taskDoneFlag
void SFRA_GUI_sendData(void)
float32_t * cl_phaseVect
Closed Loop Phase SFRA Vector.
int16_t freqIndex
Index of the frequency vector.
volatile int16_t * SFRA_GUI_dataGetList[16]
int16_t SFRA_GUI_memSetPtr
float32_t amplitude
Injection Amplitude.
float32_t freqStart
Start frequency of SFRA sweep.
uint16_t SFRA_GUI_numWords
#define SFRA_GUI_PKT_SIZE
uint32_t SFRA_GUI_memGetAddress
uint16_t SFRA_GUI_wordsLeftToGet
float32_t * cl_magVect
Closed Loop Mag SFRA Vector.
void SFRA_GUI_cmdInterpreter(void)
int16_t status
Status of SFRA.
int32_t * SFRA_GUI_memDataPtr32
float32_t freqStep
Log space between frequency points (optional)
void SFRA_GUI_echoSizeByte(void)
volatile int16_t * SFRA_GUI_varSetTxtList[16]
float32_t * h_magVect
Plant Mag SFRA Vector.
void SFRA_GUI_spareTsk08(void)
uint16_t SFRA_GUI_lowByteFlag
void SFRA_GUI_runSerialHostComms(SFRA_F32 *sfra)
Runs the serial host comms GUI , needs to be called at ~100ms for proper function.
volatile uint32_t * SFRA_GUI_dataSetList[16]
void SFRA_GUI_getSizeByte(void)
void(* SFRA_GUI_cmdDispatcher[SFRA_GUI_CMD_NUMBER])(void)
int16_t * SFRA_GUI_memDataPtr16
void SFRA_GUI_packWord(void)
void SFRA_GUI_setText(void)
int16_t vecLength
No. of Points in the SFRA.
int16_t SFRA_GUI_rcvTskPtrShdw
uint16_t SFRA_GUI_sweep_start
volatile int16_t * SFRA_GUI_varSetSldrList[16]
void SFRA_GUI_getDataByte(void)
void SFRA_GUI_packArray(void)
float32_t * gh_phaseVect
Open Loop Phase SFRA Vector.
volatile int16_t SFRA_GUI_serialCommsTimer
void SFRA_GUI_setData32(void)
void SFRA_GUI_echoCmdByte(void)
uint16_t SFRA_GUI_dataOut16
uint32_t SFRA_GUI_memSetValue
uint16_t SFRA_GUI_sendTaskPtr
uint16_t SFRA_GUI_cmdPacket[SFRA_GUI_PKT_SIZE]
float32_t * gh_magVect
Open Loop Mag SFRA Vector.
void SFRA_GUI_getVariable(void)
void SFRA_GUI_getCmdByte(void)
volatile int16_t * SFRA_GUI_varSetBtnList[16]
int16_t start
Command to start SFRA.
void SFRA_GUI_echoDataByte(void)
uint16_t SFRA_GUI_led_flag