Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
bad_driver.c File Reference
#include <zephyr.h>
#include <device.h>

Data Structures

struct  bad_driver_api
 

Macros

#define BAD_DRIVER_NAME   "bad_driver"
 

Typedefs

typedef int(* bad_api_configure_t) (const struct device *dev, uint32_t dev_config)
 

Functions

static int bad_configure (const struct device *dev, uint32_t config)
 
int bad_driver_init (const struct device *dev)
 

Variables

static const struct bad_driver_api funcs
 

Macro Definition Documentation

◆ BAD_DRIVER_NAME

#define BAD_DRIVER_NAME   "bad_driver"

Typedef Documentation

◆ bad_api_configure_t

typedef int(* bad_api_configure_t) (const struct device *dev, uint32_t dev_config)

Function Documentation

◆ bad_configure()

static int bad_configure ( const struct device dev,
uint32_t  config 
)
static

◆ bad_driver_init()

int bad_driver_init ( const struct device dev)

Variable Documentation

◆ funcs

const struct bad_driver_api funcs
static
Initial value:
= {
.configure = bad_configure,
}
static int bad_configure(const struct device *dev, uint32_t config)
Definition: bad_driver.c:21