New
This commit is contained in:
45
User/bsp/inc/bsp_drv8880.h
Normal file
45
User/bsp/inc/bsp_drv8880.h
Normal file
@@ -0,0 +1,45 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// 模块名称:步进电机芯片DRV8880驱动模块
|
||||
// 文件名称:bsp_drv8880
|
||||
// 版本名称:V1.0
|
||||
// 文件说明:头文件
|
||||
// 日期时间:2018年8月17日16点23分
|
||||
// 文件作者:Jackie Chan
|
||||
// 修改记录:
|
||||
// 版本号 日期 作者 说明
|
||||
// V1.0 2018.08.17 J.C 正式发布
|
||||
//
|
||||
// 公司名称:多场低温科技有限公司
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#ifndef __BSP_DRV8880_H__
|
||||
#define __BSP_DRV8880_H__
|
||||
|
||||
#include "bsp.h"
|
||||
|
||||
// typedef enum
|
||||
// {
|
||||
// DISABLE = 0,
|
||||
// ENABLE = !DISABLE
|
||||
// }BoolState;
|
||||
|
||||
// 细分入口参数
|
||||
typedef enum
|
||||
{
|
||||
STEP_FULL = 0, // Full step with 71% current
|
||||
STEP_1_2_NC, // Non-circular 1/2 step
|
||||
STEP_1_2, // 1/2 step
|
||||
STEP_1_4, // 1/4 step
|
||||
STEP_1_8, // 1/8 step
|
||||
STEP_1_16 // 1/16 step
|
||||
}MICRO_STEPPING_E;
|
||||
|
||||
void bsp_Init_Drv8880_Hard(void);
|
||||
void bsp_drv8880_enable_config(FunctionalState en);
|
||||
void bsp_drv8880_microstep_config(MICRO_STEPPING_E step);
|
||||
void bsp_drv8880_config_dir(DIR_E dir);
|
||||
|
||||
#endif
|
||||
|
||||
//-------------------------------- End of file ---------------------------------
|
||||
Reference in New Issue
Block a user