ADLINK HSL-DO32-M-N/HSL-DO32-M-P User Manual

Page 95

Advertising
background image

82

HSL Function Library

HSL_auto_start:
Automatically detects the total connected slave modules. Every
master controller can connect up to 63 slave indexes.

HSL_stop:
Stops scanning the connected slave modules.

HSL_set_scan_condition:
Assigns the scan rate (3/6/12 Mbps) and communication types
(full or half duplex). This function needs to be set up between the
function HSL_initial and HSL_start.

HSL_get_scan_condition:
By this function, User can get the settings of communication types
and scan rate which are set by “HSL_set_scan_condition”.

HSL_connect_status:
This function is used to check the communication status between
master board and slave modules.

HSL_slave_live:
This function is used to check the status of the slave module (live
or die).

HSL_ get_irq_channel:
This function is used to get IRQ assigned by system.

@ Syntax

C/C++ (DOS, Windows 98/NT/2K/XP)

I16 HSL_initial (U16 card_ID);
I16 HSL_close (U16 card_ID);
I16 HSL_start (U16 card_ID, U16 connect_index,

U16 max_slave_No);

I16 HSL_auto_start (U16 card_ID, U16

connect_index);

I16 HSL_stop (U16 card_ID, U16 connect_index);
I16 HSL_set_scan_condition(I16 card_ID, I16

connect_index, I16 comm_type, I16
transfer_rate, I16 hub_number);

Advertising