HPM APP
HPMicro Application solution
command_process.h File Reference

Go to the source code of this file.

Macros

#define MOTOR_COUNT   4
 number of motors controlled ;控制的电机个数 More...
 
#define OP_MODE_COUNT   2
 types of motor operation modes: speed mode and speed mode ;电机运行模式的种类,速度模式和速度模式两种 More...
 
#define CONTROL_MODE_COUNT   2
 The states of motor control: running and stopping ;电机控制的状态,分为运行和停止两种状态 More...
 

Enumerations

enum  motor_op_mode { MOTOR_DISABLE , MOTOR_ENABLE }
 
enum  motor_control_mode { MOTOR_CONTROL_INDEPEND , MOTOR_CONTROL_ALL }
 

Functions

void enable_all_motor (void)
 Enable all motors ;使能所有电机 More...
 
void disable_all_motor (void)
 Disable all motors ;禁用所有电机 More...
 
void cmd_all (void)
 Command processing when all motors are enabled ;所有电机使能时的命令处理 More...
 
void cmd_indivdual (void)
 Command processing when independently controlling motors ;独立控制电机时的命令处理 More...
 
void process_cmd (void)
 Command processing:handling commands sent by the upper computer ;命令处理:处理上位机发送的命令 More...
 

Macro Definition Documentation

◆ CONTROL_MODE_COUNT

#define CONTROL_MODE_COUNT   2

The states of motor control: running and stopping ;电机控制的状态,分为运行和停止两种状态

◆ MOTOR_COUNT

#define MOTOR_COUNT   4

number of motors controlled ;控制的电机个数

◆ OP_MODE_COUNT

#define OP_MODE_COUNT   2

types of motor operation modes: speed mode and speed mode ;电机运行模式的种类,速度模式和速度模式两种

Enumeration Type Documentation

◆ motor_control_mode

Enumerator
MOTOR_CONTROL_INDEPEND 
MOTOR_CONTROL_ALL 

◆ motor_op_mode

Enumerator
MOTOR_DISABLE 
MOTOR_ENABLE 

Function Documentation

◆ cmd_all()

void cmd_all ( void  )

Command processing when all motors are enabled ;所有电机使能时的命令处理

◆ cmd_indivdual()

void cmd_indivdual ( void  )

Command processing when independently controlling motors ;独立控制电机时的命令处理

◆ disable_all_motor()

void disable_all_motor ( void  )

Disable all motors ;禁用所有电机

◆ enable_all_motor()

void enable_all_motor ( void  )

Enable all motors ;使能所有电机

◆ process_cmd()

void process_cmd ( void  )

Command processing:handling commands sent by the upper computer ;命令处理:处理上位机发送的命令