#pragma warning(push)
#pragma warning(disable : 4214)			// PLX SDK uses non-ANSI standard bitfields
#pragma warning(disable : 4201)			// PLX SDK uses nameless struct/unions
#include "plxpcie5.22\sw\inc\plxapi.h"
#pragma warning(pop)


#define NDTS_HAL_PLX_v5x_AddBoard NDTS_HAL_PLX_v522_AddBoard

#define NDTS_HAL_PLX_v5x_GetHALIDGeneric NDTS_HAL_PLX_v522_GetHALIDGeneric
#define NDTS_HAL_PLX_v5x_InitialiseHAL NDTS_HAL_PLX_v522_InitialiseHAL
#define NDTS_HAL_PLX_v5x_GetBoardsIDs NDTS_HAL_PLX_v522_GetBoardsIDs
#define NDTS_HAL_PLX_v5x_AddBoard NDTS_HAL_PLX_v522_AddBoard
#define NDTS_HAL_PLX_v5x_RemoveBoard NDTS_HAL_PLX_v522_RemoveBoard

#define NDTS_HAL_PLX_v5x_OpenDMAChannel NDTS_HAL_PLX_v522_OpenDMAChannel
#define NDTS_HAL_PLX_v5x_CloseDMAChannel NDTS_HAL_PLX_v522_CloseDMAChannel
#define NDTS_HAL_PLX_v5x_GetCommonBufferInfo NDTS_HAL_PLX_v522_GetCommonBufferInfo
#define NDTS_HAL_PLX_v5x_PerformDMARead NDTS_HAL_PLX_v522_PerformDMARead
#define NDTS_HAL_PLX_v5x_PerformDMAWrite NDTS_HAL_PLX_v522_PerformDMAWrite

#define NDTS_HAL_PLX_v5x_SetWord NDTS_HAL_PLX_v522_SetWord
#define NDTS_HAL_PLX_v5x_GetWord NDTS_HAL_PLX_v522_GetWord

#define NDTS_HAL_PLX_v5x_WriteSecondaryDeviceID NDTS_HAL_PLX_v522_WriteSecondaryDeviceID

#define NDTS_HAL_PLX_v5x_BoardByteCopy NDTS_HAL_PLX_v522_BoardByteCopy

#define NDTS_HAL_PLX_v5x_CheckCardIndexState NDTS_HAL_PLX_v522_CheckCardIndexState

#define PLXv5xGlobalState PLXv522GlobalState
#define plxv5xGlobalState plxv522GlobalState


#include "NDTSCommonHAL_PLX_v522.h"
#include "NDTSCommonHAL_PLX_v5x.c"

NDTS_Boolean NDTS_HAL_PLX_v522_GetHALID(NDTS_HAL_ID *pHALID)
{
	return NDTS_HAL_PLX_v522_GetHALIDGeneric(pHALID, "plxapi v5.22", "plxapi522", 5, 2) ;
}
