7#ifndef ZEPHYR_INCLUDE_DRIVERS_BBRAM_H
8#define ZEPHYR_INCLUDE_DRIVERS_BBRAM_H
80static inline int z_impl_bbram_check_invalid(
const struct device *dev)
103static inline int z_impl_bbram_check_standby_power(
const struct device *dev)
127static inline int z_impl_bbram_check_power(
const struct device *dev)
148static inline int z_impl_bbram_get_size(
const struct device *dev,
size_t *size)
172static inline int z_impl_bbram_read(
const struct device *dev,
size_t offset,
182 return api->
read(dev, offset, size,
data);
197static inline int z_impl_bbram_write(
const struct device *dev,
size_t offset,
207 return api->
write(dev, offset, size,
data);
226#include <syscalls/bbram.h>
int(* bbram_api_get_size)(const struct device *dev, size_t *size)
Definition: bbram.h:42
int bbram_emul_set_standby_power_state(const struct device *dev, bool failure)
int(* bbram_api_check_power)(const struct device *dev)
Definition: bbram.h:35
int(* bbram_api_read)(const struct device *dev, size_t offset, size_t size, uint8_t *data)
Definition: bbram.h:49
int(* bbram_api_write)(const struct device *dev, size_t offset, size_t size, const uint8_t *data)
Definition: bbram.h:57
int bbram_write(const struct device *dev, size_t offset, size_t size, const uint8_t *data)
int bbram_check_invalid(const struct device *dev)
Check if BBRAM is invalid.
int bbram_check_power(const struct device *dev)
Check for V CC1 power failure.
int bbram_check_standby_power(const struct device *dev)
Check for standby (Volt SBY) power failure.
int bbram_read(const struct device *dev, size_t offset, size_t size, uint8_t *data)
int bbram_get_size(const struct device *dev, size_t *size)
int bbram_emul_set_power_state(const struct device *dev, bool failure)
int bbram_emul_set_invalid(const struct device *dev, bool is_invalid)
int(* bbram_api_check_invalid)(const struct device *dev)
Definition: bbram.h:21
int(* bbram_api_check_standby_power)(const struct device *dev)
Definition: bbram.h:28
#define ENOTSUP
Definition: errno.h:115
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
bbram_api_get_size get_size
Definition: bbram.h:64
bbram_api_write write
Definition: bbram.h:66
bbram_api_read read
Definition: bbram.h:65
bbram_api_check_standby_power check_standby_power
Definition: bbram.h:62
bbram_api_check_invalid check_invalid
Definition: bbram.h:61
bbram_api_check_power check_power
Definition: bbram.h:63
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const void * api
Definition: device.h:373
static fdata_t data[2]
Definition: test_fifo_contexts.c:15