58 #define PIC_STOPBITS 1 60 #ifdef COSMOS_WIN_BUILD_MSVC 61 #define PIC_HEADER_SIZE 6 63 #define PIC_HEADER_SIZE (ptrdiff_t)(((pic_header*)0)+1) 65 #define PIC_DATA_SIZE 300 67 #define SUCHI_CMD_SET_HEATER_ON 0x10 68 #define SUCHI_CMD_SET_HEATER_OFF 0x11 69 #define SUCHI_CMD_SET_SHUTTER_OPEN 0x20 70 #define SUCHI_CMD_SET_SHUTTER_CLOSED 0x21 71 #define SUCHI_CMD_SET_CAMERA_ON 0x30 72 #define SUCHI_CMD_SET_CAMERA_OFF 0x31 73 #define SUCHI_CMD_GET_REPORT 0x41 75 #define SUCHI_STATE_HEATER_ON_1 0x0001 76 #define SUCHI_STATE_HEATER_ON_2 0x0002 77 #define SUCHI_STATE_HEATER_ON_3 0x0004 78 #define SUCHI_STATE_HEATER_ON_4 0x0008 79 #define SUCHI_STATE_SHUTTER_OPEN_1 0x0010 80 #define SUCHI_STATE_SHUTTER_OPEN_2 0x0020 81 #define SUCHI_STATE_SHUTTER_OPEN_3 0x0040 82 #define SUCHI_STATE_SHUTTER_OPEN_4 0x0080 83 #define SUCHI_STATE_CAMERA_ON 0x0100 118 uint16_t sw_wdt_heaters[4];
119 uint16_t sw_wdt_shutters[4];
121 float temperatures[9];
146 #ifdef COSMOS_WIN_BUILD_MSVC 156 #ifdef COSMOS_WIN_BUILD_MSVC int32_t isc_get(pic_handle *handle)
pic_res_suchireport suchi_report
Definition: pic_lib.h:139
uint16_t arg
Definition: pic_lib.h:112
int32_t isc_report(pic_handle *handle)
picstruc buffer
Definition: pic_lib.h:155
Definition: pic_lib.h:152
uint32_t uptime
Definition: pic_lib.h:123
int32_t suchi_report(pic_handle *handle)
Definition: pic_lib.cpp:167
int32_t pic_connect(char *dev, pic_handle *handle)
Connect to PIC.
Definition: pic_lib.cpp:40
Simple Serial library header file.
int32_t isc_power_on(pic_handle *handle, uint8_t number, uint32_t seconds)
uint16_t seq
Definition: pic_lib.h:145
#define PIC_HEADER_SIZE
Definition: pic_lib.h:63
uint32_t uart_frames_rx
Definition: pic_lib.h:124
int32_t suchi_camera(pic_handle *handle, uint8_t number, uint8_t state)
float pressure
Definition: pic_lib.h:122
pic_cmd_args0 args_0
Definition: pic_lib.h:138
uint16_t reserved
Definition: pic_lib.h:120
struct pic_handle __attribute__((__may_alias__))
pic_header header
Definition: pic_lib.h:134
int32_t suchi_heater(pic_handle *handle, uint8_t number, uint8_t state)
Definition: pic_lib.cpp:118
int32_t pic_disconnect(pic_handle *handle)
Disconnect from PIC.
Definition: pic_lib.cpp:64
JSON Support definitions.
Headers and definitions common to all COSMOS.
Definition: pic_lib.h:110
gige_handle * handle
Definition: kpc9612p_recv.cpp:33
int32_t isc_put(pic_handle *handle)
uint16_t suchi_state
Definition: pic_lib.h:117
cssl_t * serial
Definition: pic_lib.h:154
uint32_t uart_bytes_discard
Definition: pic_lib.h:125
pic_cmd_args1 args_1_16
Definition: pic_lib.h:137
#define PIC_DATA_SIZE
Definition: pic_lib.h:65
int32_t suchi_shutter(pic_handle *handle, uint8_t number, uint8_t state)
Definition: pic_lib.cpp:135
Definition: pic_lib.h:106
Definition: pic_lib.h:115
Definition: cssl_lib.h:34