GeekTrack/2.Firmware/components/GeekSHELL/include/geek_shell_ext.h

34 lines
895 B
C
Raw Normal View History

2022-09-18 18:40:49 +08:00
/**
* @file geek_shell_ext.h
* @author Letter (NevermindZZT@gmail.com)
* @brief shell extensions
* @version 3.0.0
* @date 2019-12-31
*
* @copyright (c) 2019 Letter
*
*/
#ifndef __GEEK_SHELL_EXT_H__
#define __GEEK_SHELL_EXT_H__
#include "geek_shell.h"
/**
* @brief
*
*/
typedef enum
{
NUM_TYPE_DEC, /**< 十进制整型 */
NUM_TYPE_BIN, /**< 二进制整型 */
NUM_TYPE_OCT, /**< 八进制整型 */
NUM_TYPE_HEX, /**< 十六进制整型 */
NUM_TYPE_FLOAT /**< 浮点型 */
} ShellNumType;
unsigned int shellExtParsePara(Shell *shell, char *string);
int shellExtRun(Shell *shell, ShellCommand *command, int argc, char *argv[]);
#endif