Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
BBRAM emulator backend API

BBRAM emulator backend API. More...

Functions

static int emul_bbram_backend_set_data (const struct emul *target, size_t offset, size_t count, const uint8_t *data)
 Set the expected data in the bbram region.
 
static int emul_bbram_backend_get_data (const struct emul *target, size_t offset, size_t count, uint8_t *data)
 Get the expected data in the bbram region.
 

Detailed Description

BBRAM emulator backend API.

Function Documentation

◆ emul_bbram_backend_get_data()

static int emul_bbram_backend_get_data ( const struct emul target,
size_t  offset,
size_t  count,
uint8_t data 
)
inlinestatic

#include <zephyr/drivers/emul_bbram.h>

Get the expected data in the bbram region.

Parameters
targetPointer to the emulator instance to operate on
offsetOffset within the memory to get
countNumber of bytes to read
dataThe data buffer to hold the result
Returns
0 if successful
-ENOTSUP if no backend API or if the get_data function isn't implemented
-ERANGE if the address is out of range.

◆ emul_bbram_backend_set_data()

static int emul_bbram_backend_set_data ( const struct emul target,
size_t  offset,
size_t  count,
const uint8_t data 
)
inlinestatic

#include <zephyr/drivers/emul_bbram.h>

Set the expected data in the bbram region.

Parameters
targetPointer to the emulator instance to operate on
offsetOffset within the memory to set
countNumber of bytes to write
dataThe data to write
Returns
0 if successful
-ENOTSUP if no backend API or if the set_data function isn't implemented
-ERANGE if the destination address is out of range.