NHAL Interface
v0.5.0
Hardware Abstraction Layer Interface for Embedded Systems
Loading...
Searching...
No Matches
include
nhal_i2c_transfer.h
Go to the documentation of this file.
1
9
#ifndef NHAL_I2C_TRANSFER_H
10
#define NHAL_I2C_TRANSFER_H
11
12
#include <stdint.h>
13
#include <stddef.h>
14
#include <stdbool.h>
15
16
#include "
nhal_common.h
"
17
#include "
nhal_i2c_types.h
"
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
31
nhal_result_t
nhal_i2c_master_perform_transfer
(
32
struct
nhal_i2c_context
* ctx,
33
nhal_i2c_transfer_op_t
*ops,
34
size_t
num_ops
35
);
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#endif
// NHAL_I2C_TRANSFER_H_
nhal_common.h
nhal_result_t
nhal_result_t
Unified HAL result type for all peripheral operations.
Definition
nhal_common.h:22
nhal_i2c_master_perform_transfer
nhal_result_t nhal_i2c_master_perform_transfer(struct nhal_i2c_context *ctx, nhal_i2c_transfer_op_t *ops, size_t num_ops)
Perform complex I2C transfer with multiple operations.
nhal_i2c_types.h
Defines common types and structures for the I2C Hardware Abstraction Layer (HAL).
nhal_i2c_context
Base I2C context - always present, minimal footprint.
Definition
nhal_i2c_types.h:27
nhal_i2c_transfer_op_t
Structure describing a single I2C message segment within a transaction.
Definition
nhal_i2c_types.h:52
Generated by
1.9.8