Driver support for SPI DAC
The SPI DAC driver utilizes the SPI driver API and introduces a semaphore for multi-threading reentrancy. Only the classical single channel SPI DAC is currently supported. Two's complement data format is supported. Enable CONFIG_DAC_SPI_SC
before using the SPI DAC driver. The generic data format and corresponding device tree node properties are described as below
COMMAND | VALUE | SHIFT |
---|---|---|
command_nbits | nbits | shift |
- AD5641 (command_nbits:2 nbits:14 shift:0)
- DAC8550 (command_nbits:2 nbits:16 shift:0)
由 Victor Chen 编辑于