Configuring DCMI / DMA to truncate 2 least significant bits of 10-bit pixel stream
I currently use the STM32H7 MCU with CMOS monochrome imaging sensor connected via 10-bit parallel DCMI interface. However, when wired this way to the MCU the grayscale pixels are stored as 16-bit unsigned integers in the memory.
Is there any way to configure the DCMI peripheral (or the DMA transferring the pixel values to the SRAM memory) to truncate the 2 least significant bits of the values (so they can be stored as 8-bit unsigned integers)? I didn't find any solution or suggestions in the documentation of the peripherals.
Thanks for any help.
EDIT: The question is about the 2 least significant bits. The DCMI_D[1:0] are the least significant bits I need to remove and keep only DCMI_D[9:2]. The DMA/DCMI would have to be able to perform logical shift right by 2 bits to remove them and to get the desired 8-bit result, which is the point of this question.
