Zephyr API Documentation 4.2.0-rc3
A Scalable Open Source RTOS
 4.2.0-rc3

Renesas ELC driver public APIs. More...

Data Structures

struct  renesas_elc_dt_spec
 Container for Renesas ELC information specified in devicetree. More...

Macros

#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_NAME(node_id, name)
 Get the device pointer from the "renesas-elcs" property by element name.
#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_IDX(node_id, idx)
 Get the device pointer from the "renesas-elcs" property by index.
#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_NAME_OR_NULL(node_id, name)
 Get the device pointer from the "renesas-elcs" property by element name, or return NULL if the property does not exist.
#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_IDX_OR_NULL(node_id, idx)
 Get the device pointer from the "renesas-elcs" property by index, or return NULL if the property does not exist.
#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_NAME(inst, name)
 Get the device pointer from the "renesas-elcs" property by element name for a DT_DRV_COMPAT instance.
#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_IDX(inst, idx)
 Get the device pointer from the "renesas-elcs" property by index for a DT_DRV_COMPAT instance.
#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_NAME_OR_NULL(inst, name)
 Get the device pointer from the "renesas-elcs" property by element name for a DT_DRV_COMPAT instance, or return NULL if the property does not exist.
#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_IDX_OR_NULL(inst, idx)
 Get the device pointer from the "renesas-elcs" property by index for a DT_DRV_COMPAT instance, or return NULL if the property does not exist.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME(node_id, name)
 Get the peripheral cell value from the "renesas-elcs" property by element name.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX(node_id, idx)
 Get the peripheral cell value from the "renesas-elcs" property by index.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME_OR(node_id, name, default_value)
 Get the peripheral cell value from the "renesas-elcs" property by element name, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX_OR(node_id, idx, default_value)
 Get the peripheral cell value from the "renesas-elcs" property by index, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_NAME(inst, name)
 Get the peripheral cell value by element name for a DT_DRV_COMPAT instance.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_IDX(inst, idx)
 Get the peripheral cell value by index for a DT_DRV_COMPAT instance.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_NAME_OR(inst, name, default_value)
 Get the peripheral cell value by element name for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_IDX_OR(inst, idx, default_value)
 Get the peripheral cell value by index for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME(node_id, name)
 Get the event cell value from the "renesas-elcs" property by element name.
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX(node_id, idx)
 Get the event cell value from the "renesas-elcs" property by index.
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME_OR(node_id, name, default_value)
 Get the event cell value from the "renesas-elcs" property by element name, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX_OR(node_id, idx, default_value)
 Get the event cell value from the "renesas-elcs" property by index, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_NAME(inst, name)
 Get the event cell value by element name for a DT_DRV_COMPAT instance.
#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_IDX(inst, idx)
 Get the event cell value by index for a DT_DRV_COMPAT instance.
#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_NAME_OR(inst, name, default_value)
 Get the event cell value by element name for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.
#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_IDX_OR(inst, idx, default_value)
 Get the event cell value by index for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.

Functions

int renesas_elc_software_event_generate (const struct device *dev, uint32_t event)
 Generate a software event in the Event Link Controller.
int renesas_elc_link_set (const struct device *dev, uint32_t peripheral, uint32_t event)
 Create a single event link.
int renesas_elc_link_break (const struct device *dev, uint32_t peripheral)
 Break an event link.
int renesas_elc_enable (const struct device *dev)
 Enable the operation of the Event Link Controller.
int renesas_elc_disable (const struct device *dev)
 Disable the operation of the Event Link Controller.

Detailed Description

Renesas ELC driver public APIs.

Macro Definition Documentation

◆ RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_IDX

#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_IDX ( node_id,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DEVICE_DT_GET(DT_PHANDLE_BY_IDX(node_id, renesas_elcs, idx))
#define DEVICE_DT_GET(node_id)
Get a device reference from a devicetree node identifier.
Definition device.h:314
#define DT_PHANDLE_BY_IDX(node_id, prop, idx)
Get a node identifier for a phandle in a property.
Definition devicetree.h:1785

Get the device pointer from the "renesas-elcs" property by index.

Parameters
node_idDevicetree node identifier.
idxLogical index into the renesas-elcs property.
Returns
Device pointer.

◆ RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_IDX_OR_NULL

#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_IDX_OR_NULL ( node_id,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DEVICE_DT_GET_OR_NULL(DT_PHANDLE_BY_IDX(node_id, renesas_elcs, idx))
#define DEVICE_DT_GET_OR_NULL(node_id)
Utility macro to obtain an optional reference to a device.
Definition device.h:379

Get the device pointer from the "renesas-elcs" property by index, or return NULL if the property does not exist.

Parameters
node_idDevicetree node identifier.
idxLogical index into the renesas-elcs property.
Returns
Device pointer or NULL.

◆ RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_NAME

#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_NAME ( node_id,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DEVICE_DT_GET(DT_PHANDLE_BY_NAME(node_id, renesas_elcs, name))
#define DT_PHANDLE_BY_NAME(node_id, pha, name)
Get a phandle's node identifier from a phandle array by name.
Definition devicetree.h:1733

Get the device pointer from the "renesas-elcs" property by element name.

Parameters
node_idDevicetree node identifier.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Device pointer.

◆ RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_NAME_OR_NULL

#define RENESAS_ELC_DT_SPEC_DEVICE_GET_BY_NAME_OR_NULL ( node_id,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DEVICE_DT_GET_OR_NULL(DT_PHANDLE_BY_NAME(node_id, renesas_elcs, name))

Get the device pointer from the "renesas-elcs" property by element name, or return NULL if the property does not exist.

Parameters
node_idDevicetree node identifier.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Device pointer or NULL.

◆ RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_IDX

#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_IDX ( inst,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DEVICE_DT_GET(DT_PHANDLE_BY_IDX(DT_DRV_INST(inst), renesas_elcs, idx))
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:3909

Get the device pointer from the "renesas-elcs" property by index for a DT_DRV_COMPAT instance.

Parameters
instDT_DRV_COMPAT instance number.
idxLogical index into the renesas-elcs property.
Returns
Device pointer.

◆ RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_IDX_OR_NULL

#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_IDX_OR_NULL ( inst,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:

Get the device pointer from the "renesas-elcs" property by index for a DT_DRV_COMPAT instance, or return NULL if the property does not exist.

Parameters
instDT_DRV_COMPAT instance number.
idxLogical index into the renesas-elcs property.
Returns
Device pointer or NULL.

◆ RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_NAME

#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_NAME ( inst,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DEVICE_DT_GET(DT_PHANDLE_BY_NAME(DT_DRV_INST(inst), renesas_elcs, name))

Get the device pointer from the "renesas-elcs" property by element name for a DT_DRV_COMPAT instance.

Parameters
instDT_DRV_COMPAT instance number.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Device pointer.

◆ RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_NAME_OR_NULL

#define RENESAS_ELC_DT_SPEC_DEVICE_INST_GET_BY_NAME_OR_NULL ( inst,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:

Get the device pointer from the "renesas-elcs" property by element name for a DT_DRV_COMPAT instance, or return NULL if the property does not exist.

Parameters
instDT_DRV_COMPAT instance number.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Device pointer or NULL.

◆ RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX

#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX ( node_id,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DT_PHA_BY_IDX(node_id, renesas_elcs, idx, event)
#define DT_PHA_BY_IDX(node_id, pha, idx, cell)
Get a phandle-array specifier cell value at an index.
Definition devicetree.h:1564

Get the event cell value from the "renesas-elcs" property by index.

Parameters
node_idDevicetree node identifier.
idxLogical index into the renesas-elcs property.
Returns
Event cell value.

◆ RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX_OR

#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX_OR ( node_id,
idx,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
COND_CODE_1(DT_NODE_HAS_PROP(node_id, renesas_elcs), \
(default_value))
#define DT_NODE_HAS_PROP(node_id, prop)
Does a devicetree node have a property?
Definition devicetree.h:3784
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX(node_id, idx)
Get the event cell value from the "renesas-elcs" property by index.
Definition renesas_elc.h:264
#define COND_CODE_1(_flag, _if_1_code, _else_code)
Insert code depending on whether _flag expands to 1 or not.
Definition util_macro.h:203

Get the event cell value from the "renesas-elcs" property by index, or return a default value if the property does not exist.

Parameters
node_idDevicetree node identifier.
idxLogical index into the renesas-elcs property.
default_valueValue to return if the property is not present.
Returns
Event cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME

#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME ( node_id,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DT_PHA_BY_NAME(node_id, renesas_elcs, name, event)
#define DT_PHA_BY_NAME(node_id, pha, name, cell)
Get a value within a phandle-array specifier by name.
Definition devicetree.h:1659

Get the event cell value from the "renesas-elcs" property by element name.

Parameters
node_idDevicetree node identifier.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Event cell value.

◆ RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME_OR

#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME_OR ( node_id,
name,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
COND_CODE_1(DT_NODE_HAS_PROP(node_id, renesas_elcs), \
(default_value))
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME(node_id, name)
Get the event cell value from the "renesas-elcs" property by element name.
Definition renesas_elc.h:253

Get the event cell value from the "renesas-elcs" property by element name, or return a default value if the property does not exist.

Parameters
node_idDevicetree node identifier.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
default_valueValue to return if the property is not present.
Returns
Event cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_IDX

#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_IDX ( inst,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:

Get the event cell value by index for a DT_DRV_COMPAT instance.

Parameters
instDT_DRV_COMPAT instance number.
idxLogical index into the renesas-elcs property.
Returns
Event cell value.

◆ RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_IDX_OR

#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_IDX_OR ( inst,
idx,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_IDX_OR(node_id, idx, default_value)
Get the event cell value from the "renesas-elcs" property by index, or return a default value if the ...
Definition renesas_elc.h:292

Get the event cell value by index for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.

Parameters
instDT_DRV_COMPAT instance number.
idxLogical index into the renesas-elcs property.
default_valueValue to return if the property is not present.
Returns
Event cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_NAME

#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_NAME ( inst,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:

Get the event cell value by element name for a DT_DRV_COMPAT instance.

Parameters
instDT_DRV_COMPAT instance number.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Event cell value.

◆ RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_NAME_OR

#define RENESAS_ELC_DT_SPEC_EVENT_INST_GET_BY_NAME_OR ( inst,
name,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
#define RENESAS_ELC_DT_SPEC_EVENT_GET_BY_NAME_OR(node_id, name, default_value)
Get the event cell value from the "renesas-elcs" property by element name, or return a default value ...
Definition renesas_elc.h:277

Get the event cell value by element name for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.

Parameters
instDT_DRV_COMPAT instance number.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
default_valueValue to return if the property is not present.
Returns
Event cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX ( node_id,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DT_PHA_BY_IDX(node_id, renesas_elcs, idx, peripheral)

Get the peripheral cell value from the "renesas-elcs" property by index.

Parameters
node_idDevicetree node identifier.
idxLogical index into the renesas-elcs property.
Returns
Peripheral cell value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX_OR

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX_OR ( node_id,
idx,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
COND_CODE_1(DT_NODE_HAS_PROP(node_id, renesas_elcs), \
(default_value))
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX(node_id, idx)
Get the peripheral cell value from the "renesas-elcs" property by index.
Definition renesas_elc.h:164

Get the peripheral cell value from the "renesas-elcs" property by index, or return a default value if the property does not exist.

Parameters
node_idDevicetree node identifier.
idxLogical index into the renesas-elcs property.
default_valueValue to return if the property is not present.
Returns
Peripheral cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME ( node_id,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
DT_PHA_BY_NAME(node_id, renesas_elcs, name, peripheral)

Get the peripheral cell value from the "renesas-elcs" property by element name.

Parameters
node_idDevicetree node identifier.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Peripheral cell value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME_OR

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME_OR ( node_id,
name,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
COND_CODE_1(DT_NODE_HAS_PROP(node_id, renesas_elcs), \
(default_value))
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME(node_id, name)
Get the peripheral cell value from the "renesas-elcs" property by element name.
Definition renesas_elc.h:153

Get the peripheral cell value from the "renesas-elcs" property by element name, or return a default value if the property does not exist.

Parameters
node_idDevicetree node identifier.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
default_valueValue to return if the property is not present.
Returns
Peripheral cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_IDX

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_IDX ( inst,
idx )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:

Get the peripheral cell value by index for a DT_DRV_COMPAT instance.

Parameters
instDT_DRV_COMPAT instance number.
idxLogical index into the renesas-elcs property.
Returns
Peripheral cell value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_IDX_OR

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_IDX_OR ( inst,
idx,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_IDX_OR(node_id, idx, default_value)
Get the peripheral cell value from the "renesas-elcs" property by index, or return a default value if...
Definition renesas_elc.h:192

Get the peripheral cell value by index for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.

Parameters
instDT_DRV_COMPAT instance number.
idxLogical index into the renesas-elcs property.
default_valueValue to return if the property is not present.
Returns
Peripheral cell value or default_value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_NAME

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_NAME ( inst,
name )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:

Get the peripheral cell value by element name for a DT_DRV_COMPAT instance.

Parameters
instDT_DRV_COMPAT instance number.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
Returns
Peripheral cell value.

◆ RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_NAME_OR

#define RENESAS_ELC_DT_SPEC_PERIPHERAL_INST_GET_BY_NAME_OR ( inst,
name,
default_value )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Value:
#define RENESAS_ELC_DT_SPEC_PERIPHERAL_GET_BY_NAME_OR(node_id, name, default_value)
Get the peripheral cell value from the "renesas-elcs" property by element name, or return a default v...
Definition renesas_elc.h:177

Get the peripheral cell value by element name for a DT_DRV_COMPAT instance, or return a default value if the property does not exist.

Parameters
instDT_DRV_COMPAT instance number.
nameLowercase-and-underscores name as specified in the renesas-elcs-names property.
default_valueValue to return if the property is not present.
Returns
Peripheral cell value or default_value.

Function Documentation

◆ renesas_elc_disable()

int renesas_elc_disable ( const struct device * dev)

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Disable the operation of the Event Link Controller.

This function disables the ELC, stopping event processing.

Parameters
devEvent Link Controller device.
Returns
0 if successful.
A negative errno code on failure.

◆ renesas_elc_enable()

int renesas_elc_enable ( const struct device * dev)

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Enable the operation of the Event Link Controller.

This function enables the ELC so that it can process events.

Parameters
devEvent Link Controller device.
Returns
0 if successful.
A negative errno code on failure.

◆ renesas_elc_link_break()

int renesas_elc_link_break ( const struct device * dev,
uint32_t peripheral )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Break an event link.

This function breaks an existing event link for the given peripheral.

Parameters
devEvent Link Controller device.
peripheralPeripheral ID whose link is to be broken.
Returns
0 if successful.
A negative errno code on failure.

◆ renesas_elc_link_set()

int renesas_elc_link_set ( const struct device * dev,
uint32_t peripheral,
uint32_t event )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Create a single event link.

This function configures an event link by associating a peripheral with a specific event signal.

Parameters
devEvent Link Controller device.
peripheralPeripheral ID to be linked to the event signal.
eventEvent signal ID to be associated with the peripheral.
Returns
0 if successful.
A negative errno code on failure.

◆ renesas_elc_software_event_generate()

int renesas_elc_software_event_generate ( const struct device * dev,
uint32_t event )

#include <zephyr/drivers/misc/interconn/renesas_elc/renesas_elc.h>

Generate a software event in the Event Link Controller.

This function requests the Renesas ELC to generate a software event identified by event.

Parameters
devThe Event Link Controller device.
eventSoftware event ID to generate.
Returns
0 if successful.
A negative errno code on failure.