Nios® II Software Developer Handbook

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

16.5.2.38. is_char_device

Usage

is_char_device <slave_desc>

Options

  • <slave_desc>: String with the slave descriptor to query.

Returns a boolean value that indicates whether the slave descriptor is a character device.

Examples

  • Example 1:puts [is_char_device jtag_uart]

    Returns:

    1
  • Example 2:puts [is_char_device onchip_ram_64_kbytes]

    Returns:

    0