Hi @ABran.4 ,
Have a look at our example on Github, LSM6DSM FIFO works as LSM6DSL one so you can use it as starting point.
Let me know if you have any other questions, otherwhise if this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be helpful for Community users to find this solution faster.
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.