This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
resources:tools-software:uc-drivers:ad7991 [13 Nov 2012 15:22] – Updated the supported devices list. Dan Nechita | resources:tools-software:uc-drivers:ad7991 [10 Jul 2013 14:42] (current) – changed 2 functions Lucian Sin | ||
---|---|---|---|
Line 33: | Line 33: | ||
The following functions are implemented in this version of AD799x driver: | The following functions are implemented in this version of AD799x driver: | ||
^ Function | ^ Function | ||
- | | unsigned | + | | char AD799x_Init(char partNumber, char deviceVersion) | Initializes I2C. | |
| void AD799x_SetConfigurationReg(unsigned char registerValue) | Writes data into the Configuration Register. | | | void AD799x_SetConfigurationReg(unsigned char registerValue) | Writes data into the Configuration Register. | | ||
- | | void AD799x_GetConversionResult(unsigned | + | | void AD799x_GetConversionResult(short* convValue, char* channel) | Reads the High byte and the Low byte of the conversion. | |
| float AD799x_ConvertToVolts(short rawSample, float vRef) | Converts a raw sample to volts. | | | float AD799x_ConvertToVolts(short rawSample, float vRef) | Converts a raw sample to volts. | |