⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ser1cli.h

📁 TDK 6521 SOC 芯片 DEMO程序
💻 H
字号:
/***************************************************************************
 * This code and information is provided "as is" without warranty of any   *
 * kind, either expressed or implied, including but not limited to the     *
 * implied warranties of merchantability and/or fitness for a particular   *
 * purpose.                                                                *
 *                                                                         *
 * Copyright (C) 2005 Teridian SemiConductor, Corporation.
 * All Rights Reserved.
 *                                                                         *
 ***************************************************************************/
//**************************************************************************
//  DESCRIPTION: 71M65xx POWER METER - CLI for SERIAL Ports.
// 
//  AUTHOR:  RGV
//
//  HISTORY: See end of file
//**************************************************************************
//               
// File: SER1CLI.H
//               
//**************************************************************************
//  Hardware access layer for UART 1
//
#ifndef SER1CLI_H
#define SER1CLI_H
#if SERIAL1_CLI
#include "ser.h"

// Initialize UART 1
bool cli1_init (enum SERIAL_SPD speed, bool xon_xoff);
bool MPU_Clk_Select1 (enum eMPU_DIV speed);

void Serial1_Tx (uint8x_t *buffer, uint16_t len);
void Serial1_Rx (uint8x_t *buffer, uint16_t len);
uint16_t Serial1_CTx (uint8x_t *buffer, uint16_t len);
uint16_t Serial1_CRx (uint8x_t *buffer, uint16_t len);
uint16_t Serial1_TxLen (void);  // How many bytes left to transmit.
uint16_t Serial1_RxLen (void);  // How many bytes received.
void Serial1_RxFlowOff (void);
void Serial1_RxFlowOn  (void);

extern bool xon_xoff_1;                    		// Flow control active.
extern uint8_t xdata bit_rate_1;
extern bool echo_1;

#endif
/***************************************************************************
 * $Log: ser1cli.h,v $
 * Revision 1.10  2006/09/09 01:08:44  gmikef
 * *** empty log message ***
 *
 * Revision 1.9  2006/03/06 03:29:25  Michael T. Fischer
 * More 6530 prep.
 *
 * Revision 1.8  2006/01/16 20:11:21  tvander
 * Clean Keil build, all versions
 *
 * Revision 1.6  2005/11/15 05:12:58  gmikef
 * Added Serial_RxFlowOn/Off publics.
 *
 * Revision 1.5  2005/11/02 03:08:22  gmikef
 * Xon/Xoff flow control working.
 *
 * Revision 1.4  2005/09/22 23:44:55  tvander
 * Clean build all models and unit tests, updated copyright to be fore Teridian
 *
 * Revision 1.3  2005/09/11 00:33:57  tvander
 * Clean compiles
 *
 * Revision 1.2  2005/08/31 05:53:32  gmikef
 * First version w/ LAPIE interface.
 *
 * Revision 1.1  2005/08/28 02:26:57  gmikef
 * *** empty log message ***
 *
 *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 * this program is fully protected by the United States copyright          *
 * laws and is the property of Teridian Semiconductor Corporation.         *
 ***************************************************************************/
#endif /* ser1cli.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -