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
menu.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 MENU_H_
62
#define MENU_H_
63
64
#include "xbasic_types.h"
65
#include "stdio.h"
66
#include "
MAXREFDES71.h
"
67
68
#define MAIN_MENU 0
69
#define WAIT_KEYPRESS 1
70
#define MENU_SAMPLE_SPEED 2
71
#define MENU_SAMPLE_SIZE 3
72
#define START_CONTINUOUS_SAMPLING 4
73
#define START_BLOCK_SAMPLING 5
74
#define MENU_CHANNEL 6
75
#define ADC_MENU 7
76
#define REP_RATE_MENU 8
77
#define BASE_FUNCTION_STATE 10
78
79
#define KEYPRESS_ARROW_UP 240
80
#define KEYPRESS_ARROW_DOWN 241
81
#define KEYPRESS_ARROW_LEFT 242
82
#define KEYPRESS_ARROW_RIGHT 243
83
#define KEYPRESS_END 244
84
85
// Function Prototypes
86
void
menu_cls
();
87
void
menu_print_maxim_banner
();
88
void
menu_print_maxim_banner_big
();
89
void
menu_print_prompt
();
90
u8
menu_retrieve_keypress
(u32 nUartAddress);
91
void
menu_print_main_menu
();
92
void
menu_print_ADC_menu
();
93
void
menu_print_channel_menu
();
94
void
menu_print_sample_rate_menu
();
95
void
menu_print_sample_size_menu
();
96
void
menu_print_replication_rate_menu
();
97
98
#endif
/* MENU_H_ */
src
menu.h
Generated on Mon Apr 14 2014 12:22:25 for MAXREFDES71# Code Documentation by
1.8.2