Astra MCU SDK Peripheral Driver Library
 
Loading...
Searching...
No Matches
uart_get_config_t Struct Reference

UART receive configuration structure. More...

#include <uart.h>

Data Fields

char * get_buff
 
uint32_t num
 
uart_cb_t callback
 
void * user_data
 

Detailed Description

UART receive configuration structure.

This structure contains configuration parameters for initiating a UART receive operation. It includes the buffer to store received data, the expected number of bytes, a callback function to be invoked upon completion, and user-defined data to be passed to the callback.

Field Documentation

◆ get_buff

char* uart_get_config_t::get_buff

Pointer to the receive buffer where incoming data is stored

◆ num

uint32_t uart_get_config_t::num

Number of elements to receive

◆ callback

uart_cb_t uart_get_config_t::callback

Pointer to the callback function invoked after reception

◆ user_data

void* uart_get_config_t::user_data

Pointer to store the user data passed to the callback function