X-CUBE-SPN11 for X-NUCLEO-IHM11M1: UART_UI.h Source File

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

UART_UI.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * @file UART_UI.h
4  * @author System lab
5  * @version V1.0.0
6  * @date 06-July-2015
7  * @brief This file provides a set of functions needed to manage the UART com.
8  ******************************************************************************
9  * @attention
10  *
11  * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
12  *
13  * Redistribution and use in source and binary forms, with or without modification,
14  * are permitted provided that the following conditions are met:
15  * 1. Redistributions of source code must retain the above copyright notice,
16  * this list of conditions and the following disclaimer.
17  * 2. Redistributions in binary form must reproduce the above copyright notice,
18  * this list of conditions and the following disclaimer in the documentation
19  * and/or other materials provided with the distribution.
20  * 3. Neither the name of STMicroelectronics nor the names of its contributors
21  * may be used to endorse or promote products derived from this software
22  * without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34  *
35  ******************************************************************************
36  */
37 
38 #include "6Step_Lib.h"
39 #include "stdlib.h"
40 #include "stdio.h"
41 #include <string.h>
42 
43 #define TOKEN "\r"
44 #define CMD_NUM 16
45 
46 #define COUNTOF(__BUFFER__) (sizeof(__BUFFER__) / sizeof(*(__BUFFER__)))
47 #define TXBUFFERSIZE (COUNTOF(aTxBuffer) - 1)
48 #define RXBUFFERSIZE 8
49 
50 typedef struct {
51  char name[10];
52  void (*pCmdFunc)(void);
53 } CMD_T;
54 
55 /** @addtogroup MIDDLEWARES MIDDLEWARES
56  * @brief Middlewares Layer
57  * @{
58  */
59 
60 
61 /** @addtogroup UART_UI UART_UI
62  * @brief Serial communication through PC serial terminal
63  * @{
64  */
65 
66 /** @defgroup Exported_function_Uart Exported_function_Uart
67 * @{
68 */
69 /**
70  * @brief UART function
71  */
72 
73 void CMD_STARTM( void );
74 void CMD_STOPMT( void );
75 void CMD_DIRECTION( void );
76 void CMD_SETSPD( void );
77 void CMD_GETSPD( void );
78 void CMD_STATUS( void );
79 void CMD_POTENZ( void );
80 void CMD_HELP(void);
81 void CMD_INIREF(void);
82 void CMD_POLESP(void);
83 void CMD_ACCELE(void);
84 void CMD_KP_PRM(void);
85 void CMD_KI_PRM(void);
86 
87 /**
88  * @}
89  */
90 
91 /**
92  * @}
93  */
94 
95 /**
96  * @}
97  */
void CMD_POTENZ(void)
void CMD_GETSPD(void)
void CMD_STARTM(void)
UART function.
void CMD_INIREF(void)
void CMD_DIRECTION(void)
void CMD_SETSPD(void)
void CMD_STATUS(void)
Definition: UART_UI.h:50
void CMD_STOPMT(void)
void CMD_ACCELE(void)
void CMD_POLESP(void)
void CMD_KP_PRM(void)
void CMD_KI_PRM(void)
This header file provides the set of functions for Motor Control library.
void CMD_HELP(void)
Generated by   doxygen 1.8.11