跳转至

CFBD_UART_AsyncCallbacks

As C owns no virtual, we need to filled the function processor by users. More...

#include <uart.h>

Public Attributes

Name
void(*)(CFBD_UARTHandle *handle) on_send_complete
void(*)(CFBD_UARTHandle *handle) on_receive_complete
void(*)(CFBD_UARTHandle *handle, uint32_t error_code) on_error
void(*)(CFBD_UARTHandle *handle, uint32_t received_len) on_idle_line

Detailed Description

struct CFBD_UART_AsyncCallbacks;

As C owns no virtual, we need to filled the function processor by users.

Note: Thinking Callbacks shits, so place NULL, if we dont want to do anything

Public Attributes Documentation

variable on_send_complete

void(*)(CFBD_UARTHandle *handle) on_send_complete;

variable on_receive_complete

void(*)(CFBD_UARTHandle *handle) on_receive_complete;

variable on_error

void(*)(CFBD_UARTHandle *handle, uint32_t error_code) on_error;

variable on_idle_line

void(*)(CFBD_UARTHandle *handle, uint32_t received_len) on_idle_line;

Updated on 2026-02-03 at 13:21:55 +0000