Expansion SW library to control a bipolar stepper motor using X-NUCLEO-IHM05A1 expansion board based on L6208.
Dependencies: ST_INTERFACES
Dependents: HelloWorld_IHM05A1 TAU_ROTATING_PLATFORM_IHM05A1 Amaldi_13_Exercise_IHM05A1 Amaldi_13_Exercise_IHM05A1motore ... more
Fork of X-NUCLEO-IHM05A1 by
L6208_config.h
00001 /******************************************************//** 00002 * @file L6208_config.h 00003 * @author IPC Rennes 00004 * @version V1.1.0 00005 * @date February 11th, 2016 00006 * @brief Predefines values for the L6208 parameters 00007 * @note (C) COPYRIGHT 2016 STMicroelectronics 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> 00012 * 00013 * Redistribution and use in source and binary forms, with or without modification, 00014 * are permitted provided that the following conditions are met: 00015 * 1. Redistributions of source code must retain the above copyright notice, 00016 * this list of conditions and the following disclaimer. 00017 * 2. Redistributions in binary form must reproduce the above copyright notice, 00018 * this list of conditions and the following disclaimer in the documentation 00019 * and/or other materials provided with the distribution. 00020 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00021 * may be used to endorse or promote products derived from this software 00022 * without specific prior written permission. 00023 * 00024 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00025 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00026 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00027 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00028 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00029 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00030 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00031 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00032 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00033 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00034 * 00035 ****************************************************************************** 00036 */ 00037 00038 /* Define to prevent recursive inclusion -------------------------------------*/ 00039 #ifndef __L6208_CONFIG_H 00040 #define __L6208_CONFIG_H 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif 00045 00046 /** @addtogroup L6208 00047 * @{ 00048 */ 00049 00050 /** @addtogroup L6208_Exported_Constants 00051 * @{ 00052 */ 00053 00054 /** @defgroup Predefined_L6208_Parameters_Values Predefined L6208 Parameters Values 00055 * @{ 00056 */ 00057 00058 /// Acceleration rate in step/s^2 or (1/16)th step/s^2 for microstep modes 00059 #define L6208_CONF_PARAM_ACC_RATE (1000) 00060 00061 /// Acceleration current torque in % (from 0 to 100) 00062 #define L6208_CONF_PARAM_ACC_CURRENT (10) 00063 00064 /// Deceleration rate in step/s^2 or (1/16)th step/s^2 for microstep modes 00065 #define L6208_CONF_PARAM_DEC_RATE (1000) 00066 00067 /// Deceleration current torque in % (from 0 to 100) 00068 #define L6208_CONF_PARAM_DEC_CURRENT (10) 00069 00070 /// Running speed in step/s or (1/16)th step/s for microstep modes 00071 #define L6208_CONF_PARAM_RUNNING_SPEED (1000) 00072 00073 /// Running current torque in % (from 0 to 100) 00074 #define L6208_CONF_PARAM_RUNNING_CURRENT (10) 00075 00076 /// Holding current torque in % (from 0 to 100) 00077 #define L6208_CONF_PARAM_HOLDING_CURRENT (10) 00078 00079 /// Step mode via enum motorStepMode_t 00080 #define L6208_CONF_PARAM_STEP_MODE (STEP_MODE_1_16) 00081 00082 /// Decay mode via enum motorDecayMode_t 00083 #define L6208_CONF_PARAM_DECAY_MODE (FAST_DECAY) 00084 00085 /// Dwelling time in ms 00086 #define L6208_CONF_PARAM_DWELL_TIME (0) 00087 00088 /// Automatic HIZ STOP 00089 #define L6208_CONF_PARAM_AUTO_HIZ_STOP (FALSE) 00090 00091 /// VREFA and VREFB PWM frequency (Hz) 00092 #define L6208_CONF_VREF_PWM_FREQUENCY (100000) 00093 00094 /** 00095 * @} 00096 */ 00097 00098 /** 00099 * @} 00100 */ 00101 00102 /** 00103 * @} 00104 */ 00105 00106 #ifdef __cplusplus 00107 } 00108 #endif 00109 00110 #endif /* __L6208_CONFIG_H */ 00111 00112 /******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/
Generated on Thu Jul 14 2022 21:58:52 by 1.7.2