Esempio n. 1
0
        public NtagI2C()
        {
            i2cCommand = new NTAG_I2C_Command();

            block   = new BlockMemory(i2cCommand);
            reg     = new Registers(i2cCommand, block);
            address = new I2CAddress(block);
        }
Esempio n. 2
0
 private void init(int bytesInABlock, NTAG_I2C_Command cmdInstance)
 {
     bytesInBlock = bytesInABlock;
     i2cCommand   = cmdInstance;
 }
Esempio n. 3
0
 public BlockMemory(int bytesInABlock, NTAG_I2C_Command cmdInstance)
 {
     init(bytesInABlock, cmdInstance);
 }
Esempio n. 4
0
        public int bytesInBlock;             /**< It indicates the number of bytes contained in a block. */

        public BlockMemory(NTAG_I2C_Command cmdInstance)
        {
            init(16, cmdInstance);
        }
Esempio n. 5
0
 public Registers(NTAG_I2C_Command cmdInstance, BlockMemory memory)
 {
     i2cCommand = cmdInstance;
     blockMem   = memory;
 }