仓库提交练习
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
545 B

/*
* motor.h
*
* Created on: 2026420
* Author: Lizongdi
*/
#ifdef BUILD_MOTOR
#ifndef FSM_INC_MOTOR_H_
#define FSM_INC_MOTOR_H_
#include "bsp_FDCAN.h"
typedef enum
{
M_TYPE_MOVELEFT,
M_TYPE_MOVERIGHT,
M_TYPE_SWING
}EMotorType;
typedef struct
{
int32_t MotorID;
EMotorType MotorType;
int32_t HeartbeatID;
FDCANHandler *fHandler;
}TMotorCtrl;
typedef struct
{
void (*MotorFuncInit)(TMotorCtrl *ptMotorCtrl);
}TMotorInterface;
void MotorInit(void);
#endif
#endif /* FSM_INC_MOTOR_H_ */