p1_parser v0.2.1 P1.Checksum
contains the CRC16 Checksum
It is a CRC16 value calculated over the preceding characters in the data message (from “/” to “!” using the polynomial: x16+x15+x2+1). CRC16 uses no XOR in, no XOR out and is computed with least significant bit first. The value is represented as 4 hexadecimal characters (MSB first)
iex> P1.parse("!B0B0")
{:ok, [%P1.Checksum{value: "B0B0"}]}