adi_adxl363_ConfigActivity on ADucm3029

This should be an easy one, maybe a dumb question. I'm using the aducm3029 eval board and want to set the threshold levels on the ADXL363 accelerometer. I see the function adi_adxl363_ConfigActivity that does this, but can't find any functions that call this anywhere in the skeleton code in the adxl363_accel.eww source code. Can you tell me where this function is called from?

thanks,

Steve

Parents
  • 0
    •  Analog Employees 
    on Nov 23, 2016 11:18 AM

    Hi Steve,

    You can view the documentation of the libraries and drivers from the BSP folder, please go to the BSP installation folder then to ADuCM302x_EZ_Kit_Lite\doc\html then open index.html. From there you can view the documentation of the BSP and the different drivers and libraries.

    For the adxl363, please open doc\html\group__adxl363___driver.html

    The ReadData function is called by the HandleInterrupts function during evaluation of interrupt source from adxl363.

    When the program is running, it will loop on CollectData function. Inside there is a loop that checks if the variable gbIntDetected is true which means that there is a pending adxl363 interrupt to be processed. If gbIntDetected is true, the program will check what kind of interrupt it is (adi_adxl363_GetIntStatus) by reading the adxl363 status register. Then after reading the status register, HandleInterrupts function will be called to evaluate the interrupt source from the status register and uses the ReadData function to print the accelerometer data.

    Regards

Reply
  • 0
    •  Analog Employees 
    on Nov 23, 2016 11:18 AM

    Hi Steve,

    You can view the documentation of the libraries and drivers from the BSP folder, please go to the BSP installation folder then to ADuCM302x_EZ_Kit_Lite\doc\html then open index.html. From there you can view the documentation of the BSP and the different drivers and libraries.

    For the adxl363, please open doc\html\group__adxl363___driver.html

    The ReadData function is called by the HandleInterrupts function during evaluation of interrupt source from adxl363.

    When the program is running, it will loop on CollectData function. Inside there is a loop that checks if the variable gbIntDetected is true which means that there is a pending adxl363 interrupt to be processed. If gbIntDetected is true, the program will check what kind of interrupt it is (adi_adxl363_GetIntStatus) by reading the adxl363 status register. Then after reading the status register, HandleInterrupts function will be called to evaluate the interrupt source from the status register and uses the ReadData function to print the accelerometer data.

    Regards

Children
No Data