2024-09-23 12:27 AM
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?
Solved! Go to Solution.
2024-09-25 02:14 AM - edited 2024-09-25 02:16 AM
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.
2024-09-25 02:49 AM
Not sure why you keep saying 9 data bits? We're passing 16 data bits.