?? ffuart.h
字號:
/*
* Copyright (c) 2005 Zhejiang University, P.R.China
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//=============================================================================
/**
* \file Device/FFUART/FFUART.h
*
* $Id: FFUART.h,v 1.2 2005/06/21 02:57:49 qilj Exp $
*
* \author Lingjie Qi <lingjie_qi@163.com>
*/
//=============================================================================
#ifndef FFUART_H_INCLUDED
#define FFUART_H_INCLUDED
#include "Core/Device.h"
namespace DEVICE {
class FFUART: public Core::Device_32Bit
{
public:
~FFUART(void){}
typedef enum{
IN,
OUT
}Char_Type;
//! Full Function UART Register
typedef enum{
FFTHR, FFIER, FFIIR, FFRBR,
FFFCR, FFLCR, FFMCR, FFLSR,
FFMSR, FFSPR, FFISR, FFDLL, FFDLH,
FFUART_REG_END
} FFUART_Reg;
//! read uart data into buffer
virtual void on_mapped_memory_read(Core::u32 start, size_t size, Core::Bytecode_Type & buffer);
//! write uart register
virtual void on_mapped_memory_write(Core::u32 start, size_t size, Core::Bytecode_Type & buffer);
//void set_rpr(Core::u32 val);
//! This method will be called when module is created
virtual void on_create(void){ name_ = "FFUART"; }
//! This method will be called when module is destroyed
virtual void on_destroy(void){}
//! This method will be called when module is created
virtual void on_reset(void);
virtual void notify(void){}
//! get FFUART Register FFIER
Core::u32 & get_FFIER(void);
//! get FFUART Register FFIIR
Core::u32 & get_FFIIR(void);
//! get FFUART Register FFLSR
Core::u32 & get_FFLSR(void);
//! get FFUART Register FFRBR
Core::u32 & get_FFRBR(void);
private:
Core::u32 ffuart_reg_[FFUART_REG_END];
};
#include "FFUART_i.h"
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -