
Arcom Embedded Linux Technical Manual Developing software for AEL
The functions provided by libaim104 on AIM104-OUT16 are explained below:
Function Explanation
aim104_out16_enable_outputs
Enables the outputs if enable is 1, disables
otherwise.
aim104_out16_set_all
Sets outputs selected by channel to the state
given as set.
aim104_out16_set_masked
Sets outputs on channel selected by the mask
parameter to the state given by the set parameter.
A relay is selected if there is a 1 in the
corresponding bit position within mask.
aim104_out16_output_status
Returns the current status of the outputs selected
by channel.
AIM104-IO32
The functions provided by the library libaim104 on AIM104-IO32 are:
int aim104_io32_enable_outputs(int fd, int enable);
int aim104_io32_set_all(int fd, int channel, unsigned char set);
int aim104_io32_inputs(int fd, int channel);
The parameter channel selects I/O lines 0-7 when zero, I/O lines 8-15 when one, I/O
lines 16-23 when two and I/O lines 24-31 when 3.
The functions provided by libaim104 on AIM104-IO3 are explained below:
Function Explanation
aim104_io32_enable_outputs
Enables the outputs if enable is 1, disables
otherwise.
aim104_io32_set_all
Sets the 8 outputs selected by channel to the
state given by set.
aim104_io32_inputs
Returns the status of the inputs selected by
channel.
AIM104-MULTI-IO
The functions provided by the library libaim104 on AIM104-MULTI-IO are:
int aim104_multi_io_inputs(int fd);
int aim104_multi_io_ADC(int fd, int channel, int single_ended);
int aim104_multi_io_DAC(int fd, int channel,
unsigned short output);
© 2006 Arcom Issue G 51
Comentários a estes Manuais