![]() |
TicableLinkCable | Structure |
cabl_def.h |
struct TicableLinkCable |
Fields
int (*init) () |
init a link cable access. |
int (*open) () |
open a link cable access. |
int (*put) (uint8_t) |
send a byte over the cable. |
int (*get) (uint8_t*) |
receive a byte from the cable. |
int (*probe) () |
check for cable presence. |
int (*close) |
close the link cable access. |
int (*exit) |
exit a link cable access. |
int (*check) |
check for an available byte. |
int (*set_red_wire) (int) |
set RED wire to logical '1'. |
int (*set_white_wire) (int) |
set WHITE wire to logical '1'. |
int (*get_red_wire) () |
get RED wire line state. |
int (*get_white_wire) () |
get WHITE wire line state. |
Summary
Structure used to handle a link cable trough a set of abstract functions.
Description
This structure provides a set of functions (function pointers) to access a link cable independantly of the hardware and the platform. Before using this structure, you must set a link cable model properly.