Lines Matching refs:buf
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()
397 buf[1] = (uint8_t) (addr >> 8); in EE_writeBlock()
398 buf[2] = (uint8_t) addr; in EE_writeBlock()
401 EE_SPIwrite(buf, 0, 3); in EE_writeBlock()
433 uint8_t buf[3]; in EE_readBlock() local
435 buf[0] = EE_CMD_READ; in EE_readBlock()
436 buf[1] = (uint8_t) (addr >> 8); in EE_readBlock()
437 buf[2] = (uint8_t) addr; in EE_readBlock()
440 EE_SPIwrite(buf, 0, 3); in EE_readBlock()
469 uint8_t buf[16]; in EE_verifyBlock() local
472 buf[0] = EE_CMD_READ; in EE_verifyBlock()
473 buf[1] = (uint8_t) (addr >> 8); in EE_verifyBlock()
474 buf[2] = (uint8_t) addr; in EE_verifyBlock()
477 EE_SPIwrite(buf, 0, 3); in EE_verifyBlock()
482 EE_SPIwrite(0, buf, 16); in EE_verifyBlock()
483 for(i=0; i<16; i++) if(buf[i] != data[i]) equal = 0; in EE_verifyBlock()
489 EE_SPIwrite(0, buf, len); in EE_verifyBlock()
490 for(i=0; i<len; i++) if(buf[i] != data[i]) equal = 0; in EE_verifyBlock()
506 uint8_t buf[2]; in EE_writeStatus() local
511 buf[0] = EE_CMD_WRSR; in EE_writeStatus()
512 buf[1] = data; in EE_writeStatus()
513 EE_SPIwrite(buf, 0, 2); in EE_writeStatus()