Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mmio_multireg.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/device.h>

Data Structures

struct  foo_multireg_dev_data
 
struct  foo_multireg_config_info
 

Macros

#define DT_DRV_COMPAT   fakedriver_multireg
 
#define DEV_DATA(dev)   ((struct foo_multireg_dev_data *)((dev)->data))
 
#define DEV_CFG(dev)   ((struct foo_multireg_config_info *)((dev)->config))
 

Functions

int foo_multireg_init (const struct device *dev)
 
 ZTEST (device, test_mmio_multireg)
 Test DEVICE_MMIO_NAMED_* macros.
 

Variables

struct foo_multireg_dev_data foo_multireg_data
 
const struct foo_multireg_config_info foo_multireg_config
 

Macro Definition Documentation

◆ DEV_CFG

#define DEV_CFG (   dev)    ((struct foo_multireg_config_info *)((dev)->config))

◆ DEV_DATA

#define DEV_DATA (   dev)    ((struct foo_multireg_dev_data *)((dev)->data))

◆ DT_DRV_COMPAT

#define DT_DRV_COMPAT   fakedriver_multireg

Function Documentation

◆ foo_multireg_init()

int foo_multireg_init ( const struct device dev)

Variable Documentation

◆ foo_multireg_config

const struct foo_multireg_config_info foo_multireg_config
Initial value:
= {
}
#define DEVICE_MMIO_NAMED_ROM_INIT_BY_NAME(name, node_id)
Initialize a named DEVICE_MMIO_NAMED_ROM member using a named DT reg property.
Definition device_mmio.h:504
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:3604

◆ foo_multireg_data

struct foo_multireg_dev_data foo_multireg_data