Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
word_granular_access.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_SYS_WORD_GRANULAR_H_
8#define ZEPHYR_INCLUDE_SYS_WORD_GRANULAR_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <zephyr/sys/util.h>
15
24
28
29#ifndef __mem_word_t_defined
30#define __mem_word_t_defined
31
40typedef uintptr_t __attribute__((may_alias)) mem_word_t;
41
42#define Z_MEM_WORD_T_WIDTH __INTPTR_WIDTH__
43#endif /* __mem_word_t_defined */
44
45BUILD_ASSERT(Z_MEM_WORD_T_WIDTH == 32, "Unsupported word width for access to "
46 "word granular access memory");
47
51
66void *memset_word_granular_access(void *buf, int c, size_t n);
67
83void *memcpy_to_word_granular_access(void *d, const void *s, size_t n);
84
100void *memcpy_from_word_granular_access(void *d, const void *s, size_t n);
101
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* ZEPHYR_INCLUDE_SYS_WORD_GRANULAR_H_ */
void * memcpy_from_word_granular_access(void *d, const void *s, size_t n)
Memcpy buffer out of word granular access memory.
void * memset_word_granular_access(void *buf, int c, size_t n)
Memset buffer in word granular access memory.
void * memcpy_to_word_granular_access(void *d, const void *s, size_t n)
Memcpy buffer into word granular access memory.
__UINTPTR_TYPE__ uintptr_t
Definition stdint.h:105
Misc utilities.