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

📄 pdil11.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的设备库的源码
💻 H
字号:
/*
 * Copyright (c) 1998, 1999 by TriMedia Technologies. 
 *
 * +------------------------------------------------------------------+
 * | This software is furnished under a license and may only be used  |
 * | and copied in accordance with the terms and conditions of  such  |
 * | a license and with the inclusion of this copyright notice. This  |
 * | software or any other copies of this software may not be provided|
 * | or otherwise made available to any other person.  The ownership  |
 * | and title of this software is not transferred.                   |
 * |                                                                  |
 * | The information in this software is subject  to change without   |
 * | any  prior notice and should not be construed as a commitment by |
 * | TriMedia Technologies.                                           |
 * |                                                                  |
 * | this code and information is provided "as is" without any        |
 * | warranty of any kind, either expressed or implied, including but |
 * | not limited to the implied warranties of merchantability and/or  |
 * | fitness for any particular purpose.                              |
 * +------------------------------------------------------------------+
 *
 *  Module name          : pdil11.h    1.2
 *
 *  Last update          : 18:43:43 - 00/11/09
 */

#ifndef _PDIL11_H
#define _PDIL11_H

#include <tmlib/tmtypes.h>
#include <tm1/tmLibdevErr.h>
#include <tm1/tmAvFormats.h>
#include <tm1/tmInterrupts.h>
#include <tm1/tmBoardDef.h>
#include <tm1/tsaP1394Board.h>

#if defined(__cplusplus)
extern  "C" {
#endif  /* defined(__cplusplus) */

/* Local Data Definitions */
typedef union {
  UInt32 quadlet;
  UInt16 doublet[2];
  UInt8  byte[4];
} QDATA;


typedef tmLibdevErr_t (* pdil11WriteFunc_t) (UInt32 address, UInt8 data);
typedef tmLibdevErr_t (* pdil11ReadFunc_t) (UInt32 address, UInt8 *data);

/*
 * Add the following fields into the pboardP1394Param_t data struct, 
 * and pass the read write function pointers from philips_dtv_ref4.c
 * to pdil11.c via init() (or another function?).
 */

typedef struct {
	pdil11WriteFunc_t p1394Write;
	pdil11ReadFunc_t  p1394Read;
} p1394Param_t, * pp1394Param_t;

/*-----------------------------------------------------------------*/
/*			Function Prototypes			   */
/*-----------------------------------------------------------------*/

extern tmLibdevErr_t p1394BoardInit(pp1394Param_t params);

extern UInt32 pdil11Read(UInt8 offset ); 

extern void pdil11Write(UInt32 quad, UInt8 offset );  

extern UInt8 pdil11BRead(UInt8 offset );                

extern UInt32 pdil11PayLoadRead( UInt8 offset );

extern void pdil11Put32(UInt8 *aPtr, UInt8 offset );

extern UInt8* pdil11PayLoadGet32(UInt8 offset, UInt8 *aPtr);

extern tmLibdevErr_t pdil11InitFunc(pboardP1394Param_t P1394Params);

extern tmLibdevErr_t pdil11Config(UInt32, Pointer);

#if defined(__cplusplus)
}
#endif  /* defined(__cplusplus) */

#endif /* _PDIL11_H */

⌨️ 快捷键说明

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