UART DMA
I am using an STM32L0XX on a Nucleo-64. I am Trying to communicate with a sensor using SDI12 protocol (1200baud 8-bit even parity).
To communicate properly you have to implement a question and answer session. To start with a 2-byte question response is a 3-byte answer. The second question is a 3-byte question with a 32-byte answer. The third question is a 4-byte question with a 16-byte answer.
My question is how can one "redefine" the UART DMA statement that you start off with? say HAL_UART_DMA (huart2, (uint8_t)rx_buffer, 3) to accomodate the differing answers?
Graham
Durban
