The APA102 protocol is something of a Kabuki Dance, but not as bad as the WS2812B (IMO). Check out:
If you want to see how they are controlled by code, check out the source code of Adafruit DotStar library. It’s much simpler that trying to work your way through the FastLED library: