/home/fwph/code/wurde/modules/ptu/ptu.cpp File Reference

Go to the source code of this file.

Defines

#define PTU_CPI_CODE_VERSION   "v1.09.12"
#define PTU_OPCODE_VERSION   "v1.07.07d"
#define PTU_modelVersion   1
#define PTU_codeVersion   7
#define PTU_revision   6

Functions

unsigned char default_async_event_handler (unsigned char async_event)
unsigned char set_async_event_handler (void(*async_event_handler)(unsigned char))
portstream_fd open_host_port (char *portname)
char close_host_port (portstream_fd portstream)
unsigned char GetSerialChar (char await_char)
unsigned char get_binary_command_return_status ()
char SerialOut (unsigned char outchar)
char select_host_port (portstream_fd portstream)
char reset_ptu (void)
char firmware_version_OK (void)
char reset_PTU_parser (long timeout_in_msec)
char set_desired (char axis, char kinematic_property, PTU_PARM_PTR *value, char movement_mode)
char await_completion (void)
long get_current (char axis, char kinematic_property)
long get_desired (char axis, char kinematic_property)
char set_mode (char mode_type, char mode_parameter)
char halt (char halt_type)
char * firmware_version (void)
char select_unit (UID_fd unit_ID)
char set_unit_id (UID_fd unit_ID)

Variables

static char err
static portstream_fd current_host_port
static char speed_control_mode = PTU_INDEPENDENT_SPEED_CONTROL_MODE
static event_handler_fn_ptr_type async_event_handler_fn_ptr = (unsigned char (*) (unsigned char)) default_async_event_handler


Define Documentation

#define PTU_codeVersion   7

Definition at line 54 of file ptu.cpp.

Referenced by firmware_version_OK().

#define PTU_CPI_CODE_VERSION   "v1.09.12"

Definition at line 3 of file ptu.cpp.

#define PTU_modelVersion   1

Definition at line 53 of file ptu.cpp.

Referenced by firmware_version_OK().

#define PTU_OPCODE_VERSION   "v1.07.07d"

Definition at line 51 of file ptu.cpp.

#define PTU_revision   6

Definition at line 55 of file ptu.cpp.

Referenced by firmware_version_OK().


Function Documentation

char await_completion ( void   ) 

Definition at line 518 of file ptu.cpp.

char close_host_port ( portstream_fd  portstream  ) 

Definition at line 138 of file ptu.cpp.

unsigned char default_async_event_handler ( unsigned char  async_event  ) 

Definition at line 87 of file ptu.cpp.

Referenced by set_async_event_handler().

char* firmware_version ( void   ) 

Definition at line 902 of file ptu.cpp.

char firmware_version_OK ( void   ) 

Definition at line 202 of file ptu.cpp.

References current_host_port, do_delay(), FALSE, FlushInputBuffer(), PTU_codeVersion, PTU_modelVersion, PTU_revision, ReadSerialLine(), SerialBytesOut(), TIMEOUT_CHAR_READ, and TRUE.

Referenced by reset_PTU_parser().

unsigned char get_binary_command_return_status (  ) 

Definition at line 159 of file ptu.cpp.

References ASYNCHRONOUS_EVENT, GetSerialChar(), and TRUE.

Referenced by await_completion(), halt(), set_desired(), and set_mode().

long get_current ( char  axis,
char  kinematic_property 
)

Definition at line 530 of file ptu.cpp.

Referenced by main(), pan(), set_desired(), and tilt().

long get_desired ( char  axis,
char  kinematic_property 
)

Definition at line 661 of file ptu.cpp.

Referenced by main().

unsigned char GetSerialChar ( char  await_char  ) 

Definition at line 144 of file ptu.cpp.

References current_host_port, err, SerialBytesIn(), and TRUE.

Referenced by get_binary_command_return_status(), get_current(), get_desired(), reset_ptu(), reset_PTU_parser(), and set_unit_id().

char halt ( char  halt_type  ) 

Definition at line 888 of file ptu.cpp.

portstream_fd open_host_port ( char *  portname  ) 

Definition at line 124 of file ptu.cpp.

Referenced by initialize().

char reset_ptu ( void   ) 

Definition at line 187 of file ptu.cpp.

Referenced by initialize().

char reset_PTU_parser ( long  timeout_in_msec  ) 

Definition at line 266 of file ptu.cpp.

Referenced by initialize().

char select_host_port ( portstream_fd  portstream  ) 

Definition at line 179 of file ptu.cpp.

char select_unit ( UID_fd  unit_ID  ) 

Definition at line 915 of file ptu.cpp.

char SerialOut ( unsigned char  outchar  ) 

Definition at line 173 of file ptu.cpp.

References current_host_port, and SerialBytesOut().

Referenced by await_completion(), firmware_version(), get_current(), get_desired(), halt(), reset_ptu(), reset_PTU_parser(), set_desired(), set_mode(), and set_unit_id().

unsigned char set_async_event_handler ( void(*)(unsigned char)  async_event_handler  ) 

Definition at line 112 of file ptu.cpp.

char set_desired ( char  axis,
char  kinematic_property,
PTU_PARM_PTR value,
char  movement_mode 
)

Definition at line 308 of file ptu.cpp.

Referenced by pan_to(), set_pan_accel(), set_pan_upper(), set_pan_vel(), set_tilt_accel(), set_tilt_upper(), set_tilt_vel(), and tilt_to().

char set_mode ( char  mode_type,
char  mode_parameter 
)

Definition at line 797 of file ptu.cpp.

char set_unit_id ( UID_fd  unit_ID  ) 

Definition at line 931 of file ptu.cpp.


Variable Documentation

event_handler_fn_ptr_type async_event_handler_fn_ptr = (unsigned char (*) (unsigned char)) default_async_event_handler [static]

Definition at line 103 of file ptu.cpp.

Referenced by set_async_event_handler().

portstream_fd current_host_port [static]

Definition at line 75 of file ptu.cpp.

Referenced by close_host_port(), firmware_version(), firmware_version_OK(), get_current(), get_desired(), GetSerialChar(), open_host_port(), reset_PTU_parser(), select_host_port(), select_unit(), SerialOut(), set_desired(), and set_unit_id().

char err [static]

Definition at line 73 of file ptu.cpp.

char speed_control_mode = PTU_INDEPENDENT_SPEED_CONTROL_MODE [static]

Definition at line 77 of file ptu.cpp.

Referenced by get_current(), get_desired(), set_desired(), and set_mode().


Generated on Thu Feb 1 15:31:54 2007 for WURDE by  doxygen 1.5.1