MAXREFDES63# Code Documentation
V01.00
8-Channel Digital Output MicroPLC
|
#include "stm32f10x.h"
#include "stdio.h"
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 | SET_CONFIG 2 |
// Menu state machine state | |
#define | SET_OUTPUT 3 |
// 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 | maxim_menu_cls (void) |
Function to clear the screen via Hyperterminal. | |
void | maxim_menu_print_maxim_banner (void) |
Print standard Maxim banner at top of Hyperterminal screen. | |
void | maxim_menu_print_maxim_banner_big (void) |
Print large Maxim banner at top of Hyperterminal screen. | |
void | maxim_menu_print_prompt (void) |
Print a standard prompt for keyboard input " > ". | |
uint8_t | maxim_menu_retrieve_keypress (void) |
Get a single keypress via Hyperterminal. | |
void | maxim_menu_print_main_menu (void) |
Print the main menu listing choice of module to test. | |
void | maxim_menu_print_configuration_description (void) |
Print configuration byte description. | |
void | maxim_menu_print_output_data_description (void) |
Print output data byte description. | |
******************************************************
Project: MAXREFDES63# Filename: menu.h Description: This module contains all the functions used to generate the menus and menu options used to run the MAXREFDES63 example firmware.
Revision History:
09-16-14 Rev 01.00 GL Initial release.
This code follows the following naming conventions:
char ch_pmod_value
char (array) s_pmod_string[16]
float f_pmod_value
int n_pmod_value
int (array) an_pmod_value[16]
u16 u_pmod_value
u16 (array) au_pmod_value[16]
u8 uch_pmod_value
u8 (array) auch_pmod_buffer[16]
unsigned int un_pmod_value
int * pun_pmod_value
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 |
void maxim_menu_cls | ( | void | ) |
void maxim_menu_print_configuration_description | ( | void | ) |
void maxim_menu_print_main_menu | ( | void | ) |
void maxim_menu_print_maxim_banner | ( | void | ) |
void maxim_menu_print_maxim_banner_big | ( | void | ) |
void maxim_menu_print_output_data_description | ( | void | ) |
void maxim_menu_print_prompt | ( | void | ) |
uint8_t maxim_menu_retrieve_keypress | ( | void | ) |
Get a single keypress via Hyperterminal.
None |
Character,partially | decoded. |