Small functions to use in order to controll a 74HC595 with a stm32f407Discovery