anchor.diff:  -module(pmod_dio).
   -behaviour(gen_server).
  -
  --include_lib("stdlib/include/assert.hrl").
   
   % FIXME: remove!
   -export([crc5/1]).
  
positive.code: encode_request(Reg, Value) ->
      reg(encode, Reg, Value).
  
  decode_response(Op, Addr, Reg, Len, Response) ->
      <<_:2, Data:(Len + 9)/bitstring, CRC:5>> = Response,
      ?assertEqual(crc5(Data), CRC),
      <<
          SHTVDD:1,
          AbvVDD:1,
  
negative.code:         GLOBLF:1,
          Result:Len/bitstring,
          Addr:2,
          ThrErr:1,
          _CRC:5
      >> = Response,
      maps:merge(
          #{
              'SHTVDD' => boolean(SHTVDD),
  