Document number
204911
Version
Rev. K
Issue date
2016-10-11
Sirius Breadboard User Manual
www.aacmicrotec.com
Page
68
of
106
ADC_IOCTL_SPS_503_8
SPS 503.8
ADC_IOCTL_SPS_381
SPS 381
ADC_IOCTL_SPS_200_3
SPS 200.8
ADC_IOCTL_SPS_100_5
SPS 100.5
ADC_IOCTL_SPS_59_52
SPS 59.52
ADC_IOCTL_SPS_49_68
SPS 49.68
ADC_IOCTL_SPS_20_01
SPS 20.01
ADC_IOCTL_SPS_16_63
SPS 16.63
ADC_IOCTL_SPS_10
SPS 10
ADC_IOCTL_SPS_5
SPS 5
ADC_IOCTL_SPS_2_5
SPS 2.5
ADC_IOCTL_SPS_1_25
SPS 1.25
5.11.2.2. Function
int open(…)
Opens access to the ADC. Only one instance can be open at any time, only read access is
allowed and only blocking mode is supported.
Argument name
Type
Direction
Description
Pathname
const char *
in
The absolute path to the ADC to be opened.
ADC device is defined as
ADC_DEVICE_NAME.
Flags
int
in
Access mode flag, only O_RDONLY is
supported.
Return value
Description
Fd
A file descriptor for the device
on success
-1
See
errno
values
errno values
EEXISTS
Device already exists
EALREADY
Device is already open
EINVAL
Invalid options
5.11.2.3. Function
int close(…)
Closes access to the device.
Argument name
Type
Direction
Description
Fd
int
in
File descriptor received at open.
Return value
Description
0
Device closed successfully
-1
See
errno
values
errno values
EEXISTS
Device already exists
EALREADY
Device is already open