15#ifndef NHAL_UART_ASYNC_H
16#define NHAL_UART_ASYNC_H
28#if defined(NHAL_UART_ASYNC_SUPPORT)
89 const uint8_t *data,
size_t len
102 uint8_t *data,
size_t len
void(* nhal_async_complete_cb_t)(void *context)
nhal_result_t
Unified HAL result type for all peripheral operations.
nhal_result_t nhal_uart_disable_async_callback(struct nhal_uart_context *ctx)
Disable async completion callback.
nhal_result_t nhal_uart_write_async(struct nhal_uart_context *ctx, const uint8_t *data, size_t len)
Write data asynchronously.
nhal_result_t nhal_uart_set_async_callback(struct nhal_uart_context *ctx, nhal_async_complete_cb_t callback)
Set callback for async operation completion.
nhal_result_t nhal_uart_init_async(struct nhal_uart_context *ctx, const struct nhal_async_config *async_cfg)
Initialize UART context for async mode.
nhal_result_t nhal_uart_deinit_async(struct nhal_uart_context *ctx)
Deinitialize UART async mode.
nhal_result_t nhal_uart_read_async(struct nhal_uart_context *ctx, uint8_t *data, size_t len)
Read data asynchronously.
nhal_async_status_t nhal_uart_get_async_status(struct nhal_uart_context *ctx)
Get current async operation status.
Defines common data types, enumerations, and structures for UART HAL operations.
Base UART context - always present, minimal footprint.