Files
new_f_3/User/bsp/inc/bsp_drv8880.h
刘正航 609eb878d1 New
2026-04-16 16:55:01 +08:00

46 lines
1.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// 模块名称步进电机芯片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 ---------------------------------