Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I hope this is good at extracting register maps from datasheets. That would save a lot of tedious driver work.


Hi Berti,

We are building a tool that can extract register map from a data sheet. You may take a look at the beta version of the tool at http://exportrm.soliton.ai/. The tool supports register map table formats similar to ones found on page 14 in https://www.nxp.com/docs/en/data-sheet/PCA9685.pdf datasheet. The table format that you have mentioned in the example is not supported at this time. We would be adding it soon. If you have any questions or would like to share any feedback, feel free to reach out to us at the email id provided on tool web page.


Hi berti! I wrote the library and the blog post. Can you point me to some PDFs which have these register maps?


Try these: Page 233 http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8351-M...

Page 45 https://ae-bst.resource.bosch.com/media/_tech/media/datashee...

Is the library able to handle cells that span multiple columns?


I assumed that you're talking about page 33 in the first PDF, since it has only 225 pages. I extracted Figure 6-23 from it and the table on page 45 in the second PDF. Here's a gist: https://gist.github.com/vinayak-mehta/cf30a5560f1b8ab4c0b25e...

Yes, Camelot takes care of cells spanning multiple columns! You can check out the Advanced Usage section for explanation on the keyword arguments I used in the gist! https://camelot-py.readthedocs.io/en/master/user/advanced.ht...


Note: I had to decrypt the second PDF using qpdf since the library I'm using to split a PDF into pages (PyPDF2) doesn't support the encryption type of that PDF.

Did this: qpdf --decrypt input.pdf output.pdf


Sorry! Page 203 in the first PDF has a full table if registers, and that bits in them. Thanks very much for the library, and even more for taking the time to create that notebook. The captured data looks excellent. I'll hax some code to translate this data to a header file suitable for writing a driver.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: