Sensor Oversampling on Nicla Sense ME

Hello All,

I'm new to working with microcontrollers so please bear with me.

I am try to increase the oversampling rate on the sensors included on the Nicla Sense ME. When I browse through the specific documentation for example of the BMP390, I find some information on changing the oversampling rate which makes it appear like I have to go into the register to do it. I understand I would need to use pointers to access the registers but would any one have some simple code that would show that on the Sense ME. I've seen other code for adafruit boards that directly allows to change the oversampling rate.

I've tried changing the sample rate in the code below, but when I do the get configuration it seems to be stuck at 16 Hz max. I'm not sure how this sample rate is tied to the oversampling rate. Even so, if this were tied to the I still want to mess with the IIR filter so I still need to understand how to access the registers.

temp.begin(sample, latency);

I also tried accessing the bosch development desktop but it just gives me an error everytime. If I could get that to work I'm not sure if there is a way in there to easily change the register values.

Thanks for all your help, because so far I've been stumped.