📄 chipdef.xml.txt
字号:
<PRODUCT> attributes:
KEYNAME="toshiba" (Keyname used by other XML files.)
[PREFIX="S1D"] NAME="13700" [SUFFIX=" [Toshiba]"] (Together makes up the official name.)
DESC="LCD/Digital Video Controller" (Chip description.)
[VARIANTOF="13700"] (Name of another project to use as parent.)
<REGISTER> attributes:
KEYNAME="keyname" (No more than 16 characters in length. One dash can be used to indicate the place to wrap before the ninth character.)
NAME="Full Official Name"
[DESC="A one-liner register description goes here."]
REG="1234" [REGEND="13FE" REGSTEP="4"]
BITWIDTH="16" (Number of bits this register contains: 8,16,32.)
[DEFAULT="0000"] (Default power-up value for this register, if not specified, it will be zero.)
[FAKEREG="y"] (Not a real register, it's a fake HAL register used as initialization events.)
[ACCESS="ro"] ("ro","wo")
[RESERVED="all"] (Product code: "all","13700","toshiba","sony".)
[PRODUCT="13700"]
<FEATURE> attributes:
KEYNAME="keyname"|"reserved" (PREFERABLY 8 OR LESS CHARACTERS! but can be up to 16 characters in length.)
(NOTE: Use KEYNAME="reserved" if we have zero info on the reserved bitfield -- in which case NAME,TYPE,RESERVED do not need to be specified.)
[NAME="Full Official Name"] (This attribute is optional for LSB/ISB/MSB features.)
[DESC="A one-liner feature description goes here."] (Decribe in context to the feature, not the bitfield. This attribute is optional for LSB/ISB/MSB features.)
[UNIT=" bytes"] (Prefix with a SPACE if you don't want to touch value.)
TYPE="numb" [MIN="1C"] [MAX="FF"] [STEP="8"] [OP1="+1" [OP2="*2"]] [RADIX="hex"] (OPs can also be "-2", "/4".)
(or) TYPE="addr" [MIN="1C"] [MAX="FF"] [STEP="8"] [OP1="+1" [OP2="*2"]] [OFFSETOF="sys|base|disp"] (Same as "numb" but assumed hex radix of 8 digits. ABSADDR is used to distinguish between absolute physical address, relative to base, or relative to display memory.)
(or) TYPE="freq" [MIN=... (Same as params and functions as "numb", but meant for frequencies, ie. 25.175 MHz.)
(or) TYPE="text"
(or) TYPE="list" (Must make use of <FEATUREVALUE> children.)
(or) TYPE="bool" [INVERTED="y"] (When INVERTED, 0=Enabled and 1=Disabled.)
REG="1234" MASK="01C0" [REGEND="13FE" REGSTEP="4"] (REG is optional if NEEDSCODE is present.)
(or) REG="span" ("keynameMSB"&MSBmask<<(ISBmaskwidth+LSBmaskwidth) +
"keynameISB"&ISBmask<<LSBmaskwidth +
"keynameLSB"&LSBmask)
[NEEDCODE="y"] (If requires special programming.)
[ACCESS="ro"] ("ro","wo")
[OVERLAP="y"] (True if this field overlaps/re-uses bits from another field for a different purpose.)
[REDRAWPATTERN="y"] (True if this field will affect a "show pattern".)
[RESERVED="all"] (Product code: "all","13700","toshiba","sony".)
[PRODUCT="13700"]
<FEATUREVALUE> attributes (used for TYPE="list"):
INDEX="0" [TOINDEX="2"] (In "hex"; TOVALUE is used only to indicate a range.)
VALUE="FIFO full"
(or) READVALUE="FIFO full" WRITEVALUE="Clear status" (Used for Flag fields where you can write to a status bit to clear it.)
[RESERVED="all"] (Product code: "all","13700","toshiba","sony".)
[PRODUCT="13700"]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -