BBRAM emulator backend API .
More...
BBRAM emulator backend API .
◆ emul_bbram_backend_get_data()
#include <zephyr/drivers/emul_bbram.h>
Get the expected data in the bbram region.
- Parameters
-
target | Pointer to the emulator instance to operate on |
offset | Offset within the memory to get |
count | Number of bytes to read |
data | The 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
-
target | Pointer to the emulator instance to operate on |
offset | Offset within the memory to set |
count | Number of bytes to write |
data | The 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.