LIS3DH DWM1004c read/transmit accels?

I am using a custom DWM1004c, but I can not quite figure out how to get the accelerations from the LIS3DH through the I2C connection between it and the STM32. I see some functions in port_platform.c such as i2c_slave_read for the accelerometer. Has anyone written some codes that I can reference to read the accelerometer data through UART, or even better: to send the accelerations through the DW1000 spi to be transmitted? Any info, tips, or suggestions would be appreciated about how to code this functionality. Thank you!