I will cover the STM32 ADC multiple channels but without the use of DMA which will let you use any channel of ADC at any point in the code.
dac
DAC in STM32
DAC in STM32 accepts data in three integer formats: 8-bit (the LS Byte of the data hold register), 12-bit right aligned..