Lines Matching +full:dual +full:- +full:flash

4  * SPDX-License-Identifier: Apache-2.0
30 * bits[15:8] = bytes number of clocks with data lines tri-stated
87 * SPI clocks based on single, dual, or quad mode.
88 * mode = 1(full-duplex), 2(dual), 4(quad)
89 * full-duplex: 8 clocks per byte
90 * dual: 4 clocks per byte
113 return -EINVAL; in spi_flash_address_format()
117 dest[i] = (uint8_t)((spi_addr >> ((addrsz - (i + 1U)) * 8U)) & 0xffU); in spi_flash_address_format()
210 * - Find spi device
211 * - Read flash jedec id
248 * - write enable
249 * - erase data in flash device
250 * - read register1 and wait for erase operation completed
279 /* read SPI flash status register1 to check whether erase operation completed */ in ZTEST_USER()
289 * @brief Write data into flash using spi api
291 * - flash write enable
292 * - write data into flash using spi api
327 zassert_true(ret == 0, "Read SPI flash STATUS opcode 0x%02x error: %d", in test_spi_single_write()
333 * @brief Read data from flash using spi single mode
335 * - read data using spi single mode
336 * - check read buffer data whether correct
337 * @note SPI flash fast instructions require a certain number of SPI clocks
338 * to be generated with I/O lines tri-stated after the address has been
339 * transmitted. The purpose is allow SPI flash time to move get data ready
343 * For full-duplex one byte is 8 clocks, dual one byte is 4 clocks, and for
356 * bits[15:8] = number of SPI clocks with I/O lines tri-stated after in ZTEST_USER()
405 * @brief Read data from flash using spi dual mode
407 * - read data using spi dual mode
408 * - check read buffer data whether correct
423 /* read data using spi dual mode */ in ZTEST_USER()
452 /* send opcode, address, and tri-state clocks using single mode */ in ZTEST_USER()
456 /* get read data using dual mode */ in ZTEST_USER()
470 * @brief Write data into flash using spi quad mode
472 * - check and make sure spi quad mode is enabled
473 * - write data using spi quad mode
486 zassert_true(ret == 0, "SPI read flash STATUS2 failure: error %d", ret); in test_spi_quad_write()
544 /* poll busy bit in flash status1 register */ in test_spi_quad_write()
548 zassert_true(ret == 0, "Read flash STATUS1 register error %d", ret); in test_spi_quad_write()
553 * @brief Read data from flash using spi quad mode
555 * - read data using spi quad mode
556 * - check read buffer data whether correct
570 * Transmit opcode, address, and tri-state clocks using full-duplex mode in ZTEST_USER()
572 * Next, read data using dual configuration. in ZTEST_USER()
654 /* Test assumes flash test regions is in erased state */