Changes between Version 34 and Version 35 of warpdac_ad9775.c
- Timestamp:
- Jan 26, 2006, 3:19:56 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
warpdac_ad9775.c
v34 v35 17 17 18 18 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L120 void WarpDac_InitializeDAC(unsigned int* baseaddr, unsigned char dacs)]''' 19 [[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 8 bit value where the 4 least significant bits choose the DAC to initialize.19 [[BR]]This function must be called at the beginning of the program to make necessary changes in some of the registersof the DAC. Initializes the DACs specified in ''dacs'', the 8 bit value where the 4 least significant bits choose the DAC to initialize. 20 20 21 21 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L144 void WarpDac_Reset(unsigned int* baseaddr, unsigned char dacs)]''' … … 26 26 27 27 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L206 int WarpDac_FineGainAdj(unsigned int* baseaddr, char chan, unsigned char value, unsigned char dacs)]''' 28 [[BR]]Adjusts the fine gain of either the I (''chan=ICHAN'') or the Q (''chan=QCHAN'') channel. The variable ''value'' is sent to the registers as specified by the channel setting. ''dacs'' is an 8 bit value where the 4 least significant bits choose the DAC to alter. Returns -1 if the mode is incorrect. Returns 0if change is successful.28 [[BR]]Adjusts the fine gain of either the I (''chan=ICHAN'') or the Q (''chan=QCHAN'') channel. The variable ''value'' is sent to the registers as specified by the channel setting. ''dacs'' is an 8 bit value where the 4 least significant bits choose the DAC to alter. Returns ''INVALID_MODE'' if the mode is incorrect. Returns ''WARP_SUCCESS'' if change is successful. 29 29 30 30 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L256 int WarpDac_CoarseGainAdj(unsigned int* baseaddr, char chan, unsigned char value, unsigned char dacs)]''' 31 [[BR]]Adjusts the coarse gain of either the I (''chan=ICHAN'') or the Q (''chan=QCHAN'') channel. The variable ''value'' is sent to the registers as specified by the channel setting. ''dacs'' is an 8 bit value where the 4 least significant bits choose the DAC to alter. Returns -1 if the mode is incorrect. Returns 0if change is successful.31 [[BR]]Adjusts the coarse gain of either the I (''chan=ICHAN'') or the Q (''chan=QCHAN'') channel. The variable ''value'' is sent to the registers as specified by the channel setting. ''dacs'' is an 8 bit value where the 4 least significant bits choose the DAC to alter. Returns ''INVALID_MODE'' if the mode is incorrect. Returns ''WARP_SUCCESS'' if change is successful. 32 32 33 33 '''[source:/PlatformSupport/WARP_Libraries/warpdac_ad9775.c@latest#L306 int WarpDac_OffsetAdj(unsigned int* baseaddr, char chan, short value, unsigned char dacs)]''' 34 [[BR]]Adjusts the DC offset of either the I (''chan=ICHAN'') or the Q (''chan=QCHAN'') channel. The variable ''value'' is sent to the registers as specified by the channel setting. ''value'' has a range from -1024 to 102 4. ''dacs'' is an 8 bit value where the 4 least significant bits choose the DAC to alter. Returns -1 if the mode is incorrect. Returns 0if change is successful.34 [[BR]]Adjusts the DC offset of either the I (''chan=ICHAN'') or the Q (''chan=QCHAN'') channel. The variable ''value'' is sent to the registers as specified by the channel setting. ''value'' has a range from -1024 to 1023. ''dacs'' is an 8 bit value where the 4 least significant bits choose the DAC to alter. Returns ''INVALID_MODE'' if the mode is incorrect. Returns ''WARP_SUCCESS'' if change is successful.