COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
pic_lib.h File Reference

pic include file. More...

Include dependency graph for pic_lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pic_header
 
struct  pic_cmd_args0
 
struct  pic_cmd_args1
 
struct  pic_res_suchireport
 
struct  __attribute__
 
struct  pic_handle
 

Macros

#define PIC_BAUD   9600
 
#define PIC_BITS   8
 
#define PIC_PARITY   0
 
#define PIC_STOPBITS   1
 
#define PIC_HEADER_SIZE   (ptrdiff_t)(((pic_header*)0)+1)
 
#define PIC_DATA_SIZE   300
 
#define SUCHI_CMD_SET_HEATER_ON   0x10
 
#define SUCHI_CMD_SET_HEATER_OFF   0x11
 
#define SUCHI_CMD_SET_SHUTTER_OPEN   0x20
 
#define SUCHI_CMD_SET_SHUTTER_CLOSED   0x21
 
#define SUCHI_CMD_SET_CAMERA_ON   0x30
 
#define SUCHI_CMD_SET_CAMERA_OFF   0x31
 
#define SUCHI_CMD_GET_REPORT   0x41
 
#define SUCHI_STATE_HEATER_ON_1   0x0001
 
#define SUCHI_STATE_HEATER_ON_2   0x0002
 
#define SUCHI_STATE_HEATER_ON_3   0x0004
 
#define SUCHI_STATE_HEATER_ON_4   0x0008
 
#define SUCHI_STATE_SHUTTER_OPEN_1   0x0010
 
#define SUCHI_STATE_SHUTTER_OPEN_2   0x0020
 
#define SUCHI_STATE_SHUTTER_OPEN_3   0x0040
 
#define SUCHI_STATE_SHUTTER_OPEN_4   0x0080
 
#define SUCHI_STATE_CAMERA_ON   0x0100
 

Enumerations

enum  { ISC_CMD_SET_BUS ='a', ISC_CMD_GET_BUS, ISC_CMD_GET_STRG }
 

Functions

struct pic_handle __attribute__ ((__may_alias__))
 
int32_t pic_connect (char *dev, pic_handle *handle)
 Connect to PIC. More...
 
int32_t pic_disconnect (pic_handle *handle)
 Disconnect from PIC. More...
 
int32_t suchi_heater (pic_handle *handle, uint8_t number, uint8_t state)
 
int32_t suchi_shutter (pic_handle *handle, uint8_t number, uint8_t state)
 
int32_t suchi_camera (pic_handle *handle, uint8_t number, uint8_t state)
 
int32_t suchi_report (pic_handle *handle)
 
int32_t isc_power_on (pic_handle *handle, uint8_t number, uint32_t seconds)
 
int32_t isc_report (pic_handle *handle)
 
int32_t isc_put (pic_handle *handle)
 
int32_t isc_get (pic_handle *handle)
 

Variables

cssl_tserial
 
picstruc buffer
 

Detailed Description

pic include file.

Variable Documentation

cssl_t* serial
picstruc buffer