dspdef.h

来自「本程序为ST公司开发的源代码」· C头文件 代码 · 共 124 行

H
124
字号
/**************************************************
 *
 *
 * CVS ID:   $Id: dspdef.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
 *
 ***************************************************/

/* EPRADH Register Type definition  */
typedef struct
{
  UInt  ramaddr   : 3;
  UInt  bit3      : 1;
  UInt  bit4      : 1;
  UInt  bit5      : 1;
  UInt  py        : 1;
  UInt  rw        : 1;
  UInt            : 24;
} EPRADH_STRUCT;

typedef union
{
  uint32 all;
  EPRADH_STRUCT field;
} EPRADH_UNION;

/* SER_MCR1 register type definition */
typedef struct
{
  UInt  disc_clk  : 2;
  UInt  sled_clk  : 2;
  UInt  test2_clk : 2;
  UInt  test1_clk : 2;
  UInt            : 24;
} SER_MCR1_STRUCT;

typedef union
{
  uint32 all;
  SER_MCR1_STRUCT field;
} SER_MCR1_UNION;

/* SER_STEP_CLK register definition */
typedef struct
{
  UInt  step_clk  : 3;
  UInt  accu_clk  : 3;
  UInt  bit6      : 1;
  UInt  bit7      : 1;
  UInt            : 24;
} SER_STEP_CLK_STRUCT;

typedef union
{
  uint32 all;
  SER_STEP_CLK_STRUCT field;
} SER_STEP_CLK_UNION;

/* STEP_MODE register type def */

typedef struct
{
  UInt  step_reset    : 1;
  UInt  stepper_mode  : 2;
  UInt  step_shape    : 2;
  UInt  bit5          : 1;
  UInt  bit6          : 1;
  UInt  bit7          : 1;
  UInt               : 24;
} SER_STEP_MODE_STRUCT;

typedef union
{
  uint32 all;
  SER_STEP_MODE_STRUCT field;
} SER_STEP_MODE_UNION;

/* SER_STEP_CTRL register type definition */
typedef struct
{
  UInt  step_forward  : 1;
  UInt  step_backward : 1;
  UInt  step_move     : 1;
  UInt  sled_sel      : 1;
  UInt  scale_factor  : 3;
  UInt  bit7          : 1;
  UInt                : 24;
} SER_STEP_CTRL_STRUCT;

typedef union
{
  uint32 all;
  SER_STEP_CTRL_STRUCT field;
} SER_STEP_CTRL_UNION;

/* SER_CAV_CTRL register type definition */

typedef struct
{
  UInt  edge      : 1;
  UInt  prescaler : 4;
  UInt  bit5      : 1;
  UInt  bit6      : 1;
  UInt  bit7      : 1;
  UInt            : 24;
} SER_CAV_CTRL_STRUCT;

typedef union
{
  uint32 all;
  SER_CAV_CTRL_STRUCT field;
} SER_CAV_CTRL_UNION;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?