|
| 1 | +/** |
| 2 | + * @file ngps_acq_embed.h |
| 3 | + * @brief in-process API for NGPS auto-acquire logic |
| 4 | + */ |
| 5 | + |
| 6 | +#pragma once |
| 7 | + |
| 8 | +#include <stddef.h> |
| 9 | + |
| 10 | +#ifdef __cplusplus |
| 11 | +extern "C" { |
| 12 | +#endif |
| 13 | + |
| 14 | +typedef struct ngps_acq_hooks { |
| 15 | + void *user; |
| 16 | + |
| 17 | + int (*tcs_set_native_units)( void *user, int dry_run, int verbose ); |
| 18 | + int (*tcs_move_arcsec)( void *user, double dra_arcsec, double ddec_arcsec, |
| 19 | + int dry_run, int verbose ); |
| 20 | + int (*scam_putonslit_deg)( void *user, |
| 21 | + double slit_ra_deg, double slit_dec_deg, |
| 22 | + double cross_ra_deg, double cross_dec_deg, |
| 23 | + int dry_run, int verbose ); |
| 24 | + int (*acam_query_state)( void *user, char *state, size_t state_sz, int verbose ); |
| 25 | + int (*scam_framegrab_one)( void *user, const char *outpath, int verbose ); |
| 26 | + int (*scam_set_exptime)( void *user, double exptime_sec, int dry_run, int verbose ); |
| 27 | + int (*scam_set_avgframes)( void *user, int avgframes, int dry_run, int verbose ); |
| 28 | + int (*is_stop_requested)( void *user ); |
| 29 | + void (*log_message)( void *user, const char *line ); |
| 30 | +} ngps_acq_hooks_t; |
| 31 | + |
| 32 | +void ngps_acq_set_hooks( const ngps_acq_hooks_t *hooks ); |
| 33 | +void ngps_acq_clear_hooks( void ); |
| 34 | +void ngps_acq_request_stop( int stop_requested ); |
| 35 | +int ngps_acq_run_from_argv( int argc, char **argv ); |
| 36 | + |
| 37 | +#ifdef __cplusplus |
| 38 | +} |
| 39 | +#endif |
0 commit comments