
<apps>

  <app name="geldkarte">
  
    <formats>

      <format name="blog_25">
        <ELEM name="status" type="byte" >
          <DESCR>
            7 6 5 4 3 2 1 0 Meaning
            x x x           Command: bits 3-1 of APDU INS
            0 0 0            LADEN
            0 0 1            ENTLADEN
            0 1 0            ABBUCHEN
            0 1 1            RUECKBUCHEN
            1 x x            RFU
                  x x x     Command variant (bits 7-5 of APDU P1)
                        x   Secure messaging
                        0    without secure messaging
                        1    with secure messaging
                          x written file at command end
                          0  first file written
                          1  last file written
            Init value is 0x71.
          </DESCR>
        </ELEM>
        <ELEM name="bseq" type="word" />
        <ELEM name="lseq" type="word" />
        <ELEM name="value" type="bcd" size="3" />
        <ELEM name="merchantId" type="bytes" size="10" />
        <ELEM name="hseq" type="dword" />
        <ELEM name="sseq" type="dword" />
        <ELEM name="loaded" type="bcd" size="3" />
        <ELEM name="date" type="bcd" size="4">
          <DESCR>JJMMTT</DESCR>
        </ELEM>
        <ELEM name="time" type="bcd" size="3">
          <DESCR>HHMMSS</DESCR>
        </ELEM>
        <ELEM name="KID" type="byte" minnum="0" />
      </format>
      
      <format name="blog_24">
        <ELEM name="status" type="byte" >
          <DESCR>
            7 6 5 4 3 2 1 0 Meaning
            x x x           Command: bits 3-1 of APDU INS
            0 0 0            LADEN
            0 0 1            ENTLADEN
            0 1 0            ABBUCHEN
            0 1 1            RUECKBUCHEN
            1 x x            RFU
                  x x x     Command variant (bits 7-5 of APDU P1)
                        x   Secure messaging
                        0    without secure messaging
                        1    with secure messaging
                          x written file at command end
                          0  first file written
                          1  last file written
            Init value is 0x71.
          </DESCR>
        </ELEM>
        <ELEM name="bseq" type="word" />
        <ELEM name="lseq" type="word" />
        <ELEM name="value" type="bcd" size="3" />
        <ELEM name="merchantId" type="bytes" size="10" />
        <ELEM name="hseq" type="dword" />
        <ELEM name="sseq" type="dword" />
        <ELEM name="loaded" type="bcd" size="3" />
        <ELEM name="date" type="bcd" size="3">
          <DESCR>JJMMTT</DESCR>
        </ELEM>
        <ELEM name="time" type="bcd" size="3">
          <DESCR>HHMMSS</DESCR>
        </ELEM>
        <ELEM name="KID" type="byte" minnum="0" />
      </format>
      
      
      <format name="llog_21">
        <ELEM name="status" type="byte" >
          <DESCR>
            7 6 5 4 3 2 1 0 Meaning
            x x x           Command: bits 3-1 of APDU INS
            0 0 0            LADEN
            0 0 1            ENTLADEN
            0 1 0            ABBUCHEN
            0 1 1            RUECKBUCHEN
            1 x x            RFU
                  x x x     Command variant (bits 7-5 of APDU P1)
                        x   Secure messaging
                        0    without secure messaging
                        1    with secure messaging
                          x written file at command end
                          0  first file written
                          1  last file written
            Init value is 0x13.
          </DESCR>
        </ELEM>
        <ELEM name="lseq" type="word" />
        <ELEM name="retryCount" type="byte" />
        <ELEM name="value" type="bcd" size="3" />
        <ELEM name="loaded" type="bcd" size="3" />
        <ELEM name="centerId" type="bcd" size="3" />
        <ELEM name="terminalId" type="bcd" size="8" />
        <ELEM name="traceId" type="bcd" size="3" />
        <ELEM name="date" type="bcd" size="4">
          <DESCR>JJJJMMTT</DESCR>
        </ELEM>
        <ELEM name="time" type="bcd" size="3">
          <DESCR>HHMMSS</DESCR>
        </ELEM>
        <ELEM name="bseq" type="word" />
      </format>
      
    </formats>
  
  
    <files>
      <ef name="EF_ID" sid="0x0003"
          type="record" mode="linear" 
          size="0" minnum="1" maxnum="1">
        <record>
          <ELEM name="branchKey" type="byte" bcd="1"  />
          <ELEM name="shortBankCode" type="bcd" size="3">
            <DESCR>
              First byte (BCD) shows the group:
                21: oeffentlich-rechtliche und private banken
                22: Privat- und Geschaeftsbanken
                25: Sparkassen
                26, 29: Genossenschaftsbanken
            </DESCR>
          </ELEM>
          <ELEM name="cardNumber" type="bcd" size="5" />
          <ELEM name="checksum" type="byte" bcd="1" />
          <ELEM name="validUntil" type="bytes" size="2">
            <DESCR> YYMM (BSD)</DESCR>
          </ELEM>
          <ELEM name="validSince" type="bytes" size="3" >
            <DESCR> YYMMDD (BCD)</DESCR>
          </ELEM>
          <ELEM name="country" type="word" bcd="1" />
          <ELEM name="currency" type="ascii" 
                size="3" filler="32" condense="1"  />
          <ELEM name="factor" type="byte" >
            <DESCR>
              Binary coded:
                01: 10^-2
                02: 10^-1
                04: 10^0
                08: 10^1
                10: 10^2
                20: 10^3
            </DESCR>
          </ELEM>
          <ELEM name="chipversion" type="byte" minnum="0" />
        </record>
      </ef>

      <df name="DF_BOERSE" sid="0xa200" >
        <files>

        <ef name="EF_BETRAG" sid="0x0104"
            type="record" mode="linear" 
            size="0" minnum="1" maxnum="1">
          <record>
            <ELEM name="loaded" type="bcd" size="3" />
            <ELEM name="maxload" type="bcd" size="3" />
            <ELEM name="maxtrans" type="bcd" size="3" />
          </record>
        </ef>

        <ef name="EF_BOERSE" sid="0x0105"
            type="record" mode="linear" 
            size="0" minnum="1" maxnum="1">
          <record>
            <ELEM name="cardType" type="byte" >
              <DESCR>
                0x00: Account-based card with PIN
                0xff: Value card without PIN
              </DESCR>
            </ELEM>
            <ELEM name="bankCode" type="bcd" size="4" />
            <ELEM name="accountId" type="bcd" size="5" />
            <ELEM type="bytes" size="17" />
          </record>
        </ef>

        <ef name="EF_LSEQ" sid="0x0106"
            type="record" mode="linear" 
            size="0" minnum="1" maxnum="1">
          <record>
            <ELEM name="seq" type="word" />
          </record>
        </ef>

        <ef name="EF_BSEQ" sid="0x0107"
            type="record" mode="linear" 
            size="0" minnum="1" maxnum="1">
          <record>
            <ELEM name="seq" type="word" />
          </record>
        </ef>

        <ef name="EF_LLOG" sid="0x0108"
            type="record" mode="cyclic" 
            size="0" minnum="1" maxnum="3">
          <record>
            <ELEM name="status" type="byte" >
              <DESCR>
                7 6 5 4 3 2 1 0 Meaning
                x x x           Command: bits 3-1 of APDU INS
                0 0 0            LADEN
                0 0 1            ENTLADEN
                0 1 0            ABBUCHEN
                0 1 1            RUECKBUCHEN
                1 x x            RFU
                      x x x     Command variant (bits 7-5 of APDU P1)
                            x   Secure messaging
                            0    without secure messaging
                            1    with secure messaging
                              x written file at command end
                              0  first file written
                              1  last file written
                Init value is 0x13.
              </DESCR>
            </ELEM>
            <ELEM name="lseq" type="word" />
            <ELEM name="retryCount" type="byte" />
            <ELEM name="value" type="bcd" size="3" />
            <ELEM name="loaded" type="bcd" size="3" />
            <ELEM name="centerId" type="bcd" size="3" />
            <ELEM name="terminalId" type="bcd" size="8" />
            <ELEM name="traceId" type="bcd" size="3" />
            <ELEM name="date" type="bcd" size="4">
              <DESCR>JJJJ MM TT</DESCR>
            </ELEM>
            <ELEM name="time" type="bcd" size="3">
              <DESCR>HHMMSS</DESCR>
            </ELEM>
            <ELEM name="bseq" type="word" />
          </record>
        </ef>

        <ef name="EF_BLOG" sid="0x0109"
            type="record" mode="cyclic" 
            size="0" minnum="1" maxnum="15">
          <record>
            <ELEM name="status" type="byte" >
              <DESCR>
                7 6 5 4 3 2 1 0 Meaning
                x x x           Command: bits 3-1 of APDU INS
                0 0 0            LADEN
                0 0 1            ENTLADEN
                0 1 0            ABBUCHEN
                0 1 1            RUECKBUCHEN
                1 x x            RFU
                      x x x     Command variant (bits 7-5 of APDU P1)
                            x   Secure messaging
                            0    without secure messaging
                            1    with secure messaging
                              x written file at command end
                              0  first file written
                              1  last file written
                Init value is 0x71.
              </DESCR>
            </ELEM>
            <ELEM name="bseq" type="word" />
            <ELEM name="lseq" type="word" />
            <ELEM name="value" type="bcd" size="3" />
            <ELEM name="merchantId" type="bytes" size="10" />
            <ELEM name="hseq" type="dword" />
            <ELEM name="sseq" type="dword" />
            <ELEM name="loaded" type="bcd" size="3" />
            <ELEM name="date" type="bcd" size="4">
              <DESCR>JJJJMMTT</DESCR>
            </ELEM>
            <ELEM name="time" type="bcd" size="3">
              <DESCR>HHMMSS</DESCR>
            </ELEM>
            <ELEM name="KID" type="byte" minnum="0" />
          </record>
        </ef>


        </files>
      </df>
      
    </files>
  </app>
</apps>



