SGP_WORD_LEN
size_t size = word_count * (SGP_WORD_LEN + SGP_CRC8_LEN);
for (i = 0; i < size; i += SGP_WORD_LEN + SGP_CRC8_LEN) {
crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN,
if (crc != data_buf[i + SGP_WORD_LEN]) {
size_t size = word_count * (SGP_WORD_LEN + SGP_CRC8_LEN);
#define SGP_CMD_LEN SGP_WORD_LEN
#define SGP_CMD_MAX_BUF_SIZE (SGP_CMD_LEN + 2 * SGP_WORD_LEN)