Module: MIFARE::PlusSL0

Defined in:
lib/mifare/plus_sl0.rb

Instance Method Summary collapse

Instance Method Details

#commit_persoObject


7
8
9
# File 'lib/mifare/plus_sl0.rb', line 7

def commit_perso
  transceive(cmd: CMD_COMMIT_PERSO)
end

#write_perso(block_addr, data) ⇒ Object


3
4
5
# File 'lib/mifare/plus_sl0.rb', line 3

def write_perso(block_addr, data)
  transceive(cmd: CMD_WRITE_PERSO, data: [block_addr, *data])
end