Changing device config in runtime #61406
-
Hi, Example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you are not using the values from devicetree, you can just use plain i2c functions (without https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/drivers/spi.h#L284-L315 You can pass your spi_config to your spi device how to operate. |
Beta Was this translation helpful? Give feedback.
If you are not using the values from devicetree, you can just use plain i2c functions (without
_dt
suffix).For
spi_write_dt()
, there isspi_write()
, which takesdev
,config
, andtx_bufs
.struct spi_config
, orspi_cs_control
within it, is what you need to check.https://github.com/zephyrproject-rtos/zephyr/blob/main/include/zephyr/drivers/spi.h#L284-L315
You can pass your spi_config to your spi device how to operate.