Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Word Granular Access Memory APIs

Functions

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.
void * memcpy_from_word_granular_access (void *d, const void *s, size_t n)
 Memcpy buffer out of word granular access memory.

Detailed Description

Function Documentation

◆ memcpy_from_word_granular_access()

void * memcpy_from_word_granular_access ( void * d,
const void * s,
size_t n )

#include <zephyr/sys/word_granular_access.h>

Memcpy buffer out of word granular access memory.

Memcpy used to copy buffer out of word granular access memory.

Note that if the start of the buffer being written to or read from is not word-aligned, or the length is not a multiple of the word size, bytes outside of the requested range may need to be read from or written to. The data in these bytes will remain unchanged.

Parameters
dDestination buffer
sSource buffer
nNumber of bytes to copy
Returns
the provided destination buffer pointer, or NULL on error

◆ memcpy_to_word_granular_access()

void * memcpy_to_word_granular_access ( void * d,
const void * s,
size_t n )

#include <zephyr/sys/word_granular_access.h>

Memcpy buffer into word granular access memory.

Memcpy used to copy buffer into word granular access memory.

Note that if the start of the buffer being written to or read from is not word-aligned, or the length is not a multiple of the word size, bytes outside of the requested range may need to be read from or written to. The data in these bytes will remain unchanged.

Parameters
dDestination buffer
sSource buffer
nNumber of bytes to copy
Returns
the provided destination buffer pointer, or NULL on error

◆ memset_word_granular_access()

void * memset_word_granular_access ( void * buf,
int c,
size_t n )

#include <zephyr/sys/word_granular_access.h>

Memset buffer in word granular access memory.

Memset buffer in word granular access memory.

Note that if the start of the buffer being written to is not word-aligned, or the length is not a multiple of the word size, bytes outside of the requested range may need to be written to. The data in these bytes will remain unchanged.

Parameters
bufBuffer to memset
cValue to set
nNumber of bytes to set
Returns
the provided buffer pointer, or NULL on error