NHAL Interface v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
Loading...
Searching...
No Matches
nhal_uart_basic.h
Go to the documentation of this file.
1
15#ifndef NHAL_UART_BASIC_H
16#define NHAL_UART_BASIC_H
17
18#include <stddef.h>
19#include <stdint.h>
20
21#include "nhal_common.h"
22#include "nhal_uart_types.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
34
41
49
57
66nhal_result_t nhal_uart_write(struct nhal_uart_context * ctx, const uint8_t *data, size_t len);
67
76nhal_result_t nhal_uart_read(struct nhal_uart_context * ctx, uint8_t *data, size_t len);
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* NHAL_UART_BASIC_H */
nhal_result_t
Unified HAL result type for all peripheral operations.
Definition nhal_common.h:22
nhal_result_t nhal_uart_write(struct nhal_uart_context *ctx, const uint8_t *data, size_t len)
Write data to UART (blocking)
nhal_result_t nhal_uart_set_config(struct nhal_uart_context *ctx, struct nhal_uart_config *cfg)
Set UART configuration.
nhal_result_t nhal_uart_deinit(struct nhal_uart_context *ctx)
Deinitialize UART context.
nhal_result_t nhal_uart_read(struct nhal_uart_context *ctx, uint8_t *data, size_t len)
Read data from UART (blocking)
nhal_result_t nhal_uart_init(struct nhal_uart_context *ctx)
Initialize UART context in basic mode.
nhal_result_t nhal_uart_get_config(struct nhal_uart_context *ctx, struct nhal_uart_config *cfg)
Get current UART configuration.
Defines common data types, enumerations, and structures for UART HAL operations.
Base UART context - always present, minimal footprint.