MAXREFDES71# Code Documentation
V01.00
MAXREFDES71# 2-Channel Analog Input/Analog Output
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Macros
Pages
MAXREFDES71.h
Go to the documentation of this file.
1
29
/*
30
* Copyright (C) 2012 Maxim Integrated Products, Inc., All Rights Reserved.
31
*
32
* Permission is hereby granted, free of charge, to any person obtaining a
33
* copy of this software and associated documentation files (the "Software"),
34
* to deal in the Software without restriction, including without limitation
35
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
36
* and/or sell copies of the Software, and to permit persons to whom the
37
* Software is furnished to do so, subject to the following conditions:
38
*
39
* The above copyright notice and this permission notice shall be included
40
* in all copies or substantial portions of the Software.
41
*
42
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
43
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
45
* IN NO EVENT SHALL MAXIM INTEGRATED PRODUCTS BE LIABLE FOR ANY CLAIM, DAMAGES
46
* OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
47
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
48
* OTHER DEALINGS IN THE SOFTWARE.
49
*
50
* Except as contained in this notice, the name of Maxim Integrated Products
51
* shall not be used except as stated in the Maxim Integrated Products
52
* Branding Policy.
53
*
54
* The mere transfer of this software does not imply any licenses
55
* of trade secrets, proprietary technology, copyrights, patents,
56
* trademarks, maskwork rights, or any other form of intellectual
57
* property whatsoever. Maxim Integrated Products retains all ownership rights.
58
*
59
***************************************************************************/
60
61
#ifndef MAXREFDES71_H_
62
#define MAXREFDES71_H_
63
64
#include "xparameters.h"
/* EDK generated parameters */
65
#include "stdio.h"
66
67
#include "xgpio.h"
68
#include "xgpio_l.h"
69
#include "
utilities.h
"
70
#include <string.h>
71
#include <stdio.h>
72
#include "
platform.h
"
73
#include "math.h"
74
75
#define DEFAULT_HYPERTERMINAL_UART_ID XPAR_PS7_UART_1_DEVICE_ID
76
#define DEFAULT_HYPERTERMINAL_UART_ADDRESS XPAR_PS7_UART_1_BASEADDR
77
78
#define ABOUT_ONE_SECOND 74067512
79
// Update this if uBlaze/Zynq CPU core frequency is changed, or if the external memory timing changes.
80
// Although emprirically tested to 1.0000003 seconds, it is not meant to be used for precise timing purposes
81
82
#define INPUT_STRING_MAX_SIZE 16
83
84
struct
maximDateTime
85
{
86
u8
uchHour
;
87
u8
uchMinute
;
88
u8
uchSecond
;
89
u8
uchMonth
;
90
u8
uchDate
;
91
u8
uchYear
;
92
u8
uchDow
;
93
};
94
95
struct
maximOLEDDisplay
96
{
97
XGpio
xgpioPort
;
98
u8
portStatus
;
99
u8
writeBuffer
[512];
100
u8
flippedBuffer
[512];
101
u8 *
font
;
102
};
103
extern
XGpio
g_xGpioLed
;
104
extern
u8
g_uchAtoDConverterChannel
;
105
extern
u32
g_unSampleSize
;
106
extern
int
g_nSampleRate
;
107
extern
char
g_sInputString
[
INPUT_STRING_MAX_SIZE
];
//This string will hold user input from terminal.
108
extern
struct
maximOLEDDisplay
g_structureOLED
;
109
extern
char
g_tempString
[32];
110
111
#endif
/* MAXREFDES32_H_ */
src
MAXREFDES71.h
Generated on Mon Apr 14 2014 12:22:25 for MAXREFDES71# Code Documentation by
1.8.2