COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
ts2000_lib.h
Go to the documentation of this file.
1 /********************************************************************
2 * Copyright (C) 2015 by Interstel Technologies, Inc.
3 * and Hawaii Space Flight Laboratory.
4 *
5 * This file is part of the COSMOS/core that is the central
6 * module for COSMOS. For more information on COSMOS go to
7 * <http://cosmos-project.com>
8 *
9 * The COSMOS/core software is licenced under the
10 * GNU Lesser General Public License (LGPL) version 3 licence.
11 *
12 * You should have received a copy of the
13 * GNU Lesser General Public License
14 * If not, go to <http://www.gnu.org/licenses/>
15 *
16 * COSMOS/core is free software: you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public License
18 * as published by the Free Software Foundation, either version 3 of
19 * the License, or (at your option) any later version.
20 *
21 * COSMOS/core is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * Refer to the "licences" folder for further information on the
27 * condititons and terms to use this software.
28 ********************************************************************/
29 
37 #ifndef _TS2000LIB_H
38 #define _TS2000LIB_H 1
39 
40 #include "support/configCosmos.h"
41 
42 #include <stdio.h>
43 #include <errno.h>
44 
45 #include "math/mathlib.h"
47 #include "support/cosmos-errno.h"
48 
49 #define TS2000_ID 1
50 #define TS2000_BAUD 9600
51 #define TS2000_BITS 8
52 #define TS2000_PARITY 0
53 #define TS2000_STOPBITS 1
54 
55 
60 typedef struct
61  {
62  double frequency[2];
63  } ts2000_state;
64 
65 int ts2000_connect(char *dev);
66 int ts2000_disconnect();
67 double ts2000_get_frequency(int channel);
68 double ts2000_set_frequency(int channel, double frequency);
69 
70 #endif
int ts2000_connect(char *dev)
Simple Serial library header file.
double ts2000_set_frequency(int channel, double frequency)
int ts2000_disconnect()
Headers and definitions common to all COSMOS.
COSMOS Error Codes.
mathlib include file
TS2000 state.
Definition: ts2000_lib.h:60
double ts2000_get_frequency(int channel)