Searched refs:buf (Results 1 – 4 of 4) sorted by relevance
/canopennode-2.7.6/stack/PIC32/ |
D | eeprom.c | 317 uint8_t buf = EE_CMD_WREN; in EE_writeEnable() local 320 EE_SPIwrite(&buf, 0, 1); in EE_writeEnable() 334 uint8_t buf[4]; in EE_writeByteNoWait() local 338 buf[0] = EE_CMD_WRITE; in EE_writeByteNoWait() 339 buf[1] = (uint8_t) (addr >> 8); in EE_writeByteNoWait() 340 buf[2] = (uint8_t) addr; in EE_writeByteNoWait() 341 buf[3] = data; in EE_writeByteNoWait() 344 EE_SPIwrite(buf, 0, 4); in EE_writeByteNoWait() 391 uint8_t buf[3]; in EE_writeBlock() local 396 buf[0] = EE_CMD_WRITE; in EE_writeBlock() [all …]
|
/canopennode-2.7.6/stack/socketCAN/ |
D | CO_OD_storage.c | 145 void *buf = NULL; in CO_OD_storage_saveSecure() local 150 buf = malloc(odSize + 4); in CO_OD_storage_saveSecure() 151 if(buf != NULL) { in CO_OD_storage_saveSecure() 154 cnt = fread(buf, 1, odSize, fp); in CO_OD_storage_saveSecure() 155 CRC2 = crc16_ccitt((unsigned char*)buf, odSize, 0); in CO_OD_storage_saveSecure() 157 cnt += fread(buf, 1, 4, fp); in CO_OD_storage_saveSecure() 160 free(buf); in CO_OD_storage_saveSecure() 163 if(buf == NULL || fp == NULL || cnt != (odSize + 2) || CRC != CRC2) { in CO_OD_storage_saveSecure() 231 void *buf = NULL; in CO_OD_storage_init() local 247 buf = malloc(odStor->odSize); in CO_OD_storage_init() [all …]
|
/canopennode-2.7.6/stack/ |
D | CO_Emergency.c | 155 em->bufEnd = em->buf + (CO_EM_INTERNAL_BUFFER_SIZE * 8); in CO_EM_init() 156 em->bufWritePtr = em->buf; in CO_EM_init() 157 em->bufReadPtr = em->buf; in CO_EM_init() 296 em->bufReadPtr = em->buf; in CO_EM_process() 384 if(em->bufWritePtr == em->bufEnd) em->bufWritePtr = em->buf; in CO_errorReport() 443 if(em->bufWritePtr == em->bufEnd) em->bufWritePtr = em->buf; in CO_errorReset()
|
D | CO_Emergency.h | 259 uint8_t buf[CO_EM_INTERNAL_BUFFER_SIZE * 8]; member
|