- memcpy should have been "memset"
- forgot to add function declaration into header file.
int i;
UsbCommand c = {CMD_DOWNLOADED_SIM_SAMPLES_125K, {0, 0, 0}};
- memcpy(c.d.asBytes, cmd.arg[2], 48);
+ memset(c.d.asBytes, cmd.arg[2], 48);
for(i = 0; i < 22; i++) {
c.arg[0] = i*48;
// test crc 16.
uint32_t CRC16_DNP(uint8_t *buff, size_t size);
-
+uint32_t CRC16_CCITT(uint8_t *buff, size_t size);
/* Static initialization of a crc structure */
#define CRC_INITIALIZER(_order, _polynom, _initial_value, _final_xor) { \