encode method

int encode()

encode bits to one byte as specified in ISO15693-3

Implementation

int encode() {
  var result = 0;
  if (dualSubCarriers) {
    result |= 0x01;
  }
  if (highDataRate) {
    result |= 0x02;
  }
  if (inventory) {
    result |= 0x04;
  }
  if (protocolExtension) {
    result |= 0x08;
  }
  if (select) {
    result |= 0x10;
  }
  if (address) {
    result |= 0x20;
  }
  if (option) {
    result |= 0x40;
  }
  if (commandSpecificBit8) {
    result |= 0x80;
  }
  return result;
}