Lines Matching full:cmdlen
188 @param cmdlen The size of the command in bytes
196 bool PN532::sendCommandCheckAck(uint8_t *cmd, uint8_t cmdlen,
205 writeCommand(cmd, cmdlen);
1505 @param cmdlen Command length in bytes
1508 void PN532::writeCommand(uint8_t* cmd, uint8_t cmdlen)
1512 cmdlen++;
1517 uint8_t buf[cmdlen + 8];
1518 memset(buf, 0, cmdlen + 8);
1529 buf[offset++] = cmdlen;
1530 buf[offset++] = ~cmdlen + 1;
1535 for (uint8_t i=0; i<cmdlen - 1; i++)
1551 if (m_i2c.write(buf, cmdlen + 8 - 1) != mraa::SUCCESS)
1560 cerr << __FUNCTION__ << ": cmdlen + 8 = " << cmdlen + 8
1563 PrintHex(buf, cmdlen + 8);