43: error: invalid use of incomplete typedef 'uart_handle_t' {aka 'struct uart_handle'}
Hi all,
I am a new member to stm controllers.
i am using B-L072z-LRWAN1 & SUB IOT STACK.
While iam using wrapper class functions i am able to see the output of my code
uart_handle_t* uart_0;
uart_0 = uart_init(0,9600,0);
uart_enable(uart_0);
uart_send_byte(uart_0,0x07);
but while i am trying to send data using hal function i am facing this
error
error: invalid use of incomplete typedef 'uart_handle_t' {aka 'struct uart_handle'}
code
uart_handle_t* uart;
uart = uart_init(0,9600,0);
uart_enable(uart);
uint8_t data = 0x55;
uint8_t *pdata = &data;
HAL_UART_Transmit(&uart->handle, &data, 1, HAL_MAX_DELAY);
but please also have look at wraper class code
void uart_send_byte(uart_handle_t* uart, uint8_t data) {
HAL_UART_Transmit(&uart->handle, &data, 1, HAL_MAX_DELAY);
}
please help, thanks in advance
