The MAX5322 is an dual 12bit SPI digital to analog converter. One can use this DAC over the GPIO pins of the Raspberry Pi with Wiring. Wiring for the Raspberry Pi was written by Gordon Henderson.
In the terminal:
$ sudo apt-get install wiringpi
For the Raspberry Pi 4 one needs to update the WiringPi to version 2.52:
$ cd /tmp $ wget https://project-downloads.drogon.net/wiringpi-latest.deb $ sudo dpkg -i wiringpi-latest.deb
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/