A program to measure the temperature using the Max6675 board. The temperature is shown on 8x8 Max7219 matrix display and it is saved on SD as well.

Dependencies:   MAX7219 SDFileSystem mbed

Fork of MAXREFDES99_demo by Maxim Integrated

The program measures the temperature using the Max6675 board designed for Arduino. The temperature is shown on Max7219 8x8 matrix display (designed for Arduino as well) as text marque from right to left. The fonf size is 5x7 so the last row is used to show some info:

- All leds off: Normal temperature measuring - Leds shifting: Saving on SD card - Leds blinking: SD card missing or damaged

The Blue "user button" is used to save measured temperature on SD card. First click start saving, the second stop the process. Together the temperature is saved also the time. The time is reset when the process start. Connecting the USB to PC it's possible to see instant temperature and all saved data on SD.

Committer:
lore71
Date:
Thu Oct 04 11:37:43 2018 +0000
Revision:
12:1bd4a9f09a8d
Parent:
8:a6a0c9e280ae
A program to measure the temperature using the Max6675 board.; The temperature is shown on 8x8 Max7219 matrix display and it is saved on SD as well.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
j3 0:6b0161c3e440 1 /******************************************************************//**
j3 0:6b0161c3e440 2 * @file maxrefdes99.h
j3 0:6b0161c3e440 3 * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
j3 0:6b0161c3e440 4 *
j3 0:6b0161c3e440 5 * Permission is hereby granted, free of charge, to any person obtaining a
j3 0:6b0161c3e440 6 * copy of this software and associated documentation files (the "Software"),
j3 0:6b0161c3e440 7 * to deal in the Software without restriction, including without limitation
j3 0:6b0161c3e440 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
j3 0:6b0161c3e440 9 * and/or sell copies of the Software, and to permit persons to whom the
j3 0:6b0161c3e440 10 * Software is furnished to do so, subject to the following conditions:
j3 0:6b0161c3e440 11 *
j3 0:6b0161c3e440 12 * The above copyright notice and this permission notice shall be included
j3 0:6b0161c3e440 13 * in all copies or substantial portions of the Software.
j3 0:6b0161c3e440 14 *
j3 0:6b0161c3e440 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
j3 0:6b0161c3e440 16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
j3 0:6b0161c3e440 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
j3 0:6b0161c3e440 18 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
j3 0:6b0161c3e440 19 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
j3 0:6b0161c3e440 20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
j3 0:6b0161c3e440 21 * OTHER DEALINGS IN THE SOFTWARE.
j3 0:6b0161c3e440 22 *
j3 0:6b0161c3e440 23 * Except as contained in this notice, the name of Maxim Integrated
j3 0:6b0161c3e440 24 * Products, Inc. shall not be used except as stated in the Maxim Integrated
j3 0:6b0161c3e440 25 * Products, Inc. Branding Policy.
j3 0:6b0161c3e440 26 *
j3 0:6b0161c3e440 27 * The mere transfer of this software does not imply any licenses
j3 0:6b0161c3e440 28 * of trade secrets, proprietary technology, copyrights, patents,
j3 0:6b0161c3e440 29 * trademarks, maskwork rights, or any other form of intellectual
j3 0:6b0161c3e440 30 * property whatsoever. Maxim Integrated Products, Inc. retains all
j3 0:6b0161c3e440 31 * ownership rights.
j3 0:6b0161c3e440 32 **********************************************************************/
j3 0:6b0161c3e440 33
j3 0:6b0161c3e440 34 #ifndef MAXREFDES99_H
j3 0:6b0161c3e440 35 #define MAXREFDES99_H
j3 0:6b0161c3e440 36
j3 0:6b0161c3e440 37
j3 0:6b0161c3e440 38 #include "mbed.h"
j3 0:6b0161c3e440 39 #include "max7219.h"
j3 0:6b0161c3e440 40
j3 0:6b0161c3e440 41
j3 1:06c0a61ca171 42 /**********************************************************//**
pradipv 8:a6a0c9e280ae 43 * @brief Gets character bitmap fom memory
j3 1:06c0a61ca171 44 *
j3 1:06c0a61ca171 45 * @details
j3 1:06c0a61ca171 46 *
j3 1:06c0a61ca171 47 * On Entry:
j3 1:06c0a61ca171 48 * @param[in] c - character to get bitmap for
j3 1:06c0a61ca171 49 * @param[in] char_buff - pointer to buffer to store bitmap in
j3 1:06c0a61ca171 50 * must be at least 6 bytes
j3 1:06c0a61ca171 51 *
j3 1:06c0a61ca171 52 * On Exit:
pradipv 8:a6a0c9e280ae 53 * @return None
j3 1:06c0a61ca171 54 **************************************************************/
j3 0:6b0161c3e440 55 void get_5x7_character(char c, uint8_t *char_buff);
j3 0:6b0161c3e440 56
j3 0:6b0161c3e440 57
j3 1:06c0a61ca171 58 /**********************************************************//**
pradipv 8:a6a0c9e280ae 59 * @brief Prints character to MAXREFDES99 at given position
j3 1:06c0a61ca171 60 *
j3 1:06c0a61ca171 61 * @details
j3 1:06c0a61ca171 62 *
j3 1:06c0a61ca171 63 * On Entry:
j3 1:06c0a61ca171 64 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 65 * @param[in] position - position to print char to
j3 1:06c0a61ca171 66 * posiion 1 is top left column, position 32
j3 1:06c0a61ca171 67 * is bottom right column
j3 1:06c0a61ca171 68 * @param[in] c - char to print
j3 1:06c0a61ca171 69 *
j3 1:06c0a61ca171 70 * On Exit:
pradipv 8:a6a0c9e280ae 71 * @return None
j3 1:06c0a61ca171 72 **************************************************************/
j3 0:6b0161c3e440 73 void print_char(Max7219 *p_display, uint8_t position, char c);
j3 0:6b0161c3e440 74
j3 0:6b0161c3e440 75
j3 1:06c0a61ca171 76 /**********************************************************//**
pradipv 8:a6a0c9e280ae 77 * @brief Prints given string to MAXREFDES99 at given position
j3 1:06c0a61ca171 78 *
j3 1:06c0a61ca171 79 * @details
j3 1:06c0a61ca171 80 *
j3 1:06c0a61ca171 81 * On Entry:
j3 1:06c0a61ca171 82 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 83 * @param[in] position - position to print char to
j3 1:06c0a61ca171 84 * posiion 1 is top left column, position 32
j3 1:06c0a61ca171 85 * is bottom right column
j3 1:06c0a61ca171 86 * @param[in] s - pointer to string to print
j3 1:06c0a61ca171 87 *
j3 1:06c0a61ca171 88 * On Exit:
pradipv 8:a6a0c9e280ae 89 * @return None
j3 1:06c0a61ca171 90 **************************************************************/
j3 0:6b0161c3e440 91 void print_string(Max7219 *p_display, uint8_t position, const char *s);
j3 0:6b0161c3e440 92
j3 0:6b0161c3e440 93
j3 1:06c0a61ca171 94 /**********************************************************//**
pradipv 8:a6a0c9e280ae 95 * @brief Shifts display right 'count' positions with given
j3 1:06c0a61ca171 96 * delay between shifts
j3 1:06c0a61ca171 97 *
j3 1:06c0a61ca171 98 * @details
j3 1:06c0a61ca171 99 *
j3 1:06c0a61ca171 100 * On Entry:
j3 1:06c0a61ca171 101 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 102 * @param[in] count - number of positions to shift
j3 1:06c0a61ca171 103 * @param[in] delay - delay between shifts
j3 1:06c0a61ca171 104 *
j3 1:06c0a61ca171 105 * On Exit:
pradipv 8:a6a0c9e280ae 106 * @return None
j3 1:06c0a61ca171 107 **************************************************************/
j3 0:6b0161c3e440 108 void shift_display_right(Max7219 *p_display, uint8_t count, uint8_t delay);
j3 0:6b0161c3e440 109
j3 0:6b0161c3e440 110
j3 1:06c0a61ca171 111 /**********************************************************//**
pradipv 8:a6a0c9e280ae 112 * @brief Shifts display left 'count' positions with given
j3 1:06c0a61ca171 113 * delay between shifts
j3 1:06c0a61ca171 114 *
j3 1:06c0a61ca171 115 * @details
j3 1:06c0a61ca171 116 *
j3 1:06c0a61ca171 117 * On Entry:
j3 1:06c0a61ca171 118 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 119 * @param[in] count - number of positions to shift
j3 1:06c0a61ca171 120 * @param[in] delay - delay between shifts
j3 1:06c0a61ca171 121 *
j3 1:06c0a61ca171 122 * On Exit:
pradipv 8:a6a0c9e280ae 123 * @return None
j3 1:06c0a61ca171 124 **************************************************************/
j3 0:6b0161c3e440 125 void shift_display_left(Max7219 *p_display, uint8_t count, uint8_t delay);
j3 0:6b0161c3e440 126
j3 0:6b0161c3e440 127
j3 1:06c0a61ca171 128 /**********************************************************//**
pradipv 8:a6a0c9e280ae 129 * @brief Turns on all leds for given quadrant, with quad 1 being
j3 1:06c0a61ca171 130 * top left and quad 4 being bottom right
j3 1:06c0a61ca171 131 *
j3 1:06c0a61ca171 132 * @details
j3 1:06c0a61ca171 133 *
j3 1:06c0a61ca171 134 * On Entry:
j3 1:06c0a61ca171 135 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 136 * @param[in] quad - see brief
j3 1:06c0a61ca171 137 *
j3 1:06c0a61ca171 138 * On Exit:
pradipv 8:a6a0c9e280ae 139 * @return None
j3 1:06c0a61ca171 140 **************************************************************/
j3 0:6b0161c3e440 141 void quad_all_on(Max7219 *p_display, uint8_t quad);
j3 0:6b0161c3e440 142
j3 0:6b0161c3e440 143
j3 1:06c0a61ca171 144 /**********************************************************//**
pradipv 8:a6a0c9e280ae 145 * @brief Turns off all leds for given quadrant, with quad 1 being
j3 1:06c0a61ca171 146 * top left and quad 4 being bottom right
j3 1:06c0a61ca171 147 *
j3 1:06c0a61ca171 148 * @details
j3 1:06c0a61ca171 149 *
j3 1:06c0a61ca171 150 * On Entry:
j3 1:06c0a61ca171 151 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 152 * @param[in] quad - see brief
j3 1:06c0a61ca171 153 *
j3 1:06c0a61ca171 154 * On Exit:
pradipv 8:a6a0c9e280ae 155 * @return None
j3 1:06c0a61ca171 156 **************************************************************/
j3 0:6b0161c3e440 157 void quad_all_off(Max7219 *p_display, uint8_t quad);
j3 0:6b0161c3e440 158
j3 0:6b0161c3e440 159
j3 1:06c0a61ca171 160 /**********************************************************//**
pradipv 8:a6a0c9e280ae 161 * @brief Turns all leds for whole display on
j3 1:06c0a61ca171 162 *
j3 1:06c0a61ca171 163 * @details
j3 1:06c0a61ca171 164 *
j3 1:06c0a61ca171 165 * On Entry:
j3 1:06c0a61ca171 166 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 167 *
j3 1:06c0a61ca171 168 * On Exit:
pradipv 8:a6a0c9e280ae 169 * @return None
j3 1:06c0a61ca171 170 **************************************************************/
j3 0:6b0161c3e440 171 void all_on(Max7219 *p_display);
j3 0:6b0161c3e440 172
j3 0:6b0161c3e440 173
j3 1:06c0a61ca171 174 /**********************************************************//**
pradipv 8:a6a0c9e280ae 175 * @brief Turns all leds for whole display off
j3 1:06c0a61ca171 176 *
j3 1:06c0a61ca171 177 * @details
j3 1:06c0a61ca171 178 *
j3 1:06c0a61ca171 179 * On Entry:
j3 1:06c0a61ca171 180 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 181 *
j3 1:06c0a61ca171 182 * On Exit:
pradipv 8:a6a0c9e280ae 183 * @return None
j3 1:06c0a61ca171 184 **************************************************************/
j3 0:6b0161c3e440 185 void all_off(Max7219 *p_display);
j3 0:6b0161c3e440 186
j3 0:6b0161c3e440 187
j3 1:06c0a61ca171 188 /**********************************************************//**
pradipv 8:a6a0c9e280ae 189 * @brief Demo loop for MAXREFDES99
j3 1:06c0a61ca171 190 *
j3 1:06c0a61ca171 191 * @details
j3 1:06c0a61ca171 192 *
j3 1:06c0a61ca171 193 * On Entry:
j3 1:06c0a61ca171 194 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 195 * @param[in] display_config - structure holding configuration data
j3 1:06c0a61ca171 196 * @param[in] endless_loop - if true run demo in endless loop
j3 1:06c0a61ca171 197 *
j3 1:06c0a61ca171 198 * On Exit:
pradipv 8:a6a0c9e280ae 199 * @return None
j3 1:06c0a61ca171 200 **************************************************************/
j3 0:6b0161c3e440 201 void demo(Max7219 *display, max7219_configuration_t display_config, bool endless_loop);
j3 0:6b0161c3e440 202
j3 0:6b0161c3e440 203
j3 1:06c0a61ca171 204 /**********************************************************//**
pradipv 8:a6a0c9e280ae 205 * @brief Shift display in given direction forever
j3 1:06c0a61ca171 206 *
j3 1:06c0a61ca171 207 * @details
j3 1:06c0a61ca171 208 *
j3 1:06c0a61ca171 209 * On Entry:
j3 1:06c0a61ca171 210 * @param[in] p_display - pointer to Max7219 object
j3 1:06c0a61ca171 211 * @param[in] scroll_right - if true shift right, else shift left
j3 1:06c0a61ca171 212 *
j3 1:06c0a61ca171 213 * On Exit:
pradipv 8:a6a0c9e280ae 214 * @return None
j3 1:06c0a61ca171 215 **************************************************************/
j3 0:6b0161c3e440 216 void endless_scroll_display(Max7219 *display, uint32_t scroll_right);
j3 0:6b0161c3e440 217
pradipv 3:41bdbc9b3cec 218 /**********************************************************//**
pradipv 8:a6a0c9e280ae 219 * @brief Gets 16x16 character bitmap fom memory
pradipv 3:41bdbc9b3cec 220 *
pradipv 3:41bdbc9b3cec 221 * @details
pradipv 3:41bdbc9b3cec 222 *
pradipv 3:41bdbc9b3cec 223 * On Entry:
pradipv 3:41bdbc9b3cec 224 * @param[in] c - character to get bitmap for
pradipv 3:41bdbc9b3cec 225 * @param[in] char_buff - pointer to buffer to store bitmap
pradipv 3:41bdbc9b3cec 226 * Buffer should be 32 bytes
pradipv 6:00aabe967e51 227 * @param[in] font_type - 16x16 font type used for display
pradipv 3:41bdbc9b3cec 228 * On Exit:
pradipv 8:a6a0c9e280ae 229 * @return None
pradipv 3:41bdbc9b3cec 230 **************************************************************/
pradipv 8:a6a0c9e280ae 231 void get_16x16_character(char c, uint8_t *char_buff, uint8_t font_type);
pradipv 3:41bdbc9b3cec 232
pradipv 3:41bdbc9b3cec 233
pradipv 3:41bdbc9b3cec 234 /**********************************************************//**
pradipv 8:a6a0c9e280ae 235 * @brief Prints character to MAXREFDES99 16x16 LED display
pradipv 3:41bdbc9b3cec 236 *
pradipv 3:41bdbc9b3cec 237 * @details
pradipv 3:41bdbc9b3cec 238 *
pradipv 3:41bdbc9b3cec 239 * On Entry:
pradipv 3:41bdbc9b3cec 240 * @param[in] p_display - pointer to Max7219 object
pradipv 3:41bdbc9b3cec 241 @param[in] position - for single char print this value is zero,
pradipv 3:41bdbc9b3cec 242 for string case it is multiple of 32 bytes as each char data is 32 bytes,
pradipv 3:41bdbc9b3cec 243 * @param[in] c - char to print
pradipv 6:00aabe967e51 244 * @param[in] font_type - 16x16 font type used for display
pradipv 3:41bdbc9b3cec 245 *
pradipv 3:41bdbc9b3cec 246 * On Exit:
pradipv 8:a6a0c9e280ae 247 * @return None
pradipv 3:41bdbc9b3cec 248 **************************************************************/
pradipv 8:a6a0c9e280ae 249 void print_char_16x16(Max7219 *p_display, uint16_t position, char c, uint8_t font_type);
pradipv 3:41bdbc9b3cec 250
pradipv 3:41bdbc9b3cec 251
pradipv 3:41bdbc9b3cec 252 /**********************************************************//**
pradipv 8:a6a0c9e280ae 253 * @brief Prints given string to MAXREFDES99 16x16 LED display
pradipv 3:41bdbc9b3cec 254 *
pradipv 3:41bdbc9b3cec 255 * @details
pradipv 3:41bdbc9b3cec 256 *
pradipv 3:41bdbc9b3cec 257 * On Entry:
pradipv 3:41bdbc9b3cec 258 * @param[in] p_display - pointer to Max7219 object
pradipv 3:41bdbc9b3cec 259 * @param[in] s - pointer to string to print
pradipv 6:00aabe967e51 260 * @param[in] font_type - 16x16 font type used for display
pradipv 3:41bdbc9b3cec 261 *
pradipv 3:41bdbc9b3cec 262 * On Exit:
pradipv 8:a6a0c9e280ae 263 * @return None
pradipv 3:41bdbc9b3cec 264 **************************************************************/
pradipv 6:00aabe967e51 265 void print_string_16x16(Max7219 *p_display, char *s, uint8_t font_type);
pradipv 3:41bdbc9b3cec 266
pradipv 3:41bdbc9b3cec 267
pradipv 3:41bdbc9b3cec 268 /**********************************************************//**
pradipv 8:a6a0c9e280ae 269 * @brief Shifts 16x16 font display right 'count' positions with given
pradipv 3:41bdbc9b3cec 270 * delay between shifts
pradipv 3:41bdbc9b3cec 271 *
pradipv 3:41bdbc9b3cec 272 * @details
pradipv 3:41bdbc9b3cec 273 *
pradipv 3:41bdbc9b3cec 274 * On Entry:
pradipv 3:41bdbc9b3cec 275 * @param[in] p_display - pointer to Max7219 object
pradipv 3:41bdbc9b3cec 276 * @param[in] count - number of positions to shift
pradipv 3:41bdbc9b3cec 277 * @param[in] delay - delay between shifts in milliseconds
pradipv 3:41bdbc9b3cec 278 *
pradipv 3:41bdbc9b3cec 279 * On Exit:
pradipv 8:a6a0c9e280ae 280 * @return None
pradipv 3:41bdbc9b3cec 281 **************************************************************/
pradipv 3:41bdbc9b3cec 282 void shift_display_right_16x16(Max7219 *p_display, uint8_t count, uint8_t delay);
pradipv 3:41bdbc9b3cec 283
pradipv 3:41bdbc9b3cec 284
pradipv 3:41bdbc9b3cec 285 /**********************************************************//**
pradipv 8:a6a0c9e280ae 286 * @brief Shifts 16x16 font display left 'count' positions with given
pradipv 3:41bdbc9b3cec 287 * delay between shifts
pradipv 3:41bdbc9b3cec 288 *
pradipv 3:41bdbc9b3cec 289 * @details
pradipv 3:41bdbc9b3cec 290 *
pradipv 3:41bdbc9b3cec 291 * On Entry:
pradipv 3:41bdbc9b3cec 292 * @param[in] p_display - pointer to Max7219 object
pradipv 3:41bdbc9b3cec 293 * @param[in] count - number of positions to shift
pradipv 3:41bdbc9b3cec 294 * @param[in] delay - delay between shifts in milliseconds
pradipv 3:41bdbc9b3cec 295 *
pradipv 3:41bdbc9b3cec 296 * On Exit:
pradipv 8:a6a0c9e280ae 297 * @return None
pradipv 3:41bdbc9b3cec 298 **************************************************************/
pradipv 3:41bdbc9b3cec 299 void shift_display_left_16x16(Max7219 *p_display, uint8_t count, uint8_t delay);
pradipv 3:41bdbc9b3cec 300
pradipv 3:41bdbc9b3cec 301 /**********************************************************//**
pradipv 8:a6a0c9e280ae 302 * @brief Demo loop for MAXREFDES99 with 16x16 font display
pradipv 3:41bdbc9b3cec 303 *
pradipv 3:41bdbc9b3cec 304 * @details
pradipv 3:41bdbc9b3cec 305 *
pradipv 3:41bdbc9b3cec 306 * On Entry:
pradipv 3:41bdbc9b3cec 307 * @param[in] p_display - pointer to Max7219 object
pradipv 3:41bdbc9b3cec 308 * @param[in] display_config - structure holding configuration data
pradipv 6:00aabe967e51 309 * @param[in] font_type - 16x16 font type used for display
pradipv 3:41bdbc9b3cec 310 * @param[in] endless_loop - if true run demo in endless loop
pradipv 3:41bdbc9b3cec 311 *
pradipv 3:41bdbc9b3cec 312 * On Exit:
pradipv 8:a6a0c9e280ae 313 * @return None
pradipv 3:41bdbc9b3cec 314 **************************************************************/
pradipv 8:a6a0c9e280ae 315 void demo_16x16(Max7219 *display, max7219_configuration_t display_config, uint8_t font_type, bool endless_loop);
pradipv 3:41bdbc9b3cec 316
pradipv 3:41bdbc9b3cec 317
pradipv 3:41bdbc9b3cec 318 /**********************************************************//**
pradipv 8:a6a0c9e280ae 319 * @brief Shift 16x16 font display in given direction forever
pradipv 3:41bdbc9b3cec 320 *
pradipv 3:41bdbc9b3cec 321 * @details
pradipv 3:41bdbc9b3cec 322 *
pradipv 3:41bdbc9b3cec 323 * On Entry:
pradipv 3:41bdbc9b3cec 324 * @param[in] p_display - pointer to Max7219 object
pradipv 3:41bdbc9b3cec 325 * @param[in] scroll_right - if true shift right, else shift left
pradipv 3:41bdbc9b3cec 326 *
pradipv 3:41bdbc9b3cec 327 * On Exit:
pradipv 8:a6a0c9e280ae 328 * @return None
pradipv 3:41bdbc9b3cec 329 **************************************************************/
pradipv 3:41bdbc9b3cec 330 void endless_scroll_display_16x16(Max7219 *display, uint32_t scroll_right);
pradipv 3:41bdbc9b3cec 331
j3 0:6b0161c3e440 332
j3 1:06c0a61ca171 333 /**********************************************************//**
pradipv 8:a6a0c9e280ae 334 * @brief Print demo menu
j3 1:06c0a61ca171 335 *
j3 1:06c0a61ca171 336 * @details
j3 1:06c0a61ca171 337 *
j3 1:06c0a61ca171 338 * On Entry:
j3 1:06c0a61ca171 339 *
j3 1:06c0a61ca171 340 * On Exit:
pradipv 8:a6a0c9e280ae 341 * @return User entry
j3 1:06c0a61ca171 342 **************************************************************/
j3 0:6b0161c3e440 343 uint32_t print_menu(void);
j3 0:6b0161c3e440 344
j3 0:6b0161c3e440 345
j3 1:06c0a61ca171 346 /**********************************************************//**
pradipv 8:a6a0c9e280ae 347 * @brief Get integer value from user
j3 1:06c0a61ca171 348 *
j3 1:06c0a61ca171 349 * @details
j3 1:06c0a61ca171 350 *
j3 1:06c0a61ca171 351 * On Entry:
j3 1:06c0a61ca171 352 * @param[in] msg - prompt for user
j3 1:06c0a61ca171 353 * @param[in] max_val - maximum allowable input
j3 1:06c0a61ca171 354 *
j3 1:06c0a61ca171 355 * On Exit:
pradipv 8:a6a0c9e280ae 356 * @return User entry
j3 1:06c0a61ca171 357 **************************************************************/
j3 0:6b0161c3e440 358 uint32_t get_user_input(char *msg, uint32_t max_val);
j3 0:6b0161c3e440 359
j3 0:6b0161c3e440 360
j3 1:06c0a61ca171 361 /**********************************************************//**
pradipv 8:a6a0c9e280ae 362 * @brief Get char from user
j3 1:06c0a61ca171 363 *
j3 1:06c0a61ca171 364 * @details
j3 1:06c0a61ca171 365 *
j3 1:06c0a61ca171 366 * On Entry:
j3 1:06c0a61ca171 367 * @param[in] msg - prompt for user
j3 1:06c0a61ca171 368 *
j3 1:06c0a61ca171 369 * On Exit:
pradipv 8:a6a0c9e280ae 370 * @return User entry
j3 1:06c0a61ca171 371 **************************************************************/
j3 0:6b0161c3e440 372 char get_user_char(char *msg);
j3 0:6b0161c3e440 373
j3 0:6b0161c3e440 374
j3 1:06c0a61ca171 375 /**********************************************************//**
pradipv 8:a6a0c9e280ae 376 * @brief Get string from user
j3 1:06c0a61ca171 377 *
j3 1:06c0a61ca171 378 * @details
j3 1:06c0a61ca171 379 *
j3 1:06c0a61ca171 380 * On Entry:
j3 1:06c0a61ca171 381 * @param[in] msg - prompt for user
j3 1:06c0a61ca171 382 *
j3 1:06c0a61ca171 383 * On Exit:
pradipv 8:a6a0c9e280ae 384 * @return User entry
j3 1:06c0a61ca171 385 **************************************************************/
j3 0:6b0161c3e440 386 char * get_user_string(char *msg);
j3 0:6b0161c3e440 387
j3 0:6b0161c3e440 388
j3 0:6b0161c3e440 389 #endif /*MAXREFDES99_H*/
j3 0:6b0161c3e440 390