adc-imx8

Resource manager that provides access to the NXP i.MX8-based ADC

Syntax:

adc-imx8  -p path -a address
          [-v[v...]] [-d] [-U uid[:gid]]
          [-o board_specific_option]

Runs on:

QNX OS

Options:

The following are the options for this driver.

Generic options

The following are generic options used by this driver.

-p path
Specify the location in the pathspace where the ADC resource manager will attach.
-a address
Specify the base address of the ADC to manipulate.
-v[v...]
Be verbose. Specifying additional -v options increases the verbosity of displayed and logged detail.
-d
Prevent the process from demonizing.
-U uid[:gid]
Change to the specified user ID (uid). The uid can be a username from the user database or a numeric user ID. With a numeric uid, a numeric group ID (gid) can optionally be specified. If a numeric gid is not given with a numeric uid, a default group of 0 (root) is used.

Apalis i.MX 8QM Ixora-specific options

The following are board-specific options specfied with -o board_specific_option. The options are comma-separated options using the equal sign ('=') to set a value.

chnum=value
Specifies the number of input channels to expose in the filesystem. Valid values must be comprised between 1 and 8.

Examples:

  • Start the ADC driver on ADC0:
    adc-imx8 -p /dev/adc0 -a 0x5A880000
  • Start the ADC driver on ADC1, limited to 4 inputs:
    adc-imx8 -p /dev/adc1 -a 0x5A890000 -o chnum=4
Page updated: