- ESP_OK: on success - ESP_ERR_INVALID_ARG: invalid argument given - ESP_ERR_INVALID_STATE: function called in invalid state, may be some resources are already in use - ESP_ERR_NOT_FOUND if there is no available DMA channel - ESP_ERR_NO_MEM: memory allocation failed - or other return value from `esp_intr_alloc`
Examples
spi_slave_hd_init() is referenced by 2 libraries and example projects: