⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 communication.h

📁 MS320F2812 Sci驱动程序
💻 H
字号:
#ifndef COMMUNICATION_H
#define COMMUNICATION_H

#define AZ	1
#define EL	2

#define AZ_CTRL	1
#define EL_CTRL	2

#define PRIM	1
#define SLAV	2


void SendCommand(int cmd_index);

void SendJogCmd(int Velocity);

//send command to azimuth and elevation controller
void SendCommand(int cmd_index);

void SetCurrentController(int axis);

int RecvCtrlSts(void);

int Bcd2Bin(unsigned char *buff);

//convert a integer to BCD code
void Bin2Bcd(int bin, unsigned char *buff);

//send encoder value to center computer	
void SendEncoder(int axis, int code);

//Receive command from center computer
int RecvCmd(void);

int ReadAzCmd(int *val);

int ReadElCmd(int *val);

int ReadCmd(int *val);

extern int CurrentController;
extern int AzCtrlErrCode;
extern int ElCtrlErrCode;

extern int Azimuth;
extern int Elevation;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -