On the STM32, controlling a hardware peripheral means reading from and writing to specific memory addresses. Those addresses do not hold ordinary variables: they are wired directly into hardware circuits. Writing a value to the right address changes the state of the hardware.
These special addresses are called peripheral registers. Every peripheral (GPIO, timers, UART, I2C) has a set of registers that control its behavior. For example, the Output Data Register (ODR) holds whether each output pin is HIGH (3.3 V, indicated by a 1 in the corresponding bit) or LOW (0 V, indicated by a 0): bit 5 controls PA5, bit 3 controls PA3, and so on. For Port A it is at address 0x5000 0014. When your code writes a value to that address, the GPIO hardware immediately updates each output pin whose corresponding bit changed.
In C, you never type a raw address like 0x5000 0014. Instead, the device header file (stm32c031xx.h) defines a pointer named GPIOA that points to a structure of registers at that base address. So GPIOA->ODR means “the ODR register inside the GPIOA structure,” which compiles to exactly the right memory write. If your programming so far has been in Python, Appendix A covers the C this chapter uses.
Before you can use any register in a peripheral, you must enable that peripheral’s clock. By default, most peripherals are powered down to save energy: their internal clock is not yet enabled, so writes to their registers are silently ignored. Enabling the clock takes one register write: setting the appropriate bit in the Reset and Clock Control (RCC) subsystem. It is the first thing every initialization function does, and forgetting it is one of the most common sources of bugs in embedded code.