Go to the source code of this file.
Defines |
#define | PTU_OK 0 |
#define | PTU_ILLEGAL_COMMAND_ARGUMENT 1 |
#define | PTU_ILLEGAL_COMMAND 2 |
#define | PTU_ILLEGAL_POSITION_ARGUMENT 3 |
#define | PTU_ILLEGAL_SPEED_ARGUMENT 4 |
#define | PTU_ACCEL_TABLE_EXCEEDED 5 |
#define | PTU_DEFAULTS_EEPROM_FAULT 6 |
#define | PTU_SAVED_DEFAULTS_CORRUPTED 7 |
#define | PTU_LIMIT_HIT 8 |
#define | PTU_CABLE_DISCONNECTED 9 |
#define | PTU_ILLEGAL_UNIT_ID 10 |
#define | PTU_ILLEGAL_POWER_MODE 11 |
#define | PTU_RESET_FAILED 12 |
#define | PTU_NOT_RESPONDING 13 |
#define | PTU_FIRMWARE_VERSION_TOO_LOW 14 |
#define | PAN 1 |
#define | TILT 2 |
#define | POSITION 1 |
#define | SPEED 2 |
#define | ACCELERATION 3 |
#define | BASE 4 |
#define | UPPER_SPEED_LIMIT 5 |
#define | LOWER_SPEED_LIMIT 6 |
#define | MINIMUM_POSITION 7 |
#define | MAXIMUM_POSITION 8 |
#define | HOLD_POWER_LEVEL 9 |
#define | MOVE_POWER_LEVEL 10 |
#define | RESOLUTION 11 |
#define | ISM_DRIFT 12 |
#define | RELATIVE 1 |
#define | ABSOLUTE 2 |
#define | QUERY NULL |
#define | PTU_HI_POWER 1 |
#define | PTU_REG_POWER 2 |
#define | PTU_LOW_POWER 3 |
#define | PTU_OFF_POWER 4 |
#define | COMMAND_EXECUTION_MODE 1 |
#define | ASCII_VERBOSE_MODE 2 |
#define | ASCII_ECHO_MODE 3 |
#define | POSITION_LIMITS_MODE 4 |
#define | DEFAULTS 5 |
#define | SPEED_CONTROL_MODE 6 |
#define | EXECUTE_IMMEDIATELY 1 |
#define | EXECUTE_UPON_IMMEDIATE_OR_AWAIT 2 |
#define | VERBOSE 1 |
#define | TERSE 0 |
#define | ON_MODE 1 |
#define | OFF_MODE 0 |
#define | SAVE_CURRENT_SETTINGS 0 |
#define | RESTORE_SAVED_SETTINGS 1 |
#define | RESTORE_FACTORY_SETTINGS 2 |
#define | QUERY_MODE 3 |
#define | ALL 3 |
Typedefs |
typedef short int | PTU_PARM_PTR |
typedef unsigned short int | UID_fd |
typedef unsigned char(* | event_handler_fn_ptr_type )(unsigned char) |
Functions |
portstream_fd | open_host_port (char *) |
char | set_baud_rate (int baudrate) |
char | close_host_port (portstream_fd) |
char | reset_PTU_parser (long) |
char | set_desired (char, char, PTU_PARM_PTR *, char) |
long | get_current (char, char) |
long | get_desired (char, char) |
char | set_mode (char, char) |
char | halt (char) |
char | await_completion (void) |
char | reset_ptu (void) |
char | reset_ptu_pan (void) |
char | reset_ptu_tilt (void) |
char * | firmware_version (void) |
char | select_host_port (portstream_fd) |
char | select_unit (UID_fd) |
char | set_unit_id (UID_fd) |
char | set_PTU_motion (short int, short int, unsigned short int, unsigned short int) |
char | get_PTU_motion (short int *, short int *, short int *, short int *) |
char | config_CHA (void) |
char | talkto_CHA (void) |
char | talkto_PTUcontroller (void) |
unsigned char | default_async_event_handler (unsigned char) |
unsigned char | set_async_event_handler (void(*)(unsigned char)) |
unsigned char | set_TTL_outputs (unsigned char) |
unsigned char | get_TTL_values (void) |
char | set_desired_abs_positions (signed short int *, signed short int *) |
char | get_current_positions (signed short int *, signed short int *) |
unsigned char | TriggerOn (signed short int, signed short int, signed short int) |
unsigned char | TriggerOff (void) |
signed short int | TriggersPending (void) |
unsigned char | ptu_set_desired_velocities (signed short int, signed short int) |
unsigned char | execute_set_desired_velocities (signed short int *, signed short int *) |
char | set_ISM_desired_abs_positions (signed short int *Ppos, signed short int *Tpos) |
char | get_ISM_desired_abs_positions (signed short int *Ppos, signed short int *Tpos) |
Define Documentation
#define ASCII_ECHO_MODE 3 |
#define ASCII_VERBOSE_MODE 2 |
#define COMMAND_EXECUTION_MODE 1 |
#define EXECUTE_IMMEDIATELY 1 |
#define EXECUTE_UPON_IMMEDIATE_OR_AWAIT 2 |
#define HOLD_POWER_LEVEL 9 |
#define LOWER_SPEED_LIMIT 6 |
#define MAXIMUM_POSITION 8 |
#define MINIMUM_POSITION 7 |
#define MOVE_POWER_LEVEL 10 |
#define POSITION_LIMITS_MODE 4 |
#define PTU_ACCEL_TABLE_EXCEEDED 5 |
#define PTU_CABLE_DISCONNECTED 9 |
#define PTU_DEFAULTS_EEPROM_FAULT 6 |
#define PTU_FIRMWARE_VERSION_TOO_LOW 14 |
#define PTU_ILLEGAL_COMMAND 2 |
#define PTU_ILLEGAL_COMMAND_ARGUMENT 1 |
#define PTU_ILLEGAL_POSITION_ARGUMENT 3 |
#define PTU_ILLEGAL_POWER_MODE 11 |
#define PTU_ILLEGAL_SPEED_ARGUMENT 4 |
#define PTU_ILLEGAL_UNIT_ID 10 |
#define PTU_NOT_RESPONDING 13 |
#define PTU_RESET_FAILED 12 |
#define PTU_SAVED_DEFAULTS_CORRUPTED 7 |
#define RESTORE_FACTORY_SETTINGS 2 |
#define RESTORE_SAVED_SETTINGS 1 |
#define SAVE_CURRENT_SETTINGS 0 |
#define SPEED_CONTROL_MODE 6 |
#define UPPER_SPEED_LIMIT 5 |
Typedef Documentation
typedef unsigned short int UID_fd |
Function Documentation
char await_completion |
( |
void |
| ) |
|
unsigned char default_async_event_handler |
( |
unsigned |
char | ) |
|
unsigned char execute_set_desired_velocities |
( |
signed short int * |
, |
|
|
signed short int * |
|
|
) |
| |
char* firmware_version |
( |
void |
| ) |
|
long get_current |
( |
char |
, |
|
|
char |
|
|
) |
| |
char get_current_positions |
( |
signed short int * |
, |
|
|
signed short int * |
|
|
) |
| |
long get_desired |
( |
char |
, |
|
|
char |
|
|
) |
| |
char get_ISM_desired_abs_positions |
( |
signed short int * |
Ppos, |
|
|
signed short int * |
Tpos |
|
) |
| |
char get_PTU_motion |
( |
short int * |
, |
|
|
short int * |
, |
|
|
short int * |
, |
|
|
short int * |
|
|
) |
| |
unsigned char get_TTL_values |
( |
void |
| ) |
|
unsigned char ptu_set_desired_velocities |
( |
signed short |
int, |
|
|
signed short |
int |
|
) |
| |
char reset_ptu_pan |
( |
void |
| ) |
|
char reset_PTU_parser |
( |
long |
| ) |
|
char reset_ptu_tilt |
( |
void |
| ) |
|
unsigned char set_async_event_handler |
( |
void(*)(unsigned char) |
| ) |
|
char set_baud_rate |
( |
int |
baudrate | ) |
|
char set_desired_abs_positions |
( |
signed short int * |
, |
|
|
signed short int * |
|
|
) |
| |
char set_ISM_desired_abs_positions |
( |
signed short int * |
Ppos, |
|
|
signed short int * |
Tpos |
|
) |
| |
char set_mode |
( |
char |
, |
|
|
char |
|
|
) |
| |
char set_PTU_motion |
( |
short |
int, |
|
|
short |
int, |
|
|
unsigned short |
int, |
|
|
unsigned short |
int |
|
) |
| |
unsigned char set_TTL_outputs |
( |
unsigned |
char | ) |
|
char talkto_PTUcontroller |
( |
void |
| ) |
|
unsigned char TriggerOff |
( |
void |
| ) |
|
unsigned char TriggerOn |
( |
signed short |
int, |
|
|
signed short |
int, |
|
|
signed short |
int |
|
) |
| |
signed short int TriggersPending |
( |
void |
| ) |
|