X-CUBE-SPN11 for X-NUCLEO-IHM11M1: SIXSTEP_Base_InitTypeDef Struct Reference

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

SIXSTEP_Base_InitTypeDef Struct Reference

Six Step parameters. More...

#include <6Step_Lib.h>

Data Fields

uint32_t LF_TIMx_PSC
 
uint32_t LF_TIMx_ARR
 
uint32_t HF_TIMx_PSC
 
uint32_t HF_TIMx_ARR
 
uint32_t HF_TIMx_CCR
 
uint8_t step_position
 
SIXSTEP_Base_SystStatus_t STATUS
 
uint8_t status_prev
 
uint16_t pulse_value
 
uint16_t ARR_value
 
uint32_t Regular_channel [4]
 
uint32_t CurrentRegular_BEMF_ch
 
uint32_t prescaler_value
 
uint16_t numberofitemArr
 
uint32_t ADC_BUFFER [4]
 
uint32_t ADC_SEQ_CHANNEL [4]
 
uint32_t ADC_Regular_Buffer [5]
 
uint16_t ADC_BEMF_threshold_UP
 
uint16_t ADC_BEMF_threshold_DOWN
 
uint16_t demagn_counter
 
uint16_t demagn_value
 
int16_t speed_fdbk
 
int16_t speed_fdbk_filtered
 
int16_t filter_depth
 
uint16_t Current_Reference
 
uint16_t Ireference
 
int32_t Integral_Term_sum
 
uint8_t CMD
 
uint8_t ALIGN_OK
 
uint8_t ALIGNMENT
 
uint8_t bemf_state_1
 
uint8_t bemf_state_2
 
uint8_t bemf_state_3
 
uint8_t bemf_state_4
 
uint8_t bemf_state_5
 
uint8_t bemf_state_6
 
uint16_t Speed_Loop_Time
 
uint16_t Speed_Ref_filtered
 
uint16_t RUN_Motor
 
uint8_t ARR_OK
 
uint8_t VALIDATION_OK
 
uint8_t SPEED_VALIDATED
 
uint16_t Speed_target_ramp
 
uint16_t Speed_target_time
 
uint16_t Ramp_Start
 
uint16_t Bemf_delay_start
 
uint16_t MediumFrequencyTask_flag
 
uint32_t SYSCLK_frequency
 
uint32_t Uart_cmd_to_set
 
uint32_t Uart_value_to_set
 
uint8_t Button_ready
 
uint8_t BEMF_OK
 
uint8_t CL_READY
 
uint8_t BEMF_Tdown_count
 
uint16_t IREFERENCE
 
uint16_t NUMPOLESPAIRS
 
uint32_t ACCEL
 
uint16_t KP
 
uint16_t KI
 
uint8_t CW_CCW
 
uint8_t Potentiometer
 

Detailed Description

Six Step parameters.

Definition at line 94 of file 6Step_Lib.h.

Field Documentation

uint32_t SIXSTEP_Base_InitTypeDef::ACCEL

Acceleration start-up parameter

Definition at line 152 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_step(), MC_SixStep_Init_main_data(), MC_SixStep_Ramp_Motor_calc(), and MC_SysTick_SixStep_MediumFrequencyTask().

uint16_t SIXSTEP_Base_InitTypeDef::ADC_BEMF_threshold_DOWN

Voltage threshold for BEMF detection in down direction

Definition at line 114 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::ADC_BEMF_threshold_UP

Voltage threshold for BEMF detection in up direction

Definition at line 113 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), and MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::ADC_BUFFER[4]

Buffer for ADC regular channel

Definition at line 110 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf().

uint32_t SIXSTEP_Base_InitTypeDef::ADC_Regular_Buffer[5]

Buffer for ADC regular channel

Definition at line 112 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), and MC_SixStep_Speed_Val_target_potentiometer().

uint32_t SIXSTEP_Base_InitTypeDef::ADC_SEQ_CHANNEL[4]

Buffer for ADC regular channel

Definition at line 111 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), and MC_SixStep_RESET().

uint8_t SIXSTEP_Base_InitTypeDef::ALIGN_OK

Flag control for Motor Alignment

Definition at line 124 of file 6Step_Lib.h.

Referenced by MC_SixStep_Alignment(), MC_SixStep_ARR_step(), MC_SixStep_NEXT_step(), MC_SixStep_RESET(), and MC_SysTick_SixStep_MediumFrequencyTask().

uint8_t SIXSTEP_Base_InitTypeDef::ALIGNMENT

Flag control for Motor Alignment ongoing

Definition at line 125 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_step(), MC_SixStep_RESET(), and MC_SysTick_SixStep_MediumFrequencyTask().

uint8_t SIXSTEP_Base_InitTypeDef::ARR_OK

ARR flag control for Accell status

Definition at line 135 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_step(), MC_SixStep_RESET(), and MC_TIMx_SixStep_timebase().

uint16_t SIXSTEP_Base_InitTypeDef::ARR_value

ARR vector for Accell compute

Definition at line 105 of file 6Step_Lib.h.

Referenced by MC_SixStep_Alignment(), MC_SixStep_ARR_step(), and MC_SixStep_Ramp_Motor_calc().

uint16_t SIXSTEP_Base_InitTypeDef::Bemf_delay_start

Bemf variable

Definition at line 141 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::BEMF_OK

Definition at line 147 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_Bemf(), MC_SixStep_RESET(), and MC_Task_Speed().

uint8_t SIXSTEP_Base_InitTypeDef::bemf_state_1

Bemf variable

Definition at line 126 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::bemf_state_2

Bemf variable

Definition at line 127 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::bemf_state_3

Bemf variable

Definition at line 128 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::bemf_state_4

Bemf variable

Definition at line 129 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::bemf_state_5

Bemf variable

Definition at line 130 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::bemf_state_6

Bemf variable

Definition at line 131 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::BEMF_Tdown_count

BEMF Consecutive Threshold Falling Crossings Counter

Definition at line 149 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), MC_SixStep_NEXT_step(), and MC_SixStep_RESET().

uint8_t SIXSTEP_Base_InitTypeDef::Button_ready

Definition at line 146 of file 6Step_Lib.h.

Referenced by MC_EXT_button_SixStep(), and MC_SixStep_INIT().

uint8_t SIXSTEP_Base_InitTypeDef::CL_READY

Definition at line 148 of file 6Step_Lib.h.

Referenced by MC_SixStep_NEXT_step(), MC_SixStep_RESET(), and MC_Task_Speed().

uint8_t SIXSTEP_Base_InitTypeDef::CMD

Flag control for Motor Start/Stop

Definition at line 123 of file 6Step_Lib.h.

Referenced by MC_SixStep_NEXT_step(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::Current_Reference

Currrent reference for SixStep algorithm

Definition at line 120 of file 6Step_Lib.h.

Referenced by MC_SixStep_RESET(), and MC_Task_Speed().

uint32_t SIXSTEP_Base_InitTypeDef::CurrentRegular_BEMF_ch

ADC regular channel to select

Definition at line 107 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), MC_SixStep_NEXT_step(), MC_SixStep_RESET(), and MC_SixStep_TABLE().

uint8_t SIXSTEP_Base_InitTypeDef::CW_CCW

Set the motor direction

Definition at line 155 of file 6Step_Lib.h.

Referenced by MC_Set_PI_param(), MC_Set_Speed(), and MC_SixStep_Init_main_data().

uint16_t SIXSTEP_Base_InitTypeDef::demagn_counter

Demagnetization counter

Definition at line 115 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), MC_SixStep_NEXT_step(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::demagn_value

Demagnetization value

Definition at line 116 of file 6Step_Lib.h.

Referenced by Bemf_delay_calc(), MC_ADCx_SixStep_Bemf(), and MC_SixStep_RESET().

int16_t SIXSTEP_Base_InitTypeDef::filter_depth

Filter depth for speed measuring

Definition at line 119 of file 6Step_Lib.h.

uint32_t SIXSTEP_Base_InitTypeDef::HF_TIMx_ARR

ARR variable for high frequency timer

Definition at line 99 of file 6Step_Lib.h.

Referenced by MC_SixStep_INIT(), and MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::HF_TIMx_CCR

CCR variable for high frequency timer

Definition at line 100 of file 6Step_Lib.h.

Referenced by MC_SixStep_INIT(), and MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::HF_TIMx_PSC

Prescaler variable for high frequency timer

Definition at line 98 of file 6Step_Lib.h.

Referenced by MC_SixStep_INIT(), and MC_SixStep_RESET().

int32_t SIXSTEP_Base_InitTypeDef::Integral_Term_sum

Global Integral part for PI

Definition at line 122 of file 6Step_Lib.h.

Referenced by MC_PI_Controller(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::Ireference

Currrent reference for SixStep algorithm

Definition at line 121 of file 6Step_Lib.h.

Referenced by MC_SixStep_INIT(), MC_SixStep_Init_main_data(), MC_SixStep_Ramp_Motor_calc(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::IREFERENCE

Currrent reference

Definition at line 150 of file 6Step_Lib.h.

uint16_t SIXSTEP_Base_InitTypeDef::KI

KI parameter for PI regulator

Definition at line 154 of file 6Step_Lib.h.

Referenced by MC_Set_PI_param(), and MC_SixStep_Init_main_data().

uint16_t SIXSTEP_Base_InitTypeDef::KP

KP parameter for PI regulator

Definition at line 153 of file 6Step_Lib.h.

Referenced by MC_Set_PI_param(), and MC_SixStep_Init_main_data().

uint32_t SIXSTEP_Base_InitTypeDef::LF_TIMx_ARR

ARR variable for low frequency timer

Definition at line 97 of file 6Step_Lib.h.

Referenced by MC_SixStep_INIT(), and MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::LF_TIMx_PSC

Prescaler variable for low frequency timer

Definition at line 96 of file 6Step_Lib.h.

Referenced by MC_SixStep_INIT(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::MediumFrequencyTask_flag

Flag for Medium Task Frequency

Definition at line 142 of file 6Step_Lib.h.

Referenced by MC_SysTick_SixStep_MediumFrequencyTask().

uint16_t SIXSTEP_Base_InitTypeDef::numberofitemArr

Number of elements

Definition at line 109 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_step(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::NUMPOLESPAIRS

Number of motor pole pairs

Definition at line 151 of file 6Step_Lib.h.

Referenced by MC_SixStep_Init_main_data(), and MC_SixStep_RESET().

uint8_t SIXSTEP_Base_InitTypeDef::Potentiometer

Enable/Disable potentiometer for speed control

Definition at line 156 of file 6Step_Lib.h.

Referenced by MC_SixStep_Init_main_data(), and MC_SysTick_SixStep_MediumFrequencyTask().

uint32_t SIXSTEP_Base_InitTypeDef::prescaler_value

Prescaler value for low freq timer

Definition at line 108 of file 6Step_Lib.h.

Referenced by MC_SixStep_Alignment(), and MC_SixStep_Ramp_Motor_calc().

uint16_t SIXSTEP_Base_InitTypeDef::pulse_value
uint16_t SIXSTEP_Base_InitTypeDef::Ramp_Start

Ramp time start

Definition at line 140 of file 6Step_Lib.h.

Referenced by MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::Regular_channel[4]

Buffer for ADC regular channel

Definition at line 106 of file 6Step_Lib.h.

Referenced by MC_SixStep_NEXT_step(), MC_SixStep_RESET(), and MC_SixStep_TABLE().

uint16_t SIXSTEP_Base_InitTypeDef::RUN_Motor

Flag for Motor status

Definition at line 134 of file 6Step_Lib.h.

Referenced by MC_EXT_button_SixStep(), MC_SixStep_RESET(), MC_StartMotor(), and MC_StopMotor().

int16_t SIXSTEP_Base_InitTypeDef::speed_fdbk

Motor speed variable

Definition at line 117 of file 6Step_Lib.h.

Referenced by MC_SixStep_NEXT_step(), MC_SixStep_RESET(), and MC_Speed_Filter().

int16_t SIXSTEP_Base_InitTypeDef::speed_fdbk_filtered

Filtered Motor speed variable

Definition at line 118 of file 6Step_Lib.h.

Referenced by Bemf_delay_calc(), MC_SixStep_RESET(), MC_Speed_Filter(), and MC_Task_Speed().

uint16_t SIXSTEP_Base_InitTypeDef::Speed_Loop_Time

Speed loop variable for timing

Definition at line 132 of file 6Step_Lib.h.

Referenced by MC_SixStep_RESET(), and MC_SysTick_SixStep_MediumFrequencyTask().

uint16_t SIXSTEP_Base_InitTypeDef::Speed_Ref_filtered

Filtered Reference Motor Speed variable

Definition at line 133 of file 6Step_Lib.h.

Referenced by MC_Set_Speed(), MC_SixStep_RESET(), and MC_SixStep_Speed_Potentiometer().

uint16_t SIXSTEP_Base_InitTypeDef::Speed_target_ramp

Target Motor Speed

Definition at line 138 of file 6Step_Lib.h.

Referenced by MC_Set_Speed(), and MC_SixStep_RESET().

uint16_t SIXSTEP_Base_InitTypeDef::Speed_target_time

Target Motor Ramp time

Definition at line 139 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::SPEED_VALIDATED

Validation flag for Speed before closed loop control

Definition at line 137 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_Bemf(), MC_SixStep_RESET(), and MC_Task_Speed().

uint8_t SIXSTEP_Base_InitTypeDef::status_prev

Previous status variable for SixStep algorithm

Definition at line 103 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_Bemf(), MC_SixStep_NEXT_step(), and MC_SixStep_RESET().

uint8_t SIXSTEP_Base_InitTypeDef::step_position

Step number variable for SixStep algorithm

Definition at line 101 of file 6Step_Lib.h.

Referenced by MC_ADCx_SixStep_Bemf(), MC_SixStep_Alignment(), MC_SixStep_ARR_Bemf(), MC_SixStep_NEXT_step(), and MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::SYSCLK_frequency

System clock main frequency

Definition at line 143 of file 6Step_Lib.h.

Referenced by MC_GetElSpeedHz(), MC_SixStep_Ramp_Motor_calc(), and MC_SixStep_RESET().

uint32_t SIXSTEP_Base_InitTypeDef::Uart_cmd_to_set

Definition at line 144 of file 6Step_Lib.h.

uint32_t SIXSTEP_Base_InitTypeDef::Uart_value_to_set

Definition at line 145 of file 6Step_Lib.h.

uint8_t SIXSTEP_Base_InitTypeDef::VALIDATION_OK

Validation flag for Closed loop control begin

Definition at line 136 of file 6Step_Lib.h.

Referenced by MC_SixStep_ARR_Bemf(), MC_SixStep_ARR_step(), MC_SixStep_NEXT_step(), MC_SixStep_RESET(), MC_SysTick_SixStep_MediumFrequencyTask(), and MC_Task_Speed().


The documentation for this struct was generated from the following file:
Generated by   doxygen 1.8.11