Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

16.5.3.7. get_class_peripheral

Usage

get_class_peripheral <instance-name> <irq-number>
  • <instance-name> : Name of EIC module instance to find connected peripheral for.
  • <irq-number> : IRQ number to locate connected peripheral device

Description

This command is used on an EIC instance callback to obtain a peripheral slave descriptor connected to a specific IRQ port number. This command is only valid for a callback script.

Example

get_class_peripheral eic_1 $irq_2;