Although in the standard library, the DATA parameter in this function is 16-bit, it may not be able to send 16-bit data.
As you can see in the "stm32 Chinese Reference Manual", the number of bits of data to be sent is determined based on the data frame length of the defined structure.