cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 UART using interrupt transmitts by byte or data elements array?

ManhPham
Associate III

Hello everyone,

I sent the data by UART with command:

uint16_t Size[8];

HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)

Question: Size on this command is 16 bytes or Size is 8 data elements of array?

21 REPLIES 21

I know he doesn't, but that is what the uint16_t feature of this function is for.

It's to allow you to provide 9 data bits for the 9-bit mode.

So if you want to test that this feature of this function is working, that's what you need to look for.

Not sure why you keep saying 9 data bits? We're passing 16 data bits.

 

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.