yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | /**
|
| 2 | *
|
| 3 | * @file amt_func_test.h
|
| 4 | * @brief
|
| 5 | * This file is part of FTM.
|
| 6 | * AMT´úÀíÓ¦Óòã
|
| 7 | *
|
| 8 | * @details
|
| 9 | * @author Tools Team.
|
| 10 | * @email
|
| 11 | * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
|
| 12 | * @warning
|
| 13 | * @date 2020/11/25
|
| 14 | * @version 1.1
|
| 15 | * @pre
|
| 16 | * @post
|
| 17 | *
|
| 18 | * @par
|
| 19 | * Change History :
|
| 20 | * ---------------------------------------------------------------------------
|
| 21 | * date version author description
|
| 22 | * ---------------------------------------------------------------------------
|
| 23 | * 2020/11/25 1.0 liu.xin Create file
|
| 24 | * ---------------------------------------------------------------------------
|
| 25 | *
|
| 26 | *
|
| 27 | */
|
| 28 |
|
| 29 | #ifndef _AMT_FUNC_TEST_H
|
| 30 | #define _AMT_FUNC_TEST_H
|
| 31 |
|
| 32 | //´®¿Ú²âÊÔ
|
| 33 | #define FID_OPEN_UART (FID_FUN_TEST_START + 6)
|
| 34 | #define FID_CLOSE_UART (FID_FUN_TEST_START + 7)
|
| 35 | #define UART0_DEV "/dev/ttyS0"
|
| 36 | #define UART1_DEV "/dev/ttyS1"
|
| 37 | #define UART2_DEV "/dev/ttyS2"
|
| 38 | #define MAX_UART_DATA_LENGTH (1024)
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 | /**
|
| 47 | * @brief AMTÍâÉè²âÊÔ³õʼ»¯
|
| 48 | * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
|
| 49 | * @note
|
| 50 | * @see
|
| 51 | */
|
| 52 | int Amt_FuncTest_Init(void);
|
| 53 |
|
| 54 | /**
|
| 55 | * @brief AMTÍâÉèÏûÏ¢´¦Àíº¯Êý
|
| 56 | * @param[in] msg_id FID
|
| 57 | * @param[in] msg_buf ½ÓÊÕÊý¾Ýbuffer
|
| 58 | * @param[in] msg_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
|
| 59 | * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
|
| 60 | * @note
|
| 61 | * @see
|
| 62 | */
|
| 63 | int Amt_FuncTest_ProcessMsg(unsigned int msg_id, unsigned char *msg_buf, unsigned int msg_len);
|
| 64 |
|
| 65 | /**
|
| 66 | * @brief AMTÍâÉèÏûÏ¢·´À¡¸øPC
|
| 67 | * @param[in] msg_id FID
|
| 68 | * @param[in] result ״̬Âë
|
| 69 | * @param[in] msg_buf ½ÓÊÕÊý¾Ýbuffer
|
| 70 | * @param[in] msg_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
|
| 71 | * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
|
| 72 | * @note
|
| 73 | * @see
|
| 74 | */
|
| 75 | int Amt_FuncTest_SendMsg(unsigned int msg_id, int result, unsigned char *msg_buf, unsigned int msg_len);
|
| 76 |
|
| 77 | #endif
|
| 78 |
|