📄 tmdlfgpolocal.h
字号:
/* * Copyright (c) 2003, 2004 Koninklijke Philips Electronics N V. All rights * reserved. * * This source code and any compilation or derivative thereof is the proprietary * information of Koninklijke Philips Electronics N V and is confidential in * nature. Under no circumstances is this software to be exposed to or placed * under an Open Source License of any type without the express written * permission of Koninklijke Philips Electronics N V. * * ############################################################################# * * Module: %name: tmdlFgpoLocal.h % %version: ds08#7 % * * %date_created: Fri Aug 11 12:30:19 2006 % %created_by: bog % * * %date_modified: % %derived_by: bog % * * ############################################################################# */#ifndef TMDL_FGPO_LOCAL_H //-----------------#define TMDL_FGPO_LOCAL_H//-----------------------------------------------------------------------------// Standard include files://-----------------------------------------------------------------------------//#include <tmNxTypes.h> // DVP standard data types/structures#include <tmNxCompId.h> // DVP Component ID types/defines#include <tmNxModId.h>#include <tmFlags.h>//-----------------------------------------------------------------------------// Project include files://-----------------------------------------------------------------------------//#include <tmdlFgpo.h>#include <tmdlFgpo014c.h>#ifdef __cplusplusextern "C"{#endif//-----------------------------------------------------------------------------// Types and defines://-----------------------------------------------------------------------------//#define FGPO_SIGNATURE 0x46475049u // 'FGPO'#define TMDL_FGPO_NUM_SUPPORTED_INSTANCES 1typedef struct tmdlFgpo_Instance{ UInt32 instanceUnit;// FGPO instance unit ID number UInt32 instanceKey; // FGPO magic key value Bool setupDone; // True if instance has been setup tmdlFgpo_InstanceSetup_t setup; // ptmCallback_t pCallBack; // Callback function used before setup UInt32 userData; // Callback user data used before setup UInt32 eventMask; // int event Mask used before setup}tmdlFgpo_Instance_t, *ptmdlFgpo_Instance_t;typedef struct tmdlFgpo_Unit{ tmosalIntHandle_t intHdl; // FGPO interrupt handle tmPowerState_t powerState; // FGPO power state ptmdlFgpo_Instance_t pInstance; // Current instance ptmdlFgpo_Regs_t pRegs; // Pointer to FGPO registers UInt32 numCurrentInstances; // Number of open instances for particular unit}tmdlFgpo_Unit_t, *ptmdlFgpo_Unit_t;//-----------------------------------------------------------------------------// Internal Prototypes://-----------------------------------------------------------------------------//static void FgpoIsr();static void FgpoDbgInit(void);static void FgpoDbgDeInit(void);static tmErrorCode_t FgpoInit(tmUnitSelect_t fgpoUnitSelect);static tmErrorCode_t FgpoReset(tmUnitSelect_t fgpoUnitSelect);static tmErrorCode_t FgpoSetup(tmUnitSelect_t fgpoUnitSelect, ptmdlFgpo_InstanceSetup_t pFgpoSetup);static tmErrorCode_t FgpoGetIntStatus(tmUnitSelect_t fgpoUnitSelect, ptmdlFgpo_Event_t pFgpoIntEvent);static tmErrorCode_t FgpoIntDisable(tmUnitSelect_t fgpoUnitSelect, tmdlFgpo_Event_t fgpoIntEvent);static tmErrorCode_t FgpoIntEnable(tmUnitSelect_t fgpoUnitSelect, tmdlFgpo_Event_t fgpoIntEvent);static tmErrorCode_t FgpoIntClear(tmUnitSelect_t fgpoUnitSelect, tmdlFgpo_Event_t fgpoIntEvent);static tmErrorCode_t FgpoOutputEnable(tmUnitSelect_t fgpoUnitSelect);static tmErrorCode_t FgpoOutputDisable(tmUnitSelect_t fgpoUnitSelect);static tmErrorCode_t FgpoIntfEnable(tmUnitSelect_t fgpoUnitSelect);static tmErrorCode_t FgpoIntfDisable(tmUnitSelect_t fgpoUnitSelect);static tmErrorCode_t FgpoSetBaseAddr1(tmUnitSelect_t fgpoUnitSelect, UInt32 fgpoBaseAddr);static tmErrorCode_t FgpoSetBaseAddr2(tmUnitSelect_t fgpoUnitSelect, UInt32 fgpoBaseAddr);static tmErrorCode_t FgpoGetTimestamp1(tmUnitSelect_t fgpoUnitSelect, pUInt32 pFgpoTimestamp);static tmErrorCode_t FgpoGetTimestamp2(tmUnitSelect_t fgpoUnitSelect, pUInt32 pFgpoTimestamp);static tmErrorCode_t FgpoGetNumOfRec1(tmUnitSelect_t fgpoUnitSelect, pUInt32 pFgpoNumOfRec);static tmErrorCode_t FgpoGetNumOfRec2(tmUnitSelect_t fgpoUnitSelect, pUInt32 pFgpoNumOfRec);#ifdef __cplusplus}#endif#endif // TMDL_FGPO_LOCAL_H //---------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -