Searched refs:g_transfer_lenth (Results 1 – 1 of 1) sorted by relevance
21 hi_u32 g_transfer_lenth = 0; variable157 if (g_transfer_lenth > BUF_LENGTH) { in app_demo_spi_slave_send_8bits()161 for (j = 0; j < g_transfer_lenth; j++) { in app_demo_spi_slave_send_8bits()166 …ret = hi_spi_slave_write(spi_id, g_spi_send_buf, g_transfer_lenth, 10000); /* time out 10000 ms */ in app_demo_spi_slave_send_8bits()190 while (index < g_transfer_lenth) { in app_demo_spi_slave_send_16bits()191 send_len = min(g_transfer_lenth - index, BUF_LENGTH_HALF); in app_demo_spi_slave_send_16bits()246 if (g_transfer_lenth > BUF_LENGTH) { in app_demo_spi_slave_receive_8bits()249 for (j = 0; j < g_transfer_lenth; j++) { in app_demo_spi_slave_receive_8bits()256 … ret = hi_spi_slave_read(spi_id, g_spi_rcv_buf, g_transfer_lenth, 10000); /* time out 10000 ms */ in app_demo_spi_slave_receive_8bits()257 if ((memcmp(g_spi_rcv_buf, cmp_buf, g_transfer_lenth) != 0) || (ret != HI_ERR_SUCCESS)) { in app_demo_spi_slave_receive_8bits()[all …]