In the example MOSI is used as CLK to produce the required number of cycles/pulses for HX710B. It enables a straightforward use of DMA just by calling HAL_SPI ...