Lines Matching refs:ESP_ERR_INVALID_ARG
201 …, "SPI Master cannot attach to bus. (Check CONFIG_SPI_FLASH_SHARE_SPI1_BUS)", ESP_ERR_INVALID_ARG); in spi_master_init_driver()
268 SPI_CHECK(is_valid_host(host_id), "invalid host_id", ESP_ERR_INVALID_ARG); in spi_master_deinit_driver()
309 SPI_CHECK(is_valid_host(host_id), "invalid host", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
320 … || GPIO_IS_VALID_OUTPUT_GPIO(dev_config->spics_io_num), "spics pin invalid", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
321 SPI_CHECK(dev_config->clock_speed_hz > 0, "invalid sclk speed", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
326 …nly support cs pretrans delay = 1 and without address_bits and command_bits", ESP_ERR_INVALID_ARG); in spi_bus_add_device()
431 SPI_CHECK(handle!=NULL, "invalid handle", ESP_ERR_INVALID_ARG); in spi_bus_remove_device()
676 SPI_CHECK(handle!=NULL, "invalid dev handle", ESP_ERR_INVALID_ARG); in check_trans_valid()
687 … <= 32, "SPI_TRANS_USE_RXDATA only available for rxdata transfer <= 32 bits", ESP_ERR_INVALID_ARG); in check_trans_valid()
688 … <= 32, "SPI_TRANS_USE_TXDATA only available for txdata transfer <= 32 bits", ESP_ERR_INVALID_ARG); in check_trans_valid()
689 …esc->length <= bus_attr->max_transfer_sz*8, "txdata transfer > host maximum", ESP_ERR_INVALID_ARG); in check_trans_valid()
690 …c->rxlength <= bus_attr->max_transfer_sz*8, "rxdata transfer > host maximum", ESP_ERR_INVALID_ARG); in check_trans_valid()
691 …>rxlength <= trans_desc->length, "rx length > tx length in full duplex mode", ESP_ERR_INVALID_ARG); in check_trans_valid()
694 … trans_desc->flags & SPI_TRANS_MODE_OCT), "SPI3 does not support octal mode", ESP_ERR_INVALID_ARG); in check_trans_valid()
695 …VICE_3WIRE)), "Incompatible when setting to both Octal mode and 3-wire-mode", ESP_ERR_INVALID_ARG); in check_trans_valid()
696 …duplex), "Incompatible when setting to both Octal mode and half duplex mode", ESP_ERR_INVALID_ARG); in check_trans_valid()
698 …3WIRE)), "Incompatible when setting to both multi-line mode and 3-wire-mode", ESP_ERR_INVALID_ARG); in check_trans_valid()
699 …x), "Incompatible when setting to both multi-line mode and half duplex mode", ESP_ERR_INVALID_ARG); in check_trans_valid()
701 …alf duplex mode does not support using DMA with both MOSI and MISO phases.", ESP_ERR_INVALID_ARG ); in check_trans_valid()
703 …lf duplex mode is not supported when both MOSI and MISO phases are enabled.", ESP_ERR_INVALID_ARG); in check_trans_valid()
706 …ould be NULL and SPI_TRANS_USE_TXDATA should be cleared to skip MOSI phase.", ESP_ERR_INVALID_ARG); in check_trans_valid()
709 …ould be NULL and SPI_TRANS_USE_RXDATA should be cleared to skip MISO phase.", ESP_ERR_INVALID_ARG); in check_trans_valid()
716 …nabled, "Dummy phase is not available when both data out and in are enabled", ESP_ERR_INVALID_ARG); in check_trans_valid()
798 return ESP_ERR_INVALID_ARG; in spi_device_queue_trans()
836 SPI_CHECK(handle!=NULL, "invalid dev handle", ESP_ERR_INVALID_ARG); in spi_device_get_trans_result()
872 SPI_CHECK(wait==portMAX_DELAY, "acquire finite time not supported now.", ESP_ERR_INVALID_ARG); in spi_device_acquire_bus()
930 …portMAX_DELAY, "currently timeout is not available for polling transactions", ESP_ERR_INVALID_ARG); in spi_device_polling_start()
942 ret = ESP_ERR_INVALID_ARG; in spi_device_polling_start()
965 SPI_CHECK(handle != NULL, "invalid dev handle", ESP_ERR_INVALID_ARG); in spi_device_polling_end()