This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
resources:tools-software:uc-drivers:ad5781 [28 Feb 2013 10:14] – Added function table. Dan Nechita | resources: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 | ^ Function | ||
- | | long //**AD5781_Init**//(void) | Initializes the communication with the device. Return | + | | long AD5781_Init(void) | Initializes the communication with the device. Return |
- | | long //**AD5781_SetRegisterValue**//(unsigned char registerAddress, | + | | long AD5781_SetRegisterValue(unsigned char registerAddress, |
- | | 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, | + | | long AD5781_DacOuputState(unsigned char state) | Sets the DAC output in one of the three states(normal, |
- | | 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. | |