Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
resources:tools-software:uc-drivers:ad5781 [28 Feb 2013 10:14] – Added function table. Dan Nechitaresources:tools-software:uc-drivers:ad5781 [28 May 2013 16:24] (current) – [Driver Description] Lucian Sin
Line 29: Line 29:
 The following functions are implemented in this version of AD5781 driver: The following functions are implemented in this version of AD5781 driver:
 ^ Function       ^ Description     ^ ^ Function       ^ Description     ^
-| long //**AD5781_Init**//(void) | Initializes the communication with the device. Return in case of success and otherwise. | +| long AD5781_Init(void) | Initializes the communication with the device. Return in case of success and negative error code otherwise. | 
-| long //**AD5781_SetRegisterValue**//(unsigned char registerAddress, unsigned long registerValue) | Writes data into a register. Receives as parameters the address of the register and the value of the register. Returns 0 in case of success or negative error code. | +| long AD5781_SetRegisterValue(unsigned char registerAddress, unsigned long registerValue) | Writes data into a register. Receives as parameters the address of the register and the value of the register. Returns 0 in case of success or negative error code. | 
-| long //**AD5781_GetRegisterValue**//(unsigned char registerAddress) | Reads the value of a register. Receives as parameter the address of the register. Returns the value of the register or negative error code. | +| long AD5781_GetRegisterValue(unsigned char registerAddress) | Reads the value of a register. Receives as parameter the address of the register. Returns the value of the register or negative error code. | 
-| long //**AD5781_DacOuputState**//(unsigned char state) | Sets the DAC output in one of the three states(normal, clamped via 6KOhm to GND, tristate). Returns negative error code or 0 in case of success. | +| long AD5781_DacOuputState(unsigned char state) | Sets the DAC output in one of the three states(normal, clamped via 6KOhm to GND, tristate). Returns negative error code or 0 in case of success. | 
-| long //**AD5781_SetDacValue**//(unsigned long value) | Writes to the DAC register. Receives as parameter the value to be written to DAC. Returns negative error code or 0 in case of success. | +| long AD5781_SetDacValue(unsigned long value) | Writes to the DAC register. Receives as parameter the value to be written to DAC. Returns negative error code or 0 in case of success. | 
-| long //**AD5781_SoftInstruction**//(unsigned char instructionBit) | Asserts RESET, CLR or LDAC in a software manner. Receives as parameter one of the software control bits(RESET, CLR or LDAC). Returns negative error code or 0 in case of success. | +| long AD5781_SoftInstruction(unsigned char instructionBit) | Asserts RESET, CLR or LDAC in a software manner. Receives as parameter one of the software control bits(RESET, CLR or LDAC). Returns negative error code or 0 in case of success. | 
-| long //**AD5781_Setup**//(unsigned long setupWord) | Configures the output amplifier, DAC coding, SDO state and the linearity error compensation. Receives as parameter a 24-bit value that sets or clears the Control Register bits(RBUF, BIN/2sC, SDODIS, LINCOMP). Returns negative error code or 0 in case of success. |+| long AD5781_Setup(unsigned long setupWord) | Configures the output amplifier, DAC coding, SDO state and the linearity error compensation. Receives as parameter a 24-bit value that sets or clears the Control Register bits(RBUF, BIN/2sC, SDODIS, LINCOMP). Returns negative error code or 0 in case of success. |
resources/tools-software/uc-drivers/ad5781.1362042896.txt.gz · Last modified: 28 Feb 2013 10:14 by Dan Nechita