anybus.h
来自「基于2812dsp/BOIS实时操作系统,通用软件平台」· C头文件 代码 · 共 52 行
H
52 行
/* =================================================================================
File name: Anybus.H (28x version)
Originator: NIE R&D Group
Description:
Header file containing constants, data type definitions, and
function prototypes for the communication.
ver1.02
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-20-2005 Release Rev 1.0
------------------------------------------------------------------------------*/
//#include "DSP281x_Device.h"
#ifndef __Anybus_H__
#define __Anybus_H__
//***************************************************************/
//* Configurable Parameter for Anybus Serial */
//***************************************************************/
#define DPRAM_BASE 0x4000
#define ABINT GpioDataRegs.GPEDAT.bit.GPIOE0
#define RorW GpioDataRegs.GPFDAT.bit.GPIOF3
#define INDREG_MIN 0x80
#define INDREG_MOUT 0x40
#define INDREG_FB_CTRL 0x01
#define INDREG_OUT 0x02
#define INDREG_IN 0x04
#define APPINDREG_R_R 0x10
#define APPINDREG_L 0x08
#define ABINDREG_INIT 0x10
#define APPIND_REQ_BITS 0x1F
#define MBH_INFO_ERR_MASK 0x80
#endif /* extern "C" */
//#endif //
//
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?