/** @brief Read a block of the memory of the NTag I2C. * @param i2cAddress is the address of the device to be found on the i2c bus * @param address is the block address on the Ntag I2C memory * * @return the result of the transaction with the read data included */ public I2CData read(byte I2Caddress, byte address) { I2CData read; read = i2cCommand.readBlock(I2Caddress, address); return(read); }
/** @brief Read all configuration registers from the Ntag I2C. * * @param i2cAddress is the address of the device to be found on the i2c bus * @param ntagType indicates if the NTag I2C is 1k or 2k version * * @return the response of the transaction. */ public I2CData readAllConfigRegister(byte i2cAddress, TagType ntagType) { int memoryAddress = (int)(new NTagMemory(ntagType)).configMemoryBegin; var readBlock = i2cCommand.readBlock(i2cAddress, (byte)memoryAddress); return(readBlock); }