CRCModel contains the necessary parameters for calculating the DRC algorithm
| 15 | |
| 16 | // CRCModel contains the necessary parameters for calculating the DRC algorithm |
| 17 | type CRCModel struct { |
| 18 | Poly uint8 |
| 19 | Init uint8 |
| 20 | RefIn bool |
| 21 | RefOut bool |
| 22 | XorOut uint8 |
| 23 | Name string |
| 24 | } |
| 25 | |
| 26 | // CRC8 calculates CRC8 checksum of the given data. |
| 27 | func CRC8(data []byte, model CRCModel) uint8 { |
nothing calls this directly
no outgoing calls
no test coverage detected