Core Serial Library in C  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
z_common.h
Go to the documentation of this file.
1 
16 #if !defined(Z_COMMON_H)
17 #define Z_COMMON_H
18 
20 #define VERSION 1.0
21 
29 #if defined(_WIN32)
30 #include <windows.h>
31 typedef HANDLE z_port;
32 #elif defined(__unix__) || defined(__APPLE__)
33 typedef int z_port;
34 #endif /* if defined(_WIN32) and other OS checks */
35 
53 #define READ_TIMEOUT 2000
54 
63 enum z_returns {
65  Z_SUCCESS = 0,
77 };
78 
79 #endif /* if !defined(Z_COMMON_H) */
80 
Tried to set an unsupported baudrate.
Definition: z_common.h:73
Tried to decode a partial reply, or a string that wasn't a reply at all.
Definition: z_common.h:76
Was passed NULL when not expecting it.
Definition: z_common.h:71
Something went wrong in system code.
Definition: z_common.h:67
Tried to write to a buffer that wasn't long enough.
Definition: z_common.h:69
Everything is OK!
Definition: z_common.h:65
HANDLE z_port
A type to represent a port connected to one or more Zaber devices.
Definition: z_common.h:31
z_returns
Defines a set of return values in case things go wrong.
Definition: z_common.h:63