Ah sorry, I think I misunderstood. I thought there was a "secret repository" anywhere that had the missing example program.
If I have time, I will try to adapt the code example.
As a conclusion:
It is not currently possible to use automatic averaging in the LPC55S28 with a known adaption of the formula for calculation. That has to be done manually by testing.
Best regards,
Fabian