|   | Link cable management layer | 
| TIEXPORT1 int TICALL ticables_cable_open(CableHandle* handle) | 
| handle : | a previously allocated handle | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_close(CableHandle* handle) | 
| handle : | a previously allocated handle | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_reset(CableHandle* handle) | 
| handle : | a previously allocated handle | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_probe(CableHandle* handle, int* result) | 
| handle : | a previously allocated handle | 
| result : | cable found (!0) or not (0) | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_send(CableHandle* handle, uint8_t *data, uint32_t len) | 
| handle : | a previously allocated handle | 
| data : | buffer with data to send | 
| len : | length of buffer | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_recv(CableHandle* handle, uint8_t *data, uint32_t len) | 
| handle : | a previously allocated handle | 
| data : | buffer where data can be placed | 
| len : | number of bytes requested | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_check(CableHandle* handle, CableStatus *status) | 
| handle : | a previously allocated handle | 
| status : | status is placed here | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_set_d0(CableHandle* handle, int state) | 
| handle : | a previously allocated handle | 
| state : | logical state (0 or 1) of D0 wire. | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_set_d1(CableHandle* handle, int state) | 
| handle : | a previously allocated handle | 
| state : | logical state (0 or 1) of D1 wire. | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_get_d0(CableHandle* handle) | 
| handle : | a previously allocated handle | 
| Return value : | 0 or 1. | 
| TIEXPORT1 int TICALL ticables_cable_get_d1(CableHandle* handle) | 
| handle : | a previously allocated handle | 
| Return value : | 0 or 1. | 
| TIEXPORT1 int TICALL ticables_cable_set_raw(CableHandle* handle, int state) | 
| handle : | a previously allocated handle | 
| state : | bit mask of lines to pull low | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_get_raw(CableHandle* handle, int *state) | 
| handle : | a previously allocated handle | 
| state : | pointer to variable to store current state | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_set_device(CableHandle* handle, const char * device) | 
| handle : | a previously allocated handle | 
| device : | new device information | 
| Return value : | 0 if successful, an error code otherwise. | 
| const CableFncts *cable; | 
| handle : | a previously allocated handle | 
| info : | pointer to structure to store device info | 
| Return value : | 
| TIEXPORT1 int TICALL ticables_progress_reset(CableHandle* handle) | 
| handle : | a previously allocated handle | 
| Return value : | always 0. | 
| TIEXPORT1 int TICALL ticables_progress_get(CableHandle* handle, int* count, int* msec, float* rate) | 
| handle : | a previously allocated handle | 
| count : | number of bytes transfered | 
| msec : | time needed for the operation | 
| rate : | data rate | 
| Return value : | always 0. | 
| TIEXPORT1 int TICALL ticables_cable_put(CableHandle* handle, uint8_t data) | 
| handle : | a previously allocated handle | 
| data : | data to send | 
| Return value : | 0 if successful, an error code otherwise. | 
| TIEXPORT1 int TICALL ticables_cable_get(CableHandle* handle, uint8_t *data) | 
| handle : | a previously allocated handle | 
| data : | data to receive | 
| Return value : | 0 if successful, an error code otherwise. | 
| { | 
| Return value : | a function pointer. | 
| { | 
| hook : | new pre send hook | 
| Return value : | the previous pre send hook, so that the caller can use it to chain hooks. | 
| { | 
| Return value : | a function pointer. | 
| { | 
| hook : | new post send hook | 
| Return value : | the previous post send hook, so that the caller can use it to chain hooks. | 
| { | 
| Return value : | a function pointer. | 
| { | 
| hook : | new pre recv hook | 
| Return value : | the previous pre recv hook, so that the caller can use it to chain hooks. | 
| { | 
| Return value : | a function pointer. | 
| { | 
| hook : | new post recv hook | 
| Return value : | the previous post recv hook, so that the caller can use it to chain hooks. |