pylab_ml.common.data.byte2word

byte2word(list8)[source]

Return a list with 16-bit data from a imput list with 8-bit data.

eg. byte2word([0x01, 0x02, 0x03, 0x04]) -> [0x0201, 0x0403]

Parameters:

list8 (list of 8-bit values)

Returns:

list16

Return type:

list of 16-bit values