📄 ser0cli.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: SER0CLI.H
//
//**************************************************************************
// Hardware access layer for UART 1
//
#ifndef SER0CLI_H
#define SER0CLI_H
#if SERIAL0_CLI
#include "ser.h"
// Initialize UART 0
bool cli0_init (enum SERIAL_SPD speed, bool xon_xoff);
bool MPU_Clk_Select0 (enum eMPU_DIV speed);
void Serial0_Tx (uint8x_t *buffer, uint16_t len);
void Serial0_Rx (uint8x_t *buffer, uint16_t len);
uint16_t Serial0_CTx (uint8x_t *buffer, uint16_t len);
uint16_t Serial0_CRx (uint8x_t *buffer, uint16_t len);
uint16_t Serial0_TxLen (void); // How many bytes left to transmit.
uint16_t Serial0_RxLen (void); // How many bytes received.
void Serial0_RxFlowOff (void);
void Serial0_RxFlowOn (void);
extern bool xon_xoff_0; // Flow control active.
extern uint8_t xdata bit_rate_0;
extern bool echo_0;
#endif
/***************************************************************************
* $Log: ser0cli.h,v $
* Revision 1.12 2006/09/09 01:08:38 gmikef
* *** empty log message ***
*
* Revision 1.11 2006/03/06 03:29:06 Michael T. Fischer
* More 6530 prep.
*
* Revision 1.10 2006/01/16 20:11:21 tvander
* Clean Keil build, all versions
*
* Revision 1.9 2006/01/10 03:55:38 gmikef
* Added PDATA support for CE Outputs.
*
* Revision 1.7 2005/11/15 05:12:06 gmikef
* Added Serial_RxFlowOn/Off publics.
*
* Revision 1.6 2005/11/02 03:07:46 gmikef
* Xon/Xoff flow control working.
*
* Revision 1.5 2005/09/22 23:44:54 tvander
* Clean build all models and unit tests, updated copyright to be fore Teridian
*
* Revision 1.4 2005/09/11 00:33:57 tvander
* Clean compiles
*
* Revision 1.3 2005/09/01 02:02:28 gmikef
* Cleaned up the builds.
*
* Revision 1.2 2005/08/31 05:53:01 gmikef
* First version w/ LAPIE interface.
*
* Revision 1.1 2005/08/28 02:26:07 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 /* ser0cli.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -