BMI 160 ISR

Hello I have working with BMi160 sensor for a couple of days now. I have succesfully been able to use the Bosch IMU to record and display the accleration data.
I next wanted to set a interrupt that would trigger after significant motion (greater than 1g in the x-direction lets say) has been detected.
I first created a function to configure the interrupt. The code is displayed below (additionally a screenshot of this intitiliazation function is attached).
I am having trouble writing the interrupt service routine however.I first only want the ISR to do something simple such as display a message like "you have exceeded 1g" and then clear.
Does anyone have advice on how to write the ISR and bind it to the interrupt structure?

elandau1260 Nikosant03 BSTRobin 

1 reply