Function robotiq_driver::crc_utils::compute_crc

Function Documentation

uint16_t robotiq_driver::crc_utils::compute_crc(const std::vector<uint8_t> &data)

Compute the CRC for the CRC-16 MODBUS protocol.

Parameters:

data – The data to compute the CRC for.

Returns:

A 16-bits CRC.