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_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_close(CableHandle* handle) |
handle : |
a previously allocated handle
|
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_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_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_get(CableHandle* handle, uint8_t *data) |
handle : |
a previously allocated handle
|
data : |
data to receive
|
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_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.
|