HPM APP
HPMicro Application solution
command_process.c File Reference
#include "command_process.h"
#include "pmsm_init.h"

Functions

void cmd_indivdual (void)
 Command processing when independently controlling motors ;独立控制电机时的命令处理 More...
 
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 process_cmd (void)
 Command processing:handling commands sent by the upper computer ;命令处理:处理上位机发送的命令 More...
 

Variables

uint8_t op_mode [4] = {0}
 
uint8_t control_word [4] = {0}
 
static uint8_t op_mode_old [4] = {0}
 
static uint8_t control_word_old [4] = {0}
 
uint8_t control_word_all
 
uint8_t op_mode_all
 
static uint8_t control_word_all_old
 
static uint8_t op_mode_all_old
 

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 ;命令处理:处理上位机发送的命令

Variable Documentation

◆ control_word

uint8_t control_word[4] = {0}

◆ control_word_all

uint8_t control_word_all

◆ control_word_all_old

uint8_t control_word_all_old
static

◆ control_word_old

uint8_t control_word_old[4] = {0}
static

◆ op_mode

uint8_t op_mode[4] = {0}

◆ op_mode_all

uint8_t op_mode_all

◆ op_mode_all_old

uint8_t op_mode_all_old
static

◆ op_mode_old

uint8_t op_mode_old[4] = {0}
static