📄 pxa255_i2s.h
字号:
// Copyright (c) David Vescovi. All rights reserved.
// Part of Project DrumStix
// Windows Embedded Developers Interest Group (WE-DIG) community project.
// http://www.we-dig.org
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// Header: pxa255_i2s.h
//
// Defines the i2s controler register layout and associated types and constants.
//
//------------------------------------------------------------------------------
#ifndef _PXA255_I2S_H_
#define _PXA255_I2S_H_
#if __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
//
// Type: I2S_REG_T
//
// Defines the control register layout.
//
//------------------------------------------------------------------------------
typedef struct
{
VUINT32_T SACR0; //serial audio global control register
VUINT32_T SACR1; //I2S/MSB justified control register
VUINT32_T SASR0; //I2S/MSB justified interface and fifo status register
VUINT32_T SAIMR; //intrerupt mask register
VUINT32_T SAICR; //interrupt clear register
VUINT32_T RSVD0[16];
VUINT32_T SAITR; //interrupt test register
VUINT32_T SADIV; //clock divider register
VUINT32_T RSVD1[7];
VUINT32_T SADR; //data register
} I2S_REGS_T, *PI2S_REGS_T;
//
// SACR0 Bits
//
#define SACR0_ENB 0x00000001
#define SACR0_BCKD 0x00000004
#define SACR0_RST 0x00000008
#define SACR0_EFWR 0x00000010
#define SACR0_STRF 0x00000020
//
// SACR1 Bits
//
#define SACR1_AMSL 0x00000001
#define SACR1_DREC 0x00000008
#define SACR1_DRPL 0x00000010
#define SACR1_ENLBF 0x00000020
//
// SASR0 Bits
//
#define SASR0_TNF 0x00000001
#define SASR0_RNE 0x00000002
#define SASR0_BSY 0x00000004
#define SASR0_TFS 0x00000008
#define SASR0_RFS 0x00000010
#define SASR0_TUR 0x00000020
#define SASR0_ROR 0x00000040
//
// SAIMR Bits
//
#define SAIMR_TFS 0x00000008
#define SAIMR_RFS 0x00000010
#define SAIMR_TUR 0x00000020
#define SAIMR_ROR 0x00000040
//
// SAICR Bits
//
#define SAICR_TUR 0x00000020
#define SAICR_ROR 0x00000040
#if __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -