Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

15.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;