示例#1
0
        public NtagI2C()
        {
            i2cCommand = new NTAG_I2C_Command();

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

        public BlockMemory(NTAG_I2C_Command cmdInstance)
        {
            init(16, cmdInstance);
        }
示例#5
0
 public Registers(NTAG_I2C_Command cmdInstance, BlockMemory memory)
 {
     i2cCommand = cmdInstance;
     blockMem   = memory;
 }