Lines Matching defs:txBuf
124 uint8_t txBuf[2], rxBuf[2];
129 memset(txBuf, 0, sizeof(txBuf));
132 txBuf[0] = CMD_READ_STATUS;
133 cmd.tx_cmd = txBuf;
152 uint8_t txBuf[8], rxBuf[8];
159 memset(txBuf, 0, sizeof(txBuf));
162 txBuf[0] = CMD_READ_IDENT;
163 cmd.tx_cmd = &txBuf;
193 uint8_t txBuf[1], rxBuf[1];
198 memset(txBuf, 0, sizeof(txBuf));
201 txBuf[0] = writable ? CMD_WRITE_ENABLE : CMD_WRITE_DISABLE;
202 cmd.tx_cmd = txBuf;
212 uint8_t txBuf[4], rxBuf[4];
220 memset(txBuf, 0, sizeof(txBuf));
223 txBuf[0] = ecmd;
224 cmd.tx_cmd = txBuf;
228 txBuf[1] = ((sector >> 16) & 0xff);
229 txBuf[2] = ((sector >> 8) & 0xff);
230 txBuf[3] = (sector & 0xff);
238 uint8_t txBuf[8], rxBuf[8];
282 txBuf[0] = CMD_PAGE_PROGRAM;
283 txBuf[1] = ((write_offset >> 16) & 0xff);
284 txBuf[2] = ((write_offset >> 8) & 0xff);
285 txBuf[3] = (write_offset & 0xff);
289 cmd.tx_cmd = txBuf;
319 uint8_t txBuf[8], rxBuf[8];
336 txBuf[0] = CMD_FAST_READ;
340 txBuf[1] = ((offset >> 16) & 0xff);
341 txBuf[2] = ((offset >> 8) & 0xff);
342 txBuf[3] = (offset & 0xff);
344 txBuf[4] = 0;
346 cmd.tx_cmd = txBuf;