diff options
author | daniel <danieruru@gmail.com> | 2013-01-05 20:56:25 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-05 20:56:25 +0900 |
commit | 18fb047d74d3078223a0a27ffcd31e3467b0d27d (patch) | |
tree | 023107523d0f799a92ba31234b508e021630552d /libvxi11client/libvxi11client.h | |
parent | e5656b476c9168cfe7852bce4e2ce59876a45d12 (diff) |
A bit more fleshing out of the VXI server and client
Diffstat (limited to 'libvxi11client/libvxi11client.h')
-rw-r--r-- | libvxi11client/libvxi11client.h | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/libvxi11client/libvxi11client.h b/libvxi11client/libvxi11client.h index 4b2f781..b65e711 100644 --- a/libvxi11client/libvxi11client.h +++ b/libvxi11client/libvxi11client.h @@ -1,17 +1,36 @@ #include "vxi11.h" -void vxi11_open(char* address, char* device); -void vxi11_abort(); -void vxi11_trigger(); -void vxi11_clear(); -void vxi11_write(); -void vxi11_read(); -void vxi11_lock(); -void vxi11_unlock(); -void vxi11_local(); -void vxi11_readstatusbyte(); -void vxi11_remote(); -void vxi11_create_intr_chan(); -void vxi11_destroy_intr_chan(); -void vxi11_docmd(); -void vxi11_close(); +#define ERR_SYNTAXERROR -1 +#define ERR_DEVICENOTACCESSIBLE -3 +#define ERR_INVALIDLINKINDENTIFIER -4 +#define ERR_PARAMETERERROR -5 +#define ERR_CHANNELNOTESTABLISHED -6 +#define ERR_OPERATIONNOTSUPPORTED -8 +#define ERR_OUTOFRESOURCES -9 +#define ERR_DEVICELOCKEDBYANOTHERLINK -11 +#define ERR_NOLOCKHELDBYTHISLINK -12 +#define ERR_IOTIMEOUT -15 +#define ERR_IOERROR -17 +#define ERR_INVALIDADDRESS -21 +#define ERR_ABORT -23 +#define ERR_CHANNELALREADYESTABLISHED -29 + +#define FLAG_TERMCHRSET (1 << 7) +#define FLAG_END (1 << 3) +#define FLAG_WAITLOCK 1 + +int vxi11_open(char* address, char* device); +int vxi11_abort(); +int vxi11_trigger(); +int vxi11_clear(); +int vxi11_write(); +int vxi11_read(); +int vxi11_lock(); +int vxi11_unlock(); +int vxi11_local(); +int vxi11_readstatusbyte(); +int vxi11_remote(); +int vxi11_create_intr_chan(); +int vxi11_destroy_intr_chan(); +int vxi11_docmd(unsigned long cmd); +int vxi11_close(); |