Casio WK3800 Instruction Manual - Page 35

index length / data length, Parameter Set Number

Page 35 highlights

17.2.8 8...ilen/dlen : index length / data length Format: 0iidddddB This field indicates the size of the "11...index" field and the "12...data" field. iiB (Binary) = index length "index length (iiB)" indicates the index field length, which is always the following, regardless of the "act" (Action) value. iiB......index byte size - 1 "act" Value 00, 01 02, 04 03, 05 07 Message Type IPC, IPR BDS, HDS BDR, HDR Control iiB index byte size - 1 (Example: When 4 bytes = 3 2 = 10B (Packet Number = 3 bytes) 0 = 00B (This field is empty, but its length is indicated as 0.) 0 = 00B (The length of this filed is 1 byte.) dddddB (Binary) = data length "data length (dddddB)" indicates the size of each data unit (parameter) in the "data" field. The data length differs according to Message Type, as shown below. "act" Value Message Type dddddB 00 IPC data bit size - 1 (If 1 bit = 00000B; if 32 bits = 11111B) 02, 04 BDS, HDS data bit size - 1 = 01111B (Since transfer is in 16-bit data, this data length is always used.) 01, 03, 05, 07 IPR, BDR, HDR or Control 0 17.2.9 9....ps : Parameter Set Number Format: 0nnnnnnnB (LSB) 0mmmmmmmB (MSB) This field is a 2-byte (LSB, MSB) value indicating the number of the parameter set (00mmmmmmmnnnnnnnB (Binary)) being transferred. 35

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

35
17.2.8
8...
ilen/dlen
: index length / data length
This field indicates the size of the "11...
index
" field and the "12...
data
" field.
iiB (Binary) = index length
"index length (iiB)" indicates the
index
field length, which is always the following, regardless of the "
act
" (Action)
value.
iiB
......
index
byte size - 1
dddddB (Binary) = data length
"data length (dddddB)" indicates the size of each data unit (parameter) in the "data" field.
The data length differs according to Message Type, as shown below.
17.2.9
9
....
ps :
Parameter Set Number
This field is a 2-byte (LSB, MSB) value indicating the number of the parameter set (00mmmmmmmnnnnnnnB
(Binary)) being transferred.
Format: 0iidddddB
"
act
" Value
Message Type
iiB
00, 01
IPC, IPR
index byte size - 1
(Example: When 4 bytes = 3
02, 04
BDS, HDS
2 = 10B
(Packet Number = 3 bytes)
03, 05
BDR, HDR
0 = 00B
(This field is empty, but its length is indicated as 0.)
07
Control
0 = 00B
(The length of this filed is 1 byte.)
"
act
" Value
Message Type
dddddB
00
IPC
data bit size - 1
(If 1 bit = 00000B; if 32 bits = 11111B)
02, 04
BDS, HDS
data bit size - 1 = 01111B
(Since transfer is in 16-bit data, this data length
is always used.)
01, 03, 05, 07
IPR, BDR, HDR or Control
0
Format:
0nnnnnnnB (LSB)
0mmmmmmmB (MSB)