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?
The adxl363_accel.eww project is a sample to show how to read and write data to the onboard adxl363 acceleromete and interrupt handling. In this example, it uses only reset values of adxl363 for threshold levels.
You can use the adi_adxl363_ConfigActivity for set the threshold levels, just to put the required parameters such as the adxl363 handler, activity threshold, time active threshold, and detection mode. adxl363 handler (ADI_ADXL363_HANDLE) is the variable that holds all the metadata for adxl363, this is unique in every call of adi_adxl363_Open function.
The function RegisterAccess is a static function and only callable to adi_adxl363.c file.
The ADXL363_REG_READ is a macro that uses the RegisterAccess function.
The pDevice is adxl363 handler that is define in every function that uses the ADXL363 Macro.
I don't think that you can use that ADXL363_REG_READ Macro directly without problems. May I ask what is the motivation for you to write directly to the registers of the adxl363 ?
If you really need to write directly, you may use the SPI library directly to configure the adxl363. But I think all the needed functions are already on the adxl363 library.