STM32L0 HAL status bit or a flag read from registers
Hello, there is a bullet in the STM32L0 HAL that escape me. On page 38 of UM1749 it is said:
"When a status bit or a flag is read from registers, it is composed of shifted values depending on the number of read values and of their size. In this case, the returned status width is 32 bits. Example : STATUS = XX | (YY << 16) or STATUS = XX | (YY << 8) | (YY << 16) | (YY << 24)".
Can someone give me a function/macro that implements it so I can look at its implementation?
Does anyone know what case "In this case" refers to?
Does anyone know what XX and YY refer to?
If someone can give me a concrete example, I would greatly appreciate it.
