diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-22 13:11:39 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-22 13:11:39 -0400 |
commit | fc0ac4d9ae743ee855180ccdb8f24a9eeef896cc (patch) | |
tree | a309cddcc8d400f8f95270128506d84eda2be00d /globals.h | |
parent | eee587b04dc46ade28b84fd9534c3358afb4f181 (diff) |
initialize all flash data now
Diffstat (limited to 'globals.h')
-rw-r--r-- | globals.h | 84 |
1 files changed, 84 insertions, 0 deletions
@@ -7,6 +7,15 @@ #include "error_utils.h" +#define DEBUG_ON - uncomment this to have debug messages + +#ifdef DEBUG_ON +#define g_print_debug(...) g_print(__VA_ARGS__) +#else +#define g_print_debug(...) {} +#endif + + #define error_queue_length 512 #define max_commands_in_input 12 #define max_output_length 512 @@ -45,6 +54,81 @@ #define dac_max 8191 #define dac_min 819 +#define All_Programmed 2 +#define Being_Programmed 1 +#define Not_Programmed 0 + +#define to_Advance 0 +#define to_Delay 1 +#define pw_in_out 0 +#define pw_normal 1 +#define double_on 1 +#define double_off 0 +#define pol_norm 0 +#define pol_complement 1 +#define hold_width 0 +#define hold_duty 1 +#define output_off 0 +#define output_on 1 +#define source_internal 0 +#define source_external 1 +#define source_manual 2 +#define source_hold 3 +#define source_immediate 4 + +#define pulse_mode_on 0 +#define sin_mode_on 1 +#define tri_mode_on 2 +#define squ_mode_on 4 +#define amp_mode_on 8 +#define dc_mode_on 16 + +#define gate_sync 0 +#define gate_async 1 +#define gate_low 0 +#define gate_high 1 + +#define amp_mode_normal 0 +#define amp_mode_ea 1 +#define amp_mode_amplify 2 + +#define os_mode_normal 0 +#define os_mode_eo 1 +#define logic_ttl 0 +#define logic_ecl 1 + +#define to_display 0 +#define to_computer 1 + +#define LOCS_ctrl 0 +#define LWLS_ctrl 1 +#define REMS_ctrl 2 +#define RWLS_ctrl 3 +#define RS232_ctrl 4 +#define TELNET_ctrl 5 +#define WEB_ctrl 6 + +#define ROUTE_PRIMARY 0 +#define ROUTE_SECONDARY 1 + +/* define RS232 parameters */ +#define rs232_1200_baud 0x00 +#define rs232_2400_baud 0x40 +#define rs232_4800_baud 0xc0 +#define rs232_9600_baud 0x80 +#define rs232_parity_none 0x00 +#define rs232_parity_odd 0x0a +#define rs232_parity_even 0x02 +#define rs232_1stop_bit 0x00 +#define rs232_2stop_bits 0x01 +#define rs232_7data_bits 0x00 +#define rs232_8data_bits 0x04 +#define rs232_hard_off 0x00 +#define rs232_hard_on 0x10 +#define rs232_echo_off 0x00 +#define rs232_echo_on 0x20 + + typedef struct { float frequency; // this will be enlarged later |