I'm trying to create a driver for the ADPD188GG, with the float mode configuration (ADPD188GGZ_PPG_Float_01.dcfg)
I used the HAL you shared on github).
So I made these calls to a initialize the AFE,(the example adpd188gg)
AdpdDrvDataReadyCallback(AdpdFifoCallBack); AdpdDrvSoftReset(); AdpdDrvOpenDriver(); LoadDefaultConfig(dcfg_org_188); VerifyDefaultConfig(dcfg_org_188); LoadDefaultConfig(floatmode_188); //the configuration if the ADPD188GGZ_PPG_Float_01.dcfg VerifyDefaultConfig(floatmode_188);
Did I get the same configuration I used in the applications wave tool?
How can I change the FIFO_THRESH to enable an interrupt every 128bytes (32 samples of 32-bits sum of the 4 channels).I tried changing the 0x06 register value but the interrupt is raises every 16bytes.
Why I still didn't receive any reply?
Here is the response I received from the driver development team on this.
The default FIFO threshold level is ‘1’. If user want to change the FIFO threshold level it can be done using “AdpdDrvSetParameter” method.
Before calling to “AdpdDrvSetOperationMode” method we need to call two other methods to change default setting of driver file.
Also, the FIFO threshold is a 6-bit value referring to number of "words" where 1 word is 2 bytes. So the maximum threshold that can be used is 126bytes.
Thank you for your response.
can you confirm the calls to load the ADPD188GGZ_PPG_Float_01.dcfg configuration?
LoadDefaultConfig(floatmode_188); //the configuration if the ADPD188GGZ_PPG_Float_01.dcfgVerifyDefaultConfig(floatmode_188);
These are not driver functions, just a part of the example code.
However, all they do is register writes and reads.
Hello I need to set the same configuration as the ADPD188GGZ_PPG_Float_01.dcfg to my driver.
How can I achieve that?