Access Accelerometer in a data Field (Edge 530)

Hi,

I am a newbie here and I would like to start programming a few thing. I have already read a lot, but still there are some questions left, so I am trying my luck here.

What I am trying to do: I would like to have a DataField which reads the sensor data of the build in accelerometer in my Garmin Edge 530 and simply displays those values.

In further steps I would also like to write those values into the .fit file. If it is possible to access the accelerometer in 25Hz, I would like to create an average value and a standard deviation for each second.

First question: Is it possible to access the accelerometer data and display them in a data field? I have read a few things that this is only possible in a device app, but this is not what I want.

Second question: If this is possible, can I access the accelerometer data in 25Hz? Or is it only possible in a background process, which can only be run each 5 minutes and 30s duration.

Thanks in advance. There will be some follow-up questions, I am sure.