public NtagI2C() { i2cCommand = new NTAG_I2C_Command(); block = new BlockMemory(i2cCommand); reg = new Registers(i2cCommand, block); address = new I2CAddress(block); }
private void init(int bytesInABlock, NTAG_I2C_Command cmdInstance) { bytesInBlock = bytesInABlock; i2cCommand = cmdInstance; }
public BlockMemory(int bytesInABlock, NTAG_I2C_Command cmdInstance) { init(bytesInABlock, cmdInstance); }
public int bytesInBlock; /**< It indicates the number of bytes contained in a block. */ public BlockMemory(NTAG_I2C_Command cmdInstance) { init(16, cmdInstance); }
public Registers(NTAG_I2C_Command cmdInstance, BlockMemory memory) { i2cCommand = cmdInstance; blockMem = memory; }