beautypg.com

Syntax – ADLINK HSL-DI16DO16-M-NN User Manual

Page 107

background image

94

HSL Function Library


// start wait
ret =HSL_D_wait_di_interrupt(1, 10000);
if(ret == ERR_No_Error)
{

// DI state trainisted and check which bits
change states…

}else
{

// time out

}…

@ Syntax

C/C++ (DOS, Windows 98/NT/2000/XP)

I16 HSL_D_write_output (I16 card_ID, I16

connect_index, I16 slave_No, U32 out_data);

I16 HSL_D_write_channel_output(I16 card_ID, I16

connect_index, I16 slave_No, I16 channel,
U16 out_data);

I16 HSL_D_read_input (I16 card_ID, I16

connect_index, I16 slave_No, U32 *in_data);

I16 HSL_D_read_channel_input (I16 card_ID, I16

connect_index, I16 slave_No, I16 channel,
U16 *in_data);

I16 HSL_D_read_output (I16 card_ID, I16

connect_index, I16 slave_No, U32
*out_data_in_ram);

I16 HSL_D_read_all_slave_input (I16 card_ID, I16

connect_index, U16 *in_data);

I16 HSL_D_write_all_slave_output (I16 card_ID,

I16 connect_index, U16 *out_data);

I16 HSL_D_set_input_logic (I16 card_ID, I16

connect_index, I16 slave_No, I16
input_logic);

I16 HSL_D_set_output_logic (I16 card_ID, I16

connect_index, I16 slave_No, I16
output_logic);

I16 HSL_D_set_int_renewal_type(I16 card_ID, I16

connect_index, I16 type);

I16 HSL_D_set_int_renewal_bit(I16 card_ID, I16

connect_index, I16 slave_No, U16
bitsOfCheck);

I16 HSL_D_set_int_control(I16 card_ID, I16

connect_index, I16 enable);