def makeBaudRatePacket(ID, rate):
if rate not in [<NUM_LIT:0>, <NUM_LIT:1>, <NUM_LIT:2>, <NUM_LIT:3>]:<EOL><INDENT>raise Exception('<STR_LIT>'.format(rate))<EOL><DEDENT>pkt = makeWritePacket(ID, xl320.XL320_BAUD_RATE, [rate])<EOL>return pkt<EOL>
Set baud rate of servo.

in: rate - 0: 9600, 1:57600, 2:115200, 3:1Mbps
out: write packet