Casio CTK6000 User Manual
Page 36
Bulk Parameter Set Transfer
The value of this field specifies the size of the parameter set memory
image stored in the img field. Data length indicates the number of bytes of data included within a packet.
When this value is zero, it means the data itself does not exist.
20.3.13
data : Parameter Data
Individual Parameter Transfer
Format:
index0
0dddddddB (0eeeeeeeB) (0fffffffB) (0gggggggB) (0hhhhhhhB)
index1
0dddddddB (0eeeeeeeB) (0fffffffB) (0gggggggB) (0hhhhhhhB)
index2
0dddddddB (0eeeeeeeB) (0fffffffB) (0gggggggB) (0hhhhhhhB)
:
:
indexN
0dddddddB (0eeeeeeeB) (0fffffffB) (0gggggggB) (0hhhhhhhB)
Parameter data indicates the parameter value. Data is repeatedly placed in an array of the size equiv-
alent to len+1. For the structure of one data item, the length depends on the data bit width(Parameter
List Size), as shown below.
Size
Number of Data
1 - 7
1
8 - 14
2
15 - 21
3
22 - 28
4
29 - 32
5
Each block of data is packed from the lowest order byte first. In the case of multiple-byte data, the
lowest weighted bit is the least significant digit of the first data byte, and the highest weighted bit is
the most significant digit of the final data byte. The following shows an example of how data would be
divided for transfer in the case of 32-bit data.
7
6
5
4
3
2
1
0
data0:
0
[bit06]
[bit05]
[bit04]
[bit03]
[bit02]
[bit01]
[bit00]
data1:
0
[bit13]
[bit12]
[bit11]
[bit10]
[bit09]
[bit08]
[bit07]
data2:
0
[bit20]
[bit19]
[bit18]
[bit17]
[bit16]
[bit15]
[bit14]
data3:
0
[bit27]
[bit26]
[bit25]
[bit24]
[bit23]
[bit22]
[bit21]
data4:
0
0
0
0
[bit31]
[bit30]
[bit29]
[bit28]
SBS (Start of Bulk Dump Session)
Format:
0bbbbbbbB
The relationship between the data value and error 0bbbbbbB is defined as shown below.
• Data = 0 : Start OBR Session
Start session to request data using one-way protocol.
• Data = 1 : Start OBS Session
Start session to send data using one-way protocol.
• Data = 2 : Start HBR Session
Start session to request data using handshake protocol. If a device that receives this message
accepts the session, it needs to return ACK.
36