MAXREFDES71# Code Documentation
V01.00
MAXREFDES71# 2-Channel Analog Input/Analog Output
|
Go to the source code of this file.
Macros | |
#define | MAIN_MENU 0 |
// Menu state machine state | |
#define | WAIT_KEYPRESS 1 |
// Menu state machine state | |
#define | MENU_SAMPLE_SPEED 2 |
// Menu state machine state | |
#define | MENU_SAMPLE_SIZE 3 |
// Menu state machine state | |
#define | START_CONTINUOUS_SAMPLING 4 |
// Menu state machine state | |
#define | START_BLOCK_SAMPLING 5 |
// Menu state machine state | |
#define | MENU_CHANNEL 6 |
// Menu state machine state | |
#define | ADC_MENU 7 |
// Menu state machine state | |
#define | REP_RATE_MENU 8 |
// Menu state machine state | |
#define | BASE_FUNCTION_STATE 10 |
// Menu state machine state | |
#define | KEYPRESS_ARROW_UP 240 |
Assign up-arrow an extended ascii code which won't be used elsewhere. | |
#define | KEYPRESS_ARROW_DOWN 241 |
Assign up-arrow an extended ascii code which won't be used elsewhere. | |
#define | KEYPRESS_ARROW_LEFT 242 |
Assign up-arrow an extended ascii code which won't be used elsewhere. | |
#define | KEYPRESS_ARROW_RIGHT 243 |
Assign up-arrow an extended ascii code which won't be used elsewhere. | |
#define | KEYPRESS_END 244 |
Assign up-arrow an extended ascii code which won't be used elsewhere. | |
Functions | |
void | menu_cls () |
Function to clear the screen via Hyperterminal. | |
void | menu_print_maxim_banner () |
Print standard Maxim banner at top of Hyperterminal screen. | |
void | menu_print_maxim_banner_big () |
Print large Maxim banner at top of Hyperterminal screen. | |
void | menu_print_prompt () |
Print a standard prompt for keyboard input " > ". | |
u8 | menu_retrieve_keypress (u32 nUartAddress) |
Get a single keypress via Hyperterminal. | |
void | menu_print_main_menu () |
Print the main menu listing choice of module to test. | |
void | menu_print_ADC_menu () |
Print the ADC conversion menu. | |
void | menu_print_channel_menu () |
void | menu_print_sample_rate_menu () |
Print a menu listing sample speed choices. | |
void | menu_print_sample_size_menu () |
Print a menu listing sample size choices. | |
void | menu_print_replication_rate_menu () |
Print the replication rate menu listing choice of module to test. | |
Project: MAXREFDES70# Filename: menu.h Description: This module contains all the functions used to generate the menus and menu options used to run the MAXREFDES71# example firmware.
Revision History:
12-17-13 Rev 01.00 GL Initial Release
This code follows the following naming conventions:
char chPmodValue
char (array) sPmodString[16]
float fPmodValue
int nPmodValue
int (array) anPmodValue[16]
u16 uPmodValue
u16 (array) auPmodValue[16]
u8 uchPmodValue
u8 (array) auchPmodBuffer[16]
unsigned int unPmodValue
int * punPmodValue
Definition in file menu.h.
#define KEYPRESS_ARROW_DOWN 241 |
#define KEYPRESS_ARROW_LEFT 242 |
#define KEYPRESS_ARROW_RIGHT 243 |
#define KEYPRESS_ARROW_UP 240 |
#define KEYPRESS_END 244 |
#define START_CONTINUOUS_SAMPLING 4 |
void menu_cls | ( | ) |
void menu_print_ADC_menu | ( | ) |
void menu_print_main_menu | ( | ) |
void menu_print_maxim_banner | ( | ) |
void menu_print_maxim_banner_big | ( | ) |
void menu_print_prompt | ( | ) |
void menu_print_replication_rate_menu | ( | ) |
void menu_print_sample_rate_menu | ( | ) |
void menu_print_sample_size_menu | ( | ) |
u8 menu_retrieve_keypress | ( | u32 | nUartAddress | ) |
Get a single keypress via Hyperterminal.
[in] | nUartAddress | - address of the UART peripheral in MicroBlaze memory map |
Character,partially | decoded. |