This commit is contained in:
刘正航
2026-04-16 16:55:01 +08:00
commit 609eb878d1
624 changed files with 214375 additions and 0 deletions

View 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 ---------------------------------