The library describes a transaction and reads flags. Everything between that and the two wires is the peripheral, and Figure 10.4.3 is the chip’s own drawing of it.
Figure10.4.3.The I2C peripheral, from RM0490 Figure 211. The registers along the bottom are what software touches; everything above them runs on its own. Data control holds the shift register that turns a byte into eight bits on SDA and back; clock control generates SCL from the I2CCLK input and the timing register, and also contains the slave-clock-stretching logic; the analog and digital noise filters sit between the pins and the rest. The block on the left is wake-up on address match, the feature that lets a device asleep in a low-power mode be woken by its own address arriving on the bus. We are always the controller and never asleep, so we never use it, and address recognition proper would be I2C_OAR1 and the ADDR flag rather than this block. The SMBus blocks belong to a related protocol this course does not use either.
The noise filters are why a short spike on SDA does not become a bit: an analog filter is on by default and suppresses pulses up to 50 ns, which is what the I2C specification requires. And the shift register is the reason I2C_TXDR is one byte wide rather than a buffer: the peripheral holds exactly one byte in hand while it clocks the previous one out, which is what TXIS is telling you. Neither is anything we configure.