it might be simpler to just check the 1k-page reference manual. most of those bits are in CCER but there should be a section on the right bits for all of that.I know all the registers to use, I get bit arithmetics, but what is the syntax?
beats out going through the HAL functions.