blob: f4eb2ffb707cd03078da1af709e654f867549355 [file] [log] [blame]
/**
*
* @file amt_func_test.h
* @brief
* This file is part of FTM.
* AMT´úÀíÓ¦Óòã
*
* @details
* @author Tools Team.
* @email
* @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
* @warning
* @date 2020/11/25
* @version 1.1
* @pre
* @post
*
* @par
* Change History :
* ---------------------------------------------------------------------------
* date version author description
* ---------------------------------------------------------------------------
* 2020/11/25 1.0 liu.xin Create file
* ---------------------------------------------------------------------------
*
*
*/
#ifndef _AMT_FUNC_TEST_H
#define _AMT_FUNC_TEST_H
//´®¿Ú²âÊÔ
#define FID_OPEN_UART (FID_FUN_TEST_START + 6)
#define FID_CLOSE_UART (FID_FUN_TEST_START + 7)
#define UART0_DEV "/dev/ttyS0"
#define UART1_DEV "/dev/ttyS1"
#define UART2_DEV "/dev/ttyS2"
#define MAX_UART_DATA_LENGTH (1024)
/**
* @brief AMTÍâÉè²âÊÔ³õʼ»¯
* @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
* @note
* @see
*/
int Amt_FuncTest_Init(void);
/**
* @brief AMTÍâÉèÏûÏ¢´¦Àíº¯Êý
* @param[in] msg_id FID
* @param[in] msg_buf ½ÓÊÕÊý¾Ýbuffer
* @param[in] msg_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
* @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
* @note
* @see
*/
int Amt_FuncTest_ProcessMsg(unsigned int msg_id, unsigned char *msg_buf, unsigned int msg_len);
/**
* @brief AMTÍâÉèÏûÏ¢·´À¡¸øPC
* @param[in] msg_id FID
* @param[in] result ״̬Âë
* @param[in] msg_buf ½ÓÊÕÊý¾Ýbuffer
* @param[in] msg_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
* @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
* @note
* @see
*/
int Amt_FuncTest_SendMsg(unsigned int msg_id, int result, unsigned char *msg_buf, unsigned int msg_len);
#endif