RT-AICHIP-sample
serial.h
[詳解]
1 /*----------------------------------------------------------------------------
2  * Name: serial.h
3  * Purpose: serial port handling
4  * Version: V1.10
5  *----------------------------------------------------------------------------
6  * This software is supplied "AS IS" without any warranties, express,
7  * implied or statutory, including but not limited to the implied
8  * warranties of fitness for purpose, satisfactory quality and
9  * noninfringement. Keil extends you a royalty-free right to reproduce
10  * and distribute executable files created using this software for use
11  * on NXP Semiconductors LPC microcontroller devices only. Nothing else
12  * gives you the right to use this software.
13  *
14  * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
15  *---------------------------------------------------------------------------*/
16 
17 
18 /*----------------------------------------------------------------------------
19  Serial interface related prototypes
20  *---------------------------------------------------------------------------*/
21 extern void ser_OpenPort (void);
22 extern void ser_ClosePort (void);
23 extern void ser_InitPort (unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits);
24 extern void ser_AvailChar (int *availChar);
25 extern int ser_Write (const char *buffer, int *length);
26 extern int ser_Read (char *buffer, const int *length);
27 extern void ser_LineState (unsigned short *lineState);
28 
void ser_InitPort(unsigned long baudrate, unsigned int databits, unsigned int parity, unsigned int stopbits)
Definition: serial.c:80
int ser_Read(char *buffer, const int *length)
Definition: serial.c:158
void ser_LineState(unsigned short *lineState)
Definition: serial.c:209
void ser_OpenPort(void)
Definition: serial.c:50
void ser_AvailChar(int *availChar)
Definition: serial.c:200
void ser_ClosePort(void)
Definition: serial.c:67
int ser_Write(const char *buffer, int *length)
Definition: serial.c:176