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

#define NDTS_HAL_PLX_v5x_AddBoard NDTS_HAL_PLX_v51_AddBoard

#define NDTS_HAL_PLX_v5x_GetHALIDGeneric NDTS_HAL_PLX_v51_GetHALIDGeneric
#define NDTS_HAL_PLX_v5x_InitialiseHAL NDTS_HAL_PLX_v51_InitialiseHAL
#define NDTS_HAL_PLX_v5x_GetBoardsIDs NDTS_HAL_PLX_v51_GetBoardsIDs
#define NDTS_HAL_PLX_v5x_AddBoard NDTS_HAL_PLX_v51_AddBoard
#define NDTS_HAL_PLX_v5x_RemoveBoard NDTS_HAL_PLX_v51_RemoveBoard

#define NDTS_HAL_PLX_v5x_OpenDMAChannel NDTS_HAL_PLX_v51_OpenDMAChannel
#define NDTS_HAL_PLX_v5x_CloseDMAChannel NDTS_HAL_PLX_v51_CloseDMAChannel
#define NDTS_HAL_PLX_v5x_GetCommonBufferInfo NDTS_HAL_PLX_v51_GetCommonBufferInfo
#define NDTS_HAL_PLX_v5x_PerformDMARead NDTS_HAL_PLX_v51_PerformDMARead
#define NDTS_HAL_PLX_v5x_PerformDMAWrite NDTS_HAL_PLX_v51_PerformDMAWrite

#define NDTS_HAL_PLX_v5x_SetWord NDTS_HAL_PLX_v51_SetWord
#define NDTS_HAL_PLX_v5x_GetWord NDTS_HAL_PLX_v51_GetWord

#define NDTS_HAL_PLX_v5x_WriteSecondaryDeviceID NDTS_HAL_PLX_v51_WriteSecondaryDeviceID

#define NDTS_HAL_PLX_v5x_BoardByteCopy NDTS_HAL_PLX_v51_BoardByteCopy

#define NDTS_HAL_PLX_v5x_CheckCardIndexState NDTS_HAL_PLX_v51_CheckCardIndexState

#define PLXv5xGlobalState PLXv51GlobalState
#define plxv5xGlobalState plxv51GlobalState


#include "NDTSCommonHAL_PLX_v51.h"
#include "NDTSCommonHAL_PLX_v5x.c"

NDTS_Boolean NDTS_HAL_PLX_v51_GetHALID(NDTS_HAL_ID *pHALID)
{
	return NDTS_HAL_PLX_v51_GetHALIDGeneric(pHALID, "plxapi v5.1", "plxapi51", 5, 1) ;
}
