Wiki

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
resources:tools-software:uc-drivers:adxl362 [13 Nov 2012 14:40]
Dan Nechita Added link to PmodACL2.
resources:tools-software:uc-drivers:adxl362 [03 Jul 2013 16:09]
Lucian Sin changed 1 function
Line 29: Line 29:
 The following functions are implemented in this version of ADXL362 driver: The following functions are implemented in this version of ADXL362 driver:
 ^ Function ​      ^ Description ​    ^ ^ Function ​      ^ Description ​    ^
-unsigned ​char ADXL362_Init(void) | Initializes the device. |+| char ADXL362_Init(void) | Initializes the device. |
 | void ADXL362_SetRegisterValue(unsigned short registerValue,​ unsigned char  registerAddress,​ unsigned char bytesNumber) | Writes data into a register. | | void ADXL362_SetRegisterValue(unsigned short registerValue,​ unsigned char  registerAddress,​ unsigned char bytesNumber) | Writes data into a register. |
 | void ADXL362_GetRegisterValue(unsigned char *pReadData, unsigned char registerAddress,​ unsigned char bytesNumber) | Performs a burst read of a specified number of registers. | | void ADXL362_GetRegisterValue(unsigned char *pReadData, unsigned char registerAddress,​ unsigned char bytesNumber) | Performs a burst read of a specified number of registers. |
Line 38: Line 38:
 | void ADXL362_SetOutputRate(unsigned char outRate) | Selects the Output Data Rate of the device. | | void ADXL362_SetOutputRate(unsigned char outRate) | Selects the Output Data Rate of the device. |
 | void ADXL362_GetXyz(short *x, short *y, short *z) | Reads the 3-axis raw data from the accelerometer. | | void ADXL362_GetXyz(short *x, short *y, short *z) | Reads the 3-axis raw data from the accelerometer. |
 +| void ADXL362_GetGxyz(float* x, float* y, float* z)| Reads the 3-axis raw data from the accelerometer and converts it to g. |
 | float ADXL362_ReadTemperature(void) | Reads the temperature of the device. | | float ADXL362_ReadTemperature(void) | Reads the temperature of the device. |
 | void ADXL362_FifoSetup(unsigned char  mode, unsigned short waterMarkLvl,​ unsigned char  enTempRead) | Configures the FIFO feature. | | void ADXL362_FifoSetup(unsigned char  mode, unsigned short waterMarkLvl,​ unsigned char  enTempRead) | Configures the FIFO feature. |
 | void ADXL362_SetupActivityDetection(unsigned char  refOrAbs, unsigned short threshold, unsigned char  time) | Configures activity detection. | | void ADXL362_SetupActivityDetection(unsigned char  refOrAbs, unsigned short threshold, unsigned char  time) | Configures activity detection. |
 | void ADXL362_SetupInactivityDetection(unsigned char  refOrAbs, unsigned short threshold, unsigned short time) | Configures inactivity detection. | | void ADXL362_SetupInactivityDetection(unsigned char  refOrAbs, unsigned short threshold, unsigned short time) | Configures inactivity detection. |
resources/tools-software/uc-drivers/adxl362.txt · Last modified: 03 Jul 2013 16:09 by Lucian Sin