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

📄 rfccontrol.h

📁 IT projecotr reference design.
💻 H
字号:
/****************************************************************************/
/*             TEXAS INSTRUMENTS PROPRIETARY INFORMATION                    */
/*                                                                          */
/*  (c) Copyright, Texas Instruments Incorporated, 2006.                    */
/*      All Rights Reserved.                                                */
/*                                                                          */
/*  Property of Texas Instruments Incorporated. Restricted Rights -         */
/*  Use, duplication, or disclosure is subject to restrictions set          */
/*  forth in TI's program license agreement and associated documentation.   */
/****************************************************************************/

/****************************************************************************/
/* rfcControl.h                                                             */
/*                                                                          */
/* Remote function call controller.                                         */
/****************************************************************************/

#ifndef __RFCCONTROL_H
#define __RFCCONTROL_H

#include "common.h"

#include "sysmon.h"


                        /****************************************************/
                        /* Data link escape characters.                     */
                        /****************************************************/

#define DLE     0x10                                       /* escape leadin */
#define DLC     0x11                                         /* DLE literal */
#define STX     0x12                                       /* start-of-text */
#define ETX     0x13                                         /* end-of-text */

                        /****************************************************/
                        /* Remote function call message format.             */
                        /*                                                  */
                        /* This format is defined by the DDP3020 peer mess- */
                        /* age interface and is used by DDP2230 to maintain */
                        /* backward compatibility with tools developed for  */
                        /* DDP3020.                                         */
                        /****************************************************/

#define MBUFFERSIZE  200            /* request/response message buffer size */

typedef struct
{
    struct
    {
        uint16 srcID;                         /* (unused) message source ID */
        uint16 dstID;                    /* (unused) message destination ID */
        uint16 seq;                              /* message sequence number */
        uint16 transID;                          /* message type identifier */
        uint16 szReq;                             /* request message length */
        uint16 szRsp;                            /* response message length */
    } h;                                                          /* header */
    
    uint08 mBuffer[ MBUFFERSIZE ];              /* request/response message */
    uint16 crc;                                          /* crc placeholder */
}
    RFCMESSAGE;
    
                        /****************************************************/
                        /* CRC generate/check.                              */
                        /****************************************************/

#define CRC_SEED    0xffff                                /* CRC seed value */

uint16 crc16( void *text, int cc, uint16 crc );


                        /****************************************************/
                        /* Public functions.                                */
                        /****************************************************/

void         rfc_info( TASKINFO_STRUCT *info );
EXEC_CC_ENUM rfc_init( void );
void rfcMPGet( int nBytes, void *parm );
void rfcMPPut( int nBytes, void *parm );

#endif

⌨️ 快捷键说明

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