📄 decdef.h
字号:
/************************************************** * * * CVS ID: $Id: decdef.h,v 1.2 2006/04/26 17:59:53 kutik Exp $ * Author: Maurizio Marcucci [MM] - STM * Date: $Date: 2006/04/26 17:59:53 $ * Revision: $Revision: 1.2 $ * * Description: * * Accordo+ Hardware registers definition * *************************************************** * * COPYRIGHT (C) ST Microelectronics 2005 * All Rights Reserved * ***************************************************/// BD Status Registertypedef struct{ UInt error_code : 4; // Bit 0-3 UInt : 1; // Bit 4 UInt wrap : 1; // Bit 5 UInt end_of_xfer: 1; // Bit 6 UInt xfer : 1; // Bit 7 UInt : 24;} BD_STS_STRUCT;typedef union{ BD_STS_STRUCT field; uint32 all;} BD_STS_UNION;// BD CTL1typedef struct{ UInt auto_xa : 1; // Bit 0 UInt : 1; // Bit 1 UInt : 1; // Bit 2 UInt : 1; // Bit 3 UInt : 1; // Bit 4 UInt secure_mode : 1; // Bit 5 UInt secure_subcode : 1; // Bit 6 UInt secure_sync : 1; // Bit 7 UInt : 24;} BD_CTL1_STRUCT;typedef union{ BD_CTL1_STRUCT field; uint32 all;}BD_CTL1_UNION;// BD CTL2typedef struct{ UInt fw_start : 1; // Bit 0 UInt fw_stop : 1; // Bit 1 UInt packet_disc : 1; // Bit 2 UInt send_links : 1; // Bit 3 UInt tbr_max : 2; // Bit 4-5 UInt block_size : 2; // Bit 6-7 UInt : 24;} BD_CTL2_STRUCT;typedef union{ BD_CTL2_STRUCT field; uint32 all;}BD_CTL2_UNION;// BD TX CTLtypedef struct{ UInt data_type : 4; // Bit 0-3 UInt auto_data : 1; // Bit 4 UInt auto_mode : 1; // Bit 5 UInt auto_form : 1; // Bit 6 UInt secure_form : 1; // Bit 7 UInt : 24;} BD_TX_CTL_STRUCT;typedef union{ BD_TX_CTL_STRUCT field; uint32 all;}BD_TX_CTL_UNION;// BD ERR CTLtypedef struct{ UInt allow_all_errors : 1; // Bit 0 UInt type_check : 1; // Bit 1 UInt ecc_check : 1; // Bit 2 UInt c3_check : 1; // Bit 3 UInt edc_check : 1; // Bit 4 UInt : 1; // Bit 5 UInt : 1; // Bit 6-7 UInt : 24;} BD_ERR_CTL_STRUCT;typedef union{ BD_ERR_CTL_STRUCT field; uint32 all;}BD_ERR_CTL_UNION;// BD C3 CTL1 typedef struct{ UInt dbl_err_cor : 1; // Bit 0 UInt try_sng_err : 1; // Bit 1 UInt cor_til_noflag : 1; // Bit 2 UInt cor_til_noerr : 1; // Bit 3 UInt max_c2_flags : 3; // Bit 4-6 UInt : 1; // Bit 7 UInt : 24;} BD_C3_CTL1_STRUCT;typedef union{ BD_C3_CTL1_STRUCT field; uint32 all;}BD_C3_CTL1_UNION;// BD C3 CTL2typedef struct{ UInt max_pass : 4; // Bit 0-3 UInt delay_audio_flag : 1; // Bit 4 UInt no_ecc_edc_ok : 1; // Bit 5 UInt no_ecc : 1; // Bit 6 UInt concealment_on : 1; // Bit 7 UInt : 24;} BD_C3_CTL2_STRUCT;typedef union{ BD_C3_CTL2_STRUCT field; uint32 all;}BD_C3_CTL2_UNION;// BD IT CTLtypedef struct{ UInt start_it_en : 1; // Bit 0 UInt stop_it_en : 1; // Bit 1 UInt blk_it_en : 1; // Bit 2 UInt wrap_it_en : 1; // Bit 3 UInt : 4; // Bit 4-7 UInt : 24;} BD_IT_CTL_STRUCT;typedef union{ BD_IT_CTL_STRUCT field; uint32 all;}BD_IT_CTL_UNION;typedef struct{ UInt input_block_layout : 1; // Bit 0 UInt output_block_size : 2; // Bit 1-2 UInt interleave : 1; // Bit 3 UInt : 4; // Bit 4-7 UInt : 24;} DF_CTL_REG_STRUCT;typedef union{ DF_CTL_REG_STRUCT field; uint32 all;} DF_CTL_REG_UNION;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -