摘要
C语言DSP电机控制功能模块由一结构体类型来组织,内含输入变量,历史变量、参数变量、输出变量、功能函数的指针变量。通过声明结构体类型、定义结构体变量,赋予结构体变量初值,调用其功能函数来实现其模块功能。通过用DSP控制两个电机C语言程序的开发可看出,用功能函数共享和移植的方法,可充分利用现有现成或成熟的软件资源,快速、高效、可靠地开发新的程序、模块和软件。
Organizes C language of DSP motor control module by a structure that contains input variables, history variables, parameter variables, output variables and function pointer variable. The module function is realized by declaring structure type, defining structure variable, giving the structure variable initial value, calling the function lastly. Through the development of C language program of DSP controlling two motors,it can be seen that method of function performance, function share and transplantation can make full use of the existing readymade or mature software resources to develop new programs, modules and software quickly, high efficiently and reliably.
出处
《现代计算机》
2014年第18期50-55,共6页
Modern Computer
关键词
C语言
DSP
C Language
DSP
Module
Share
Transplantation