Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
shared_irq.h File Reference
#include <autoconf.h>

Go to the source code of this file.

Data Structures

struct  shared_irq_driver_api
 

Typedefs

typedef int(* isr_t) (const struct device *dev)
 
typedef int(* shared_irq_register_t) (const struct device *dev, isr_t isr_func, const struct device *isr_dev)
 
typedef int(* shared_irq_enable_t) (const struct device *dev, const struct device *isr_dev)
 
typedef int(* shared_irq_disable_t) (const struct device *dev, const struct device *isr_dev)
 

Functions

static int shared_irq_isr_register (const struct device *dev, isr_t isr_func, const struct device *isr_dev)
 Register a device ISR. More...
 
static int shared_irq_enable (const struct device *dev, const struct device *isr_dev)
 Enable ISR for device. More...
 
static int shared_irq_disable (const struct device *dev, const struct device *isr_dev)
 Disable ISR for device. More...
 

Typedef Documentation

◆ isr_t

typedef int(* isr_t) (const struct device *dev)

◆ shared_irq_disable_t

typedef int(* shared_irq_disable_t) (const struct device *dev, const struct device *isr_dev)

◆ shared_irq_enable_t

typedef int(* shared_irq_enable_t) (const struct device *dev, const struct device *isr_dev)

◆ shared_irq_register_t

typedef int(* shared_irq_register_t) (const struct device *dev, isr_t isr_func, const struct device *isr_dev)

Function Documentation

◆ shared_irq_disable()

static int shared_irq_disable ( const struct device dev,
const struct device isr_dev 
)
inlinestatic

Disable ISR for device.

Parameters
devPointer to device structure for SHARED_IRQ driver instance.
isr_devPointer to the device that will service the interrupt.

◆ shared_irq_enable()

static int shared_irq_enable ( const struct device dev,
const struct device isr_dev 
)
inlinestatic

Enable ISR for device.

Parameters
devPointer to device structure for SHARED_IRQ driver instance.
isr_devPointer to the device that will service the interrupt.

◆ shared_irq_isr_register()

static int shared_irq_isr_register ( const struct device dev,
isr_t  isr_func,
const struct device isr_dev 
)
inlinestatic

Register a device ISR.

Parameters
devPointer to device structure for SHARED_IRQ driver instance.
isr_funcPointer to the ISR function for the device.
isr_devPointer to the device that will service the interrupt.