Atlas® Digital Amplifier Complete Technical Reference
121
6
ReadBuffer16
CDh
Syntax
ReadBuffer16
bufferID
Motor Types
Arguments
Name
Type
Range
bufferID
unsigned 16 bits
0
to
3
Returned data
Type
Range
data
signed 16 bits
–2
15
to
2
15
–1
Packet
Structure
Description
ReadBuffer16
returns the 16-bit contents of the location pointed to by the read buffer index in the
specified buffer. After the contents have been read, the read index is incremented by 1. If the result
is equal to the buffer length (set by
SetBufferLength
), the index is reset to zero (0).
Restrictions
see
Set/GetBufferStart
Set/GetBufferLength
DC Brush
Brushless DC
Microstepping
ReadBuffer
checksum
CD
h
15
8 7
0
First data word
write
0
bufferID
15
5 4
0
data word
read
data
(high-order part)
15
0