Changes between Version 25 and Version 26 of warpdac_ad9775.c
- Timestamp:
- Jan 26, 2006, 2:24:14 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
warpdac_ad9775.c
v25 v26 11 11 == Functions == 12 12 13 For all functions the input variable ''baseaddr'' is the base address of the SPI Core and ''dacs'' is the 16 bit hex value where the 8 least significant bits are the value to be stored and the 8 most significant bits choose the register in which to store the value.13 For all functions the input variable ''baseaddr'' is the base address of the SPI Core. 14 14 15 15 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L94 void transmitdac(unsigned int* baseaddr, int val)]''' … … 17 17 18 18 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L110 void WarpDac_InitializeSPI(unsigned int* baseaddr)]''' 19 [[BR]]Initializes the SPI controller for DAC functions. This function must be called before calling any other DAC functions. 19 [[BR]]Initializes the SPI controller for DAC functions. This function must be called before calling any other DAC functions. ''dacs'' is the 16 bit hex value where the 8 least significant bits are the value to be stored and the 8 most significant bits choose the register in which to store the value. 20 20 21 21 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L120 void WarpDac_InitializeDAC(unsigned int* baseaddr, unsigned char dacs)]''' 22 [[BR]]This function must be called at the beginning of the program to make necessary changes in some of the registers. Initializes the DACs specified in ''dacs'' .22 [[BR]]This function must be called at the beginning of the program to make necessary changes in some of the registers. Initializes the DACs specified in ''dacs'', the 16 bit hex value where the 8 least significant bits are the value to be stored and the 8 most significant bits choose the register in which to store the value. 23 23 24 24 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L144 void WarpDac_Reset(unsigned int* baseaddr, unsigned char dacs)]''' 25 [[BR]]Resets the DAC registers to their default values. Calls WarpDac_InitializeDAC, so there is no need to repeat it in the code. 25 [[BR]]Resets the DAC registers to their default values. Calls WarpDac_InitializeDAC, so there is no need to repeat it in the code. ''dacs'' is the 16 bit hex value where the 8 least significant bits are the value to be stored and the 8 most significant bits choose the register in which to store the value. 26 26 27 27 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L158 int WarpDac_Sleep(unsigned int* baseaddr, char mode, unsigned char dacs)]''' 28 [[BR]] 28 [[BR]]Will take the specified DACs either in (mode=1) or out (mode=0) of sleep mode. ''dacs'' 29 29 30 30 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L206 int WarpDac_FineGainAdj(unsigned int* baseaddr, char chan, unsigned char value, unsigned char dacs)]'''