class documentation
Represents common PTP parameters with velocity and acceleration ratios.
Class Method | unpack |
Unpacks a bytes sequence into a tagPTPCommonParams object. |
Method | pack |
Packs the tagPTPCommonParams object into a bytes sequence. |
Class Variable | acceleration |
Undocumented |
Class Variable | velocity |
Undocumented |
Unpacks a bytes sequence into a tagPTPCommonParams object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 16 bytes (2 doubles). |
Returns | |
tagPTPCommonParams | A tagPTPCommonParams object. |
Raises | |
struct.error | If the input bytes are not the expected size (16 bytes). |
Packs the tagPTPCommonParams object into a bytes sequence.
Packs the velocityRatio and accelerationRatio (floats) into a byte string. Uses little-endian byte order.
Returns | |
bytes | A bytes object representing the packed data (16 bytes). |