This has some code that you might be able to extract bits of information:

https://www.rapidonline.com/pdf/57-2324e.pdf

I'm not getting a lot of useful hits on google for a DSM040 driver.

Good luck! I've been down this road before researching an "uncommon" driver chip, lots of trial and error.

Robert