Header File Index

| Automatic probing of cables

### ticables_probing_do

TIEXPORT1 int TICALL ticables_probing_do(int ***result, unsigned int timeout, ProbingMethod method)

Returns cables which have been detected. All cables should be closed before ! The array is like a matrix which contains 5 columns (PORT_0 to PORT_4) and 7 lines (CABLE_GRY to CABLE_USB). The array must be freed by #ticables_probing_finish when no longer used.

result : | address of an array of integers to put the result.
timeout : | timeout to set during probing
method : | defines which link cables you want to search for.
Return value : | 0 if successful, ERR_NO_CABLE if no cables found.

### ticables_probing_finish

TIEXPORT1 int TICALL ticables_probing_finish(int ***result)

Free the array created by #ticables_probing_do.

result : | address of an array of integers.
Return value : | always 0.

### ticables_is_usb_enabled

TIEXPORT1 int TICALL ticables_is_usb_enabled(void)

Checks whether USB support is available. Can be called at any time.

Return value : | !0 if available, 0 otherwise.

### ticables_get_usb_devices

TIEXPORT1 int TICALL ticables_get_usb_devices(int **list, int *len)

Returns the list of detected USB PIDs. Note that list is in the same order as PORT#x. The array must be freed when no longer used.

list : | out address of a NULL-terminated allocated array of integers (PIDs).
len : | out pointer to number of detected USB devices.
Return value : | 0 if successful, an error code otherwise.

### \brief Frees an array of USB devices

free(array);

\return Always 0

Return value : |

### ticables_get_usb_device_info

TIEXPORT1 int TICALL ticables_get_usb_device_info(CableDeviceInfo **list, int *len)

Returns the list of detected USB devices. Note that list is in the same order as PORT#x. The array must be freed when no longer used.

array : | address of a newly allocated array of CableDeviceInfo structures
length : | number of detected USB devices.
Return value : | 0 if successful, an error code otherwise.

### \brief Frees an array of USB device information

free(list);

\return Always 0

Return value : |

### Return to the main index