![PMD Atlas Compact Complete Technical Reference Download Page 126](http://html1.mh-extra.com/html/pmd/atlas-compact/atlas-compact_complete-technical-reference_1569420126.webp)
Atlas® Digital Amplifier Complete Technical Reference
126
6
SetBufferLength
C2
h
GetBufferLength
C3
h
Syntax
SetBufferLength
bufferID length
GetBufferLength
bufferID
Motor Types
Arguments
Name
Type
Range
bufferID
unsigned 16 bits
0
to
3
length
unsigned 32 bits
1
to
2
30
– 1
Packet
Structure
Description
SetBufferLength
sets the
length
, in numbers of 16-bit elements, of the buffer in the memory block
identified by
bufferID
.
Note
: The
SetBufferLength
command resets the buffers read and write indexes to 0.
The
GetBufferLength
command returns the
length
of the specified buffer.
Restrictions
The buffer length plus the buffer start address cannot exceed the memory size of the product. See
Section 2.1, “Operational Specifications”
for more information. The memory indicated depends on the
buffer start. It may be necessary to decrease buffer length before changing buffer start.
see
Set/GetBufferReadIndex
,
Set/GetBufferStart
DC Brush
Brushless DC
Microstepping
SetBufferLength
checksum
C2
h
15
8 7
0
First data word
write
0
bufferID
15
2 1
0
Second data word
write
length
(high-order part)
31
16
Third data word
write
length
(low-order part)
15
0
GetBufferLength
checksum
C3
h
15
8 7
0
First data word
write
0
bufferID
15
2 1
0
Second data word
read
length
(high-order part)
31
16
Third data word
read
length
(low-order part)
15
0