def set_bit_order(self, order):
if order == MSBFIRST:<EOL><INDENT>self._device.lsbmode(False)<EOL><DEDENT>elif order == LSBFIRST:<EOL><INDENT>self._device.lsbmode(True)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
Set order of bits to be read/written over serial lines.  Should be
        either MSBFIRST for most-significant first, or LSBFIRST for
        least-signifcant first.