📄 dmadef.h
字号:
/**************************************************
*
*
* CVS ID: $Id: dmadef.h,v 1.1 2006/01/31 18:50:16 belardi Exp $
* Author: Maurizio Marcucci [MM] - STM
* Date: $Date: 2006/01/31 18:50:16 $
* Revision: $Revision: 1.1 $
*
* Description:
*
* Accordo+ Hardware registers definition
*
***************************************************
*
* COPYRIGHT (C) ST Microelectronics 2005
* All Rights Reserved
*
***************************************************/
// DMA_CTRL Register
typedef struct
{
UInt enable : 1;
UInt soinc : 1;
UInt deinc : 1;
UInt sosize : 2;
UInt soburst : 2;
UInt desize : 2;
UInt circular : 1;
UInt : 1;
UInt mem2mem : 1;
UInt : 1;
UInt dir : 1;
UInt : 2;
UInt : 16;
} DMA_CTRL_STRUCT;
typedef union
{
DMA_CTRL_STRUCT field;
uint32 all;
} DMA_CTRL_UNION;
// DMA_MASK Register
typedef struct
{
UInt sim0 : 1;
UInt sim1 : 1;
UInt sim2 : 1;
UInt sim3 : 1;
UInt sem0 : 1;
UInt sem1 : 1;
UInt sem2 : 1;
UInt sem3 : 1;
UInt : 8;
UInt : 16;
} DMA_MASK_STRUCT;
typedef union
{
DMA_MASK_STRUCT field;
uint32 all;
} DMA_MASK_UNION;
// DMA_CLR Register
typedef struct
{
UInt sic0 : 1;
UInt sic1 : 1;
UInt sic2 : 1;
UInt sic3 : 1;
UInt sec0 : 1;
UInt sec1 : 1;
UInt sec2 : 1;
UInt sec3 : 1;
UInt : 24;
} DMA_CLR_STRUCT;
typedef union
{
DMA_CLR_STRUCT field;
uint32 all;
} DMA_CLR_UNION;
// DMA_STATUS Register
typedef struct
{
UInt int0 : 1;
UInt int1 : 1;
UInt int2 : 1;
UInt int3 : 1;
UInt err0 : 1;
UInt err1 : 1;
UInt err2 : 1;
UInt err3 : 1;
UInt act0 : 1;
UInt act1 : 1;
UInt act2 : 1;
UInt act3 : 1;
UInt : 4;
UInt : 16;
} DMA_STATUS_STRUCT;
typedef union
{
DMA_STATUS_STRUCT field;
uint32 all;
} DMA_STATUS_UNION;
// DMA_LAST Register
typedef struct
{
UInt last : 4;
UInt reserved : 12;
UInt : 16;
} DMA_LAST_STRUCT;
typedef union
{
DMA_LAST_STRUCT field;
uint32 all;
} DMA_LAST_UNION;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -