📄 scias.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : SCIAS.H
** Project : PMSM
** Processor : 56F8013VFAE
** Beantype : AsynchroSerial
** Version : Bean 02.377, Driver 01.24, CPU db: 2.87.089
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 2008-1-30, 下午 02:43
** Abstract :
** This bean "AsynchroSerial" implements an asynchronous serial
** communication. The bean supports different settings of
** parity, word width, stop-bit and communication speed,
** user can select interrupt or polling handler.
** Communication speed can be changed also in runtime.
** The bean requires one on-chip asynchronous serial channel.
** Settings :
** Serial channel : SCI
**
** Protocol
** Init baud rate : 9600baud
** Width : 8 bits
** Stop bits : 1
** Parity : none
** Breaks : Disabled
**
** Registers
** Input buffer : SCI_SCIDR [61620]
** Output buffer : SCI_SCIDR [61620]
** Control register : SCI_SCICR [61617]
** Mode register : SCI_SCICR [61617]
** Baud setting reg. : SCI_SCIBR [61616]
**
** Input interrupt
** Vector name : INT_SCI_RxFull
** Priority : 1
**
** Output interrupt
** Vector name : INT_SCI_TxEmpty
** Priority : 1
**
** Used pins:
** ----------------------------------------------------------
** Function | On package | Name
** ----------------------------------------------------------
** ----------------------------------------------------------
**
**
**
** Contents :
** No public methods
**
** (c) Copyright UNIS, spol. s r.o. 1997-2006
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __SCIAS
#define __SCIAS
/* MODULE SCIAS. */
#include "Cpu.h"
#ifndef __BWUserType_tItem
#define __BWUserType_tItem
typedef struct { /* Item of the index table for possible baudrates */
word div; /* divisor */
byte val; /* values of the prescalers */
} tItem;
#endif
#ifndef __BWUserType_SCIAS_TError
#define __BWUserType_SCIAS_TError
typedef union {
byte err;
struct {
bool OverRun : 1; /* Overrun error flag */
bool Framing : 1; /* Framing error flag */
bool Parity : 1; /* Parity error flag */
bool RxBufOvf : 1; /* Rx buffer full error flag */
bool Noise : 1; /* Noise error flag */
bool Break : 1; /* Break detect */
bool LINSync : 1; /* LIN synchronization error */
bool BitError : 1; /* Bit error flag - mismatch to the expected value happened. */
} errName;
} SCIAS_TError; /* Error flags. For languages which don't support bit access is byte access only to error flags possible. */
#endif
#ifndef __BWUserType_SCIAS_TComData
#define __BWUserType_SCIAS_TComData
typedef byte SCIAS_TComData; /* User type for communication. Size of this type depends on the communication data witdh */
#endif
#define SCIAS_INP_BUF_SIZE 12 /* Length of the RX buffer */
#define SCIAS_OUT_BUF_SIZE 12 /* Length of the TX buffer */
void SCIAS_InterruptRx(void);
/*
** ===================================================================
** Method : SCIAS_InterruptRx (bean AsynchroSerial)
**
** Description :
** The method services the receive interrupt of the selected
** peripheral(s) and eventually invokes the bean's event(s).
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void SCIAS_InterruptTx(void);
/*
** ===================================================================
** Method : SCIAS_InterruptTx (bean AsynchroSerial)
**
** Description :
** The method services the receive interrupt of the selected
** peripheral(s) and eventually invokes the bean's event(s).
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void SCIAS_InterruptError(void);
/*
** ===================================================================
** Method : SCIAS_InterruptError (bean AsynchroSerial)
**
** Description :
** The method services the receive interrupt of the selected
** peripheral(s) and eventually invokes the bean's event(s).
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
void SCIAS_Init(void);
/*
** ===================================================================
** Method : SCIAS_Init (bean AsynchroSerial)
**
** Description :
** Initializes the associated peripheral(s) and internal
** variables of the bean. The method is called automatically as a
** part of the application initialization code.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* END SCIAS. */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.98 [03.79]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
#endif /* ifndef __SCIAS */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -