lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*******************************************************************************
|
| 2 | * Copyright (C) 2016, ZIXC Corporation.
|
| 3 | *
|
| 4 | * File Name: downloader_serial.h
|
| 5 | * File Mark:
|
| 6 | * Description:
|
| 7 | * Others:
|
| 8 | * Version: 1.0
|
| 9 | * Author: geanfeng
|
| 10 | * Date: 2013-03-04
|
| 11 | * History 1:
|
| 12 | * Date:
|
| 13 | * Version:
|
| 14 | * Author:
|
| 15 | * Modification:
|
| 16 | * History 2:
|
| 17 | ********************************************************************************/
|
| 18 | #ifndef _DOWNLOADER_SERIAL_H
|
| 19 | #define _DOWNLOADER_SERIAL_H
|
| 20 | /****************************************************************************
|
| 21 | * Include files
|
| 22 | ****************************************************************************/
|
| 23 |
|
| 24 | /****************************************************************************
|
| 25 | * Macros
|
| 26 | ****************************************************************************/
|
| 27 |
|
| 28 | /****************************************************************************
|
| 29 | * Types
|
| 30 | ****************************************************************************/
|
| 31 | /****************************************************************************
|
| 32 | * Constants
|
| 33 | ****************************************************************************/
|
| 34 |
|
| 35 | /****************************************************************************
|
| 36 | * Global Variables
|
| 37 | ****************************************************************************/
|
| 38 |
|
| 39 | /****************************************************************************
|
| 40 | * Function Prototypes
|
| 41 | ****************************************************************************/
|
| 42 |
|
| 43 | /*******************************************************************************
|
| 44 | * Function:downloader_serial_read
|
| 45 | * Description:
|
| 46 | * Parameters:
|
| 47 | * Input:
|
| 48 | *
|
| 49 | * Output:
|
| 50 | *
|
| 51 | * Returns:
|
| 52 | *
|
| 53 | *
|
| 54 | * Others:
|
| 55 | ********************************************************************************/
|
| 56 | int downloader_serial_read(char * buffer,unsigned int len);
|
| 57 | /*******************************************************************************
|
| 58 | * Function:downloader_serial_read_actuallen
|
| 59 | * Description:
|
| 60 | * Parameters:
|
| 61 | * Input:
|
| 62 | *
|
| 63 | * Output:
|
| 64 | *
|
| 65 | * Returns:
|
| 66 | *
|
| 67 | *
|
| 68 | * Others:
|
| 69 | ********************************************************************************/
|
| 70 | int downloader_serial_read_actuallen(char * buffer,unsigned int len);
|
| 71 | /*******************************************************************************
|
| 72 | * Function:downloader_serial_write
|
| 73 | * Description:
|
| 74 | * Parameters:
|
| 75 | * Input:
|
| 76 | *
|
| 77 | * Output:
|
| 78 | *
|
| 79 | * Returns:
|
| 80 | *
|
| 81 | *
|
| 82 | * Others:
|
| 83 | ********************************************************************************/
|
| 84 | int downloader_serial_write(const char * buffer,unsigned int len);
|
| 85 | /*******************************************************************************
|
| 86 | * Function:downloader_serial_write_actuallen
|
| 87 | * Description:
|
| 88 | * Parameters:
|
| 89 | * Input:
|
| 90 | *
|
| 91 | * Output:
|
| 92 | *
|
| 93 | * Returns:
|
| 94 | *
|
| 95 | *
|
| 96 | * Others:
|
| 97 | ********************************************************************************/
|
| 98 | int downloader_serial_write_actuallen(const char * buffer,unsigned int len);
|
| 99 | #endif
|