Zephyr API 3.6.99
Loading...
Searching...
No Matches
shared_irq.h File Reference
#include <zephyr/device.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, unsigned int irq_number)
 
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.
 
static int shared_irq_enable (const struct device *dev, const struct device *isr_dev)
 Enable ISR for device.
 
static int shared_irq_disable (const struct device *dev, const struct device *isr_dev)
 Disable ISR for device.
 

Typedef Documentation

◆ isr_t

typedef int(* isr_t) (const struct device *dev, unsigned int irq_number)

◆ 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.