00001
00002
00009
00010 #ifndef __N957LIB_DEF_H
00011 #define __N957LIB_DEF_H
00012
00014
00016 #include "N957oslib.h"
00017 #include "N957types.h"
00018
00020
00022
00024
00026
00028
00030
00032
00034
00039
00041
00051
00052 N957_DLL_API N957_API N957_Init( short BdNum, int32_t *handle);
00053
00055
00064
00065 N957_DLL_API N957_API N957_End( int32_t handle);
00072
00074
00081
00082 N957_DLL_API const char* N957_DecodeError( N957ErrorCodes code);
00083
00085
00095
00096 N957_DLL_API N957_API N957_SWRelease( char *SwRel, int buff_size);
00103
00104
00114
00115 N957_DLL_API N957_API N957_WriteReg( int32_t handle, N957_UINT16 reg_addr, N957_UINT16 data);
00116
00118
00128
00129 N957_DLL_API N957_API N957_ReadReg( int32_t handle, N957_UINT16 reg_addr, N957_UINT16 *data);
00130
00132
00143
00144 N957_DLL_API N957_API N957_SetRegBitMsk( int32_t handle, N957_UINT16 reg_addr, N957_UINT16 bitmsk);
00145
00147
00158
00159 N957_DLL_API N957_API N957_ClearRegBitMsk( int32_t handle, N957_UINT16 reg_addr, N957_UINT16 bitmsk);
00166
00168
00177
00178 N957_DLL_API N957_API N957_GetStatus( int32_t handle, N957_UINT16 *data);
00179
00181
00190
00191 N957_DLL_API N957_API N957_GetControl( int32_t handle, N957_UINT16 *data);
00192
00194
00203
00204 N957_DLL_API N957_API N957_SetControl( int32_t handle, N957_UINT16 data);
00205
00207
00218
00219 N957_DLL_API N957_API N957_GetFWRelease( int32_t handle, char *FwRel, int buff_size);
00220
00222
00231
00232 N957_DLL_API N957_API N957_GetDAC( int32_t handle, N957_UINT16 *data);
00233
00235
00244
00245 N957_DLL_API N957_API N957_SetDAC( int32_t handle, N957_UINT16 data);
00246
00248
00257
00258 N957_DLL_API N957_API N957_GetBlDim( int32_t handle, N957_UINT16 *data);
00259
00261
00270
00284 N957_DLL_API N957_API N957_GetPulser( int32_t handle, N957_UINT16 *data);
00285
00287
00296
00297 N957_DLL_API N957_API N957_SetPulser( int32_t handle, N957_UINT16 data);
00298
00300
00309
00310 N957_DLL_API N957_API N957_GetFwDwnld( int32_t handle, N957_UINT16 *data);
00311
00313
00322
00323 N957_DLL_API N957_API N957_SetFwDwnld( int32_t handle, N957_UINT16 data);
00324
00326
00335
00336 N957_DLL_API N957_API N957_GetFlashEna( int32_t handle, N957_UINT16 *data);
00337
00339
00348
00349 N957_DLL_API N957_API N957_SetFlashEna( int32_t handle, N957_UINT16 data);
00350
00352
00361
00362 N957_DLL_API N957_API N957_GetUsbFlag( int32_t handle, N957_BOOL *usb_high_speed);
00363
00365
00374
00375 N957_DLL_API N957_API N957_GetMemEmptyFlag( int32_t handle, N957_BOOL *data);
00376
00378
00387
00388 N957_DLL_API N957_API N957_GetMemFullFlag( int32_t handle, N957_BOOL *data);
00389
00391
00400
00401 N957_DLL_API N957_API N957_GetFlashBusyFlag( int32_t handle, N957_BOOL *data);
00402
00404
00413
00414 N957_DLL_API N957_API N957_GetAcqModeFlag( int32_t handle, N957_BOOL *data);
00415
00417
00426
00427 N957_DLL_API N957_API N957_SetAcqModeFlag( int32_t handle, N957_BOOL data);
00428
00430
00440
00441 N957_DLL_API N957_API N957_GetADCRate( int32_t handle, N957ControlADCRates *rate);
00442
00444
00454
00455 N957_DLL_API N957_API N957_SetADCRate( int32_t handle, N957ControlADCRates rate);
00456
00458
00467
00468 N957_DLL_API N957_API N957_GetSlsFlag( int32_t handle, N957_BOOL *data);
00469
00471
00480
00481 N957_DLL_API N957_API N957_SetSlsFlag( int32_t handle, N957_BOOL data);
00482
00484
00492
00493 N957_DLL_API N957_API N957_SwReset( int32_t handle);
00494
00496
00505
00506 N957_DLL_API N957_API N957_SwClear( int32_t handle);
00507
00509
00518
00519 N957_DLL_API N957_API N957_GetConvEnFlag( int32_t handle, N957_BOOL *data);
00520
00522
00531
00532 N957_DLL_API N957_API N957_SetConvEnFlag( int32_t handle, N957_BOOL data);
00533
00535
00544
00545 N957_DLL_API N957_API N957_GetSwConvFlag( int32_t handle, N957_BOOL *data);
00546
00548
00557
00558 N957_DLL_API N957_API N957_SetSwConvFlag( int32_t handle, N957_BOOL data);
00559
00561
00570
00571 N957_DLL_API N957_API N957_GetPurEnFlag( int32_t handle, N957_BOOL *data);
00572
00574
00583
00584 N957_DLL_API N957_API N957_SetPurEnFlag( int32_t handle, N957_BOOL data);
00585
00587
00597
00598 N957_DLL_API N957_API N957_GetAcquisitionMode( int32_t handle, N957ControlModes *mode);
00599
00601
00611
00612 N957_DLL_API N957_API N957_SetAcquisitionMode( int32_t handle, N957ControlModes mode);
00613
00615
00624
00625 N957_DLL_API N957_API N957_GetBufferOccupancy( int32_t handle, N957_UINT16 *buffer_size);
00626
00628
00638
00639 N957_DLL_API N957_API N957_GetRawData( int32_t handle, N957_UINT16 *data_buff, N957_UINT16 *read_data);
00640
00642
00652
00653 N957_DLL_API N957_API N957_GetScaler( int32_t handle, N957_UINT32 *scaler);
00654
00656
00665
00666 N957_DLL_API N957_API N957_GetTimer( int32_t handle, N957_UINT32 *timer);
00667
00669
00678
00679 N957_DLL_API N957_API N957_GetLiveTime( int32_t handle, N957_UINT32 *live_time);
00680
00682
00691
00692 N957_DLL_API N957_API N957_SetLLD( int32_t handle, N957_BYTE lld);
00693
00695
00705
00706 N957_DLL_API N957_API N957_ReadFlashPage( int32_t handle, N957_BYTE data_buff[N957_FLASH_PAGE_SIZE], N957_UINT16 page_number);
00707
00709
00719
00720 N957_DLL_API N957_API N957_WriteFlashPage( int32_t handle, N957_BYTE data_buff[N957_FLASH_PAGE_SIZE], N957_UINT16 page_number);
00721
00723
00732
00733 N957_DLL_API N957_API N957_EraseFlashPage( int32_t handle, N957_UINT16 page_number);
00734
00741
00743
00753
00754 N957_DLL_API N957_API N957_StartAcquire( int32_t handle, N957ControlModes mode);
00755
00757
00765
00766 N957_DLL_API N957_API N957_PauseAcquire( int32_t handle);
00767
00769
00777
00778 N957_API N957_ResumeAcquire( int32_t handle);
00779
00781
00789
00790 N957_DLL_API N957_API N957_StopAcquire( int32_t handle);
00791
00793
00804
00805 N957_DLL_API N957_API N957_ReadData( int32_t handle, N957_UINT16 *data_buff, N957_UINT16 *read_data);
00806
00807
00809
00819
00820 N957_DLL_API N957_API N957_GetConfigROM( int32_t handle, N957_ConfigROM* config_rom);
00821
00823
00835
00836 N957_DLL_API N957_API N957_FwUpgrade( int32_t handle, const N957_BYTE* data_buff, N957_UINT32 data_size, N957FlashPageTypes page_type);
00837
00840 #endif
00841