spi_bus_lock_register_dev() function
Attach a device onto an SPI bus lock. The returning handle is used to perform following requests for the attached device.
Arguments
lock
SPI bus lock to attach
out_dev_handle
Output handle corresponding to the device
Return value
- ESP_ERR_NOT_SUPPORTED: if there's no hardware resources for new devices. - ESP_ERR_NO_MEM: if memory exhausted - ESP_OK: if success