mrfioc2  2.3.0
mrfFracSynth.h
Go to the documentation of this file.
1 /***************************************************************************************************
2 |* mrfFracSynth.h -- EPICS Support Routines for the Micrel SY87739L Fractional-N Synthesizer Chip
3 |*
4 |*--------------------------------------------------------------------------------------------------
5 |* Author: Eric Bjorklund (LANSCE)
6 |* Date: 13 September 2006
7 |*
8 |*--------------------------------------------------------------------------------------------------
9 |* MODIFICATION HISTORY:
10 |* 13 Sep 2006 E.Bjorklund Original Release
11 |*
12 |*--------------------------------------------------------------------------------------------------
13 |* REFERENCE:
14 |* Micrel SY87739L Product Description. Available at:
15 |* http://www.micrel.com
16 |*
17 |*--------------------------------------------------------------------------------------------------
18 |* MODULE DESCRIPTION:
19 |*
20 |* This header file contains the function templates for the utility functions used to create and
21 |* analyze control words for the Micrel SY87739L Fractional-N Synthesizer chip.
22 |*
23 \**************************************************************************************************/
24 
25 
26 /**************************************************************************************************
27 |* COPYRIGHT NOTIFICATION
28 |**************************************************************************************************
29 |*
30 |* THE FOLLOWING IS A NOTICE OF COPYRIGHT, AVAILABILITY OF THE CODE,
31 |* AND DISCLAIMER WHICH MUST BE INCLUDED IN THE PROLOGUE OF THE CODE
32 |* AND IN ALL SOURCE LISTINGS OF THE CODE.
33 |*
34 |**************************************************************************************************
35 |*
36 |* Copyright (c) 2006 Los Alamos National Security, LLC
37 |* as Operator of Los Alamos National Laboratory.
38 |*
39 |**************************************************************************************************
40 |*
41 |* This software is distributed under the EPICS Open License Agreement which
42 |* can be found in the file, LICENSE, included with this distribution.
43 |*
44 \*************************************************************************************************/
45 
46 #ifndef SY87739L_H
47 #define SY87739L_H
48 
49 /**************************************************************************************************/
50 /* Other Header Files Required By This File */
51 /**************************************************************************************************/
52 
53 #include <epicsTypes.h> /* EPICS Architecture-independent type definitions */
54 #include <shareLib.h>
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 /**************************************************************************************************/
61 /* Function Prototypes for Fractional Synthesizer Utility Routines */
62 /**************************************************************************************************/
63 
64 epicsShareExtern epicsStatus mrfSetEventClockSpeed (epicsFloat64, epicsUInt32, epicsFloat64,
65  epicsFloat64*, epicsUInt32*, epicsInt32);
66 
67 epicsShareExtern epicsUInt32 FracSynthControlWord (epicsFloat64, epicsFloat64, epicsInt32, epicsFloat64*);
68 
69 epicsShareExtern epicsFloat64 FracSynthAnalyze (epicsUInt32, epicsFloat64, epicsInt32);
70 
71 /**************************************************************************************************/
72 /* Special Macros to Define Commonly Used Symbols */
73 /* (note that these values can be overridden in the invoking module) */
74 /**************************************************************************************************/
75 
76 
77 /*---------------------
78  * Success return code
79  */
80 #ifndef OK
81 #define OK (0)
82 #endif
83 
84 /*---------------------
85  * Failure return code
86  */
87 #ifndef ERROR
88 #define ERROR (-1)
89 #endif
90 
91 /*---------------------
92  * Success, but do not perform linear conversions (ai & ao record device support routines)
93  */
94 #ifndef NO_CONVERT
95 #define NO_CONVERT (2)
96 #endif
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif
epicsShareExtern epicsUInt32 FracSynthControlWord(epicsFloat64, epicsFloat64, epicsInt32, epicsFloat64 *)
Definition: mrfFracSynth.c:552
epicsShareExtern epicsStatus mrfSetEventClockSpeed(epicsFloat64, epicsUInt32, epicsFloat64, epicsFloat64 *, epicsUInt32 *, epicsInt32)
Definition: mrfFracSynth.c:365
epicsShareExtern epicsFloat64 FracSynthAnalyze(epicsUInt32, epicsFloat64, epicsInt32)
Definition: mrfFracSynth.c:844