📄 onewirecontainer04.java
字号:
/*--------------------------------------------------------------------------- * Copyright (C) 1999,2000 Dallas Semiconductor Corporation, All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL DALLAS SEMICONDUCTOR BE LIABLE FOR ANY CLAIM, DAMAGES * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Except as contained in this notice, the name of Dallas Semiconductor * shall not be used except as stated in the Dallas Semiconductor * Branding Policy. *--------------------------------------------------------------------------- */package com.dalsemi.onewire.container;// importsimport com.dalsemi.onewire.OneWireException;import com.dalsemi.onewire.adapter.DSPortAdapter;import com.dalsemi.onewire.adapter.OneWireIOException;import com.dalsemi.onewire.utils.Bit;import com.dalsemi.onewire.utils.Convert;import java.util.Vector;import java.util.Enumeration;/** * <P> 1-Wire container for 512 byte memory iButton Plus Time, DS1994 and 1-Wire Chip, DS2404. * This container encapsulates the functionality of the iButton family * type <B>04</B> (hex)</P> * * <P> This iButton is primarily used as a read/write portable memory device with real-time-clock, * timer and experation features. </P> * * <H3> Features </H3> * <UL> * <LI> 4096 bits (512 bytes) of read/write nonvolatile memory * <LI> 256-bit (32-byte) scratchpad ensures integrity of data * transfer * <LI> Memory partitioned into 256-bit (32-byte) pages for * packetizing data * <LI> Data integrity assured with strict read/write * protocols * <LI> Contains real time clock/calendar in binary * format * <LI> Interval timer can automatically accumulate * time when power is applied * <LI> Programmable cycle counter can accumulate * the number of system power-on/off cycles * <LI> Programmable alarms can be set to generate * interrupts for interval timer, real time clock, * and/or cycle counter * <LI> Write protect feature provides tamper-proof * time data * <LI> Programmable expiration date that will limit * access to SRAM and timekeeping * <LI> Clock accuracy is better than
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -