How to send 10-bit message using HAL_SPI_TRANSMIT
I am trying to interface with an AD8400 single channel digital potentiometer. It communicates over SPI and requires 2 address bits and 8 data bits to set its resistance. I am having trouble figuring out how to send a 10-bit message.
I have set the data size for the SPI channel to 10-bits in CubeMX and I can verify that that is the case in SPI initialisation structs within my code.
However, whenever I use HAL_SPI_TRANSMIT I get an error if the second parameter is not a uint8_t. I have checked the documentation for my microcontroller (the STM32F303CBT6) and I believe it should support transmissions of any data size between 4-16 bits.


