|
| typedef int | int4_type |
| |
| typedef unsigned int | uint4_type |
| |
| #define | HEADER_LEN 16 |
| |
| enum | nds_version { nds_try = 0
, nds_v1 = 1
, nds_v2 = 2
} |
| |
| typedef struct daq_block_header | daq_block_t |
| |
| typedef struct signal_conv_ | signal_conv_t |
| |
| typedef struct chan_req_ | chan_req_t |
| |
| typedef struct daq_ | daq_t |
| |
| typedef struct daq_channel_ | daq_channel_t |
| |
| typedef struct daq_channel_group_ | daq_channel_group_t |
| |
| DLL_EXPORT int | daq_clear_channel_list (daq_t *daq) |
| | Clear the channel list.
|
| |
| DLL_EXPORT int | daq_connect (daq_t *daq, const char *host, int port, enum nds_version version) |
| | Make a connection to an NDS server.
|
| |
| DLL_EXPORT void | daq_destroy (daq_t *daq) |
| | Close and delete all client status structure elements.
|
| |
| DLL_EXPORT int | daq_disconnect (daq_t *daq) |
| | Disconnect from the server.
|
| |
| DLL_EXPORT const char * | daq_get_channel_addr (daq_t *daq, const char *channel) |
| | Get a pointer to the data for the specified channel.
|
| |
| DLL_EXPORT char * | daq_get_channel_data (daq_t *daq, const char *channel, char *data) |
| | Copy channel data.
|
| |
| DLL_EXPORT int | daq_get_data_length (daq_t *daq, const char *channel) |
| | Get the channel data length.
|
| |
| DLL_EXPORT chan_req_t * | daq_get_channel_status (daq_t *daq, const char *channel) |
| | Get a pointer to channel data.
|
| |
| DLL_EXPORT int | daq_get_last_message (daq_t *daq, char *buf, size_t max_len, int *len) |
| | Get the last message.
|
| |
| DLL_EXPORT int | daq_get_scaled_data (daq_t *daq, const char *channel, float *data) |
| | Calibrate and copy channel data.
|
| |
| DLL_EXPORT void | daq_init (daq_t *daq) |
| | Initialize a daq_t structure.
|
| |
| DLL_EXPORT void | daq_init_channel (daq_channel_t *chan, const char *name, enum chantype ctype, double rate, daq_data_t dtype) |
| | Initialize a daq_channel_t structure.
|
| |
| DLL_EXPORT int | daq_is_connected (daq_t *daq) |
| | Test for connected server.
|
| |
| DLL_EXPORT int | daq_recv_block_num (daq_t *daq) |
| | Receive block number.
|
| |
| DLL_EXPORT int | daq_recv_block (daq_t *daq) |
| | Receive a data block.
|
| |
| DLL_EXPORT int | daq_recv_next (daq_t *daq) |
| | Receive a data block.
|
| |
| DLL_EXPORT int | daq_recv_shutdown (daq_t *daq) |
| | Close the client connection.
|
| |
| DLL_EXPORT int | daq_recv_channels (daq_t *daq, daq_channel_t *channel, int num_channels, int *num_channels_received) |
| | Get a list of online channels.
|
| |
| DLL_EXPORT int | daq_recv_channel_hash (daq_t *daq, void *hash, int *length, time_t gps, enum chantype type) |
| | Get a channel list hash.
|
| |
| DLL_EXPORT int | daq_recv_hash_by_pattern (daq_t *daq, void *hash, int *length, time_t gps, enum chantype type, const char *pat) |
| | Get a channel list hash.
|
| |
| DLL_EXPORT int | daq_recv_channel_list (daq_t *daq, daq_channel_t *channel, int num_channels, int *num_channels_received, time_t gps, enum chantype type) |
| | Get a list of channels.
|
| |
| DLL_EXPORT int | daq_recv_channels_by_pattern (daq_t *daq, daq_channel_t *channel, int num_channels, int *num_channels_received, time_t gps, enum chantype type, const char *pat) |
| | Get a list of channels.
|
| |
| DLL_EXPORT int | daq_recv_epoch_list (daq_t *daq, char *epochs, size_t max_len, int *str_len) |
| | Get a list of epochs.
|
| |
| DLL_EXPORT long | daq_recv_id (daq_t *daq) |
| | Receive an ID.
|
| |
| DLL_EXPORT int | daq_recv_source_data (daq_t *daq, char *sources, size_t max_len, time_t gps, long *str_len) |
| | Get a list of source frames.
|
| |
| DLL_EXPORT int | daq_recv_source_list (daq_t *daq, char *sources, size_t max_len, time_t gps, long *str_len) |
| | Get a list of source frames.
|
| |
| DLL_EXPORT int | daq_request_channel (daq_t *daq, const char *name, enum chantype type, double rate) |
| | Add a channel to the request list.
|
| |
| DLL_EXPORT int | daq_request_channel_from_chanlist (daq_t *daq, daq_channel_t *channel) |
| | Add a channel to the request list.
|
| |
| DLL_EXPORT int | daq_request_check (daq_t *daq, time_t start, time_t end) |
| | Check requested data.
|
| |
| DLL_EXPORT int | daq_request_data (daq_t *daq, time_t start, time_t end, time_t dt) |
| | Get requested data.
|
| |
| DLL_EXPORT int | daq_send (daq_t *daq, const char *command) |
| | send a command string.
|
| |
| DLL_EXPORT int | daq_set_epoch (daq_t *daq, const char *epoch) |
| | Set the default epoch.
|
| |
| DLL_EXPORT int | daq_startup (void) |
| | Initialize nds1/nds2 client subsystems.
|
| |
| DLL_EXPORT const char * | daq_strerror (int errornum) |
| | determine English equivalent of return code.
|
| |
| DLL_EXPORT uint4_type | daq_get_block_secs (daq_t *daq) |
| |
| DLL_EXPORT uint4_type | daq_get_block_gps (daq_t *daq) |
| |
| DLL_EXPORT uint4_type | daq_get_block_gpsn (daq_t *daq) |
| |
| DLL_EXPORT uint4_type | daq_get_block_seq_num (daq_t *daq) |
| |
| DLL_EXPORT char * | daq_get_block_data (daq_t *daq) |
| |