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

📄 ac48drhi.h

📁 Audiocodes old vision DSP driver
💻 H
字号:
/************************************************************************/
/*           *   AudioCodes Ltd.   *   Copyright (c) 1998   *           */
/************************************************************************/
/* File Name:       Ac48DrHi.h                                          */
/************************************************************************/
/* DRIVERS PACKET VERSION:     481(1.30) / 480(1.60) / 483(1.00)        */
/************************************************************************/
/* 4804 OPERATION SOFTWARE VERSION SUPPORT:                             */
/*                       V 1.60 (December 1999) and above	            */
/************************************************************************/
/* 481xx OPERATION SOFTWARE VERSION SUPPORT:                            */
/*                       V 1.30 (October 1999) and above                */
/************************************************************************/
/* 4830x OPERATION SOFTWARE VERSION SUPPORT:                            */
/*                       V 1.00 (March 2000) and above                  */
/************************************************************************/
/* PURPOSE  :   This header file contains the High Level Driver.        */
/*              The High Level Drivers include routines that manage     */
/*              all the required communication with the AC48 by         */
/*              sending/receiving the appropriate commands and          */
/*              information.                                            */
/*                                                                      */
/* DATE     :	May 1998												*/
/* UPDATE       REASON TO UPDATE                                        */
/* ======       ================                                        */
/* 11/8/98      adding 'Version' functions                              */
/*                                                                      */
/************************************************************************/
#ifndef HighDrv_h
#define HighDrv_h

#include "Ac48DrDf.h"
#include <STDIO.h>

	/* HPIC "per-bits" */
/* #define MSB_FIRST	0 defined as 'enum TOrder' in TypeDef0.h */
/* #define LSB_FIRST	1 defined as 'enum TOrder' in TypeDef0.h */
#define SET_DSPINT		4 /* write HPIC */
#define CLEAR_DSPINT	0 /* write HPIC */
#define SET_HINT		0 /* write HPIC */
#define CLEAR_HINT		8 /* write HPIC */
#define CHECK_HINT		8 /* read  HPIC */

#endif   /* HighDrv_h */

#if __cplusplus
extern "C" {
#endif

			/*	HIGH LEVEL DRIVER FUNCTIONS */
int  Ac48xxActiveCommand(int DeviceIndex, int ChannelIndex, 
						 TDebugingData DebugingData, TWaitMode WaitMode);

int  Ac48xxCasPortPresetCommand(int DeviceIndex, int ChannelIndex, 
                         int SignalA, int SignalB, int SignalC, int SignalD, 
						TDebugingData DebugingData, TWaitMode WaitMode);

int Ac48xxGetNumberOfPackets(int DeviceIndex);

int  Ac48xxReceivePacket(int DeviceIndex, char *ReceivePacket, 
											TDebugingData DebugingData);

int  Ac48xxTransmitPacket(int DeviceIndex, const char *OutPacket, 
						TDebugingData DebugingData, TWaitMode WaitMode);

int Ac48xxBootCompletely(int DeviceIndex, const char *KernelDownload, 
                         int KernelSize,  const char *ProgramDownload);

int Ac48xxBoot(int DeviceIndex, const char *KernelDownload, int KernelSize, 
               const char **ProgramDownload, int Stage, TWaitMode WaitMode);

int  Ac48xxBIT(int DeviceIndex, const char *KernelDownload, int KernelSize, 
										const char **BITDownload, int Stage, 
										TWaitMode WaitMode);

int Ac48xxBootCompletelyForDebugging(int DeviceIndex, const char *KernelDownload, 
                           int KernelSize, const char *ProgramDownload, 
                           FILE *BlocksStructureFile);

int Ac48xxBootForDebugging(int DeviceIndex, const char *KernelDownload, int KernelSize, 
               const char **ProgramDownload, const char *ProgramDownloadStructure, 
               int Stage, TWaitMode WaitMode, FILE *BlocksStructure);

int Ac48xxBITForDebugging(int DeviceIndex, const char *KernelDownload, 
                          int KernelSize, const char **BITDownload, 
                          const char *BITDownloadStructure,
                          int Stage, TWaitMode WaitMode, 
                          FILE *BlockStructureFile);

int Ac48xxSetupDeviceCompletely(int DeviceIndex, TSetupDevice SetupDevice);

int Ac48xxSetupDevice(int Stage, int DeviceIndex, TSetupDevice SetupDevice);

TSetupDevice Ac48xxSetDefaultSetupDeviceStructure();

int Ac48xxSetupChannelCompletely(int DeviceIndex, int ChannelIndex,
				                            TSetupChannel SetupChannel, 
                                            TDebugingData DebugingData);

int Ac48xxSetupChannel(int Stage, int DeviceIndex, int ChannelIndex,
											TSetupChannel SetupChannel, 
											TDebugingData DebugingData);

TSetupChannel Ac48xxSetDefaultSetupChannelStructure(int ChannelIndex);

void Ac48xxSetCommandPacketHeaderDefaults(TCommandPacketHeader *Header, 
														int ChannelIndex);

void Ac48xxSetStatusPacketHeaderDefaults(TStatusPacketHeader *Header, 
														int ChannelIndex);

void Ac48xxClearSequenceArrays(int DeviceIndex, int ChannelIndex);

	void Ac48xxClearHInt(int DeviceIndex);
	int  Ac48xxCheckHInt(int DeviceIndex);
	void Ac48xxSetHPIByteOrder(int DeviceIndex, TOrder Order);
	void Ac48xxKernelDownload(int DeviceIndex, 
						const char *KernelDownloadBlock, int KernelSize);
	int  Ac48xxProgramDownload(int DeviceIndex, 
						const char **ProgramDownloadBlocks);

TVersion Ac48xxKernelVersion(const char *KernelDownloadBlock, char *Name);

TVersion Ac48xxProgramVersion(const char *ProgramDownloadBlock, char *Name);

#if AC48_SIGNALING_MODE == AC48_EXTENDED_SIGNALING_MODE
TCallProgress Ac48xxSetDefaultCallProgress(void); /* Ac4814 Edditional function */
#endif /* AC48_SIGNALING_MODE */

#if __cplusplus
}
#endif

/*
int TypicalWayToUseSetupFunctions(long TimeOut)
{		
	int Stage = FIRST_STAGE;
	while(TimeOut)
		{
		Stage = Ac48xxSetupDevice(Stage, DeviceIndex, SetupDevice);
		TimeOut--;
		if((Stage == AC_OK) || (Stage == AC_ERROR))
			return Stage;
		}			
	return TIME_OUT_ERROR;	
}
*/

⌨️ 快捷键说明

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