I thought there is no crc function in pios. So i made my own. Perhaps i was wrong. I have a look in pios.crc.