⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsp28_mcbsp.pp

📁 能够实现PWM输出功能
💻 PP
📖 第 1 页 / 共 5 页
字号:
};
  

struct  RCERE_BITS {       
   Uint16     RCEE0:1;       
   Uint16     RCEE1:1;       
   Uint16     RCEE2:1;       
   Uint16     RCEE3:1;       
   Uint16     RCEE4:1;       
   Uint16     RCEE5:1;       
   Uint16     RCEE6:1;       
   Uint16     RCEE7:1;       
   Uint16     RCEE8:1;       
   Uint16     RCEE9:1;       
   Uint16     RCEE10:1;      
   Uint16     RCEE11:1;      
   Uint16     RCEE12:1;      
   Uint16     RCEE13:1;      
   Uint16     RCEE14:1;      
   Uint16     RCEE15:1;      
}; 

union RCERE_REG {
   Uint16                all;
   struct  RCERE_BITS  bit;
};  


struct  RCERF_BITS {       
   Uint16     RCEF0:1;       
   Uint16     RCEF1:1;       
   Uint16     RCEF2:1;       
   Uint16     RCEF3:1;       
   Uint16     RCEF4:1;       
   Uint16     RCEF5:1;       
   Uint16     RCEF6:1;       
   Uint16     RCEF7:1;       
   Uint16     RCEF8:1;       
   Uint16     RCEF9:1;       
   Uint16     RCEF10:1;      
   Uint16     RCEF11:1;      
   Uint16     RCEF12:1;      
   Uint16     RCEF13:1;      
   Uint16     RCEF14:1;      
   Uint16     RCEF15:1;      
}; 

union RCERF_REG {
   Uint16                all;
   struct  RCERF_BITS  bit;
};


struct  XCERE_BITS {       
   Uint16     XCEE0:1;       
   Uint16     XCEE1:1;       
   Uint16     XCEE2:1;       
   Uint16     XCEE3:1;       
   Uint16     XCEE4:1;       
   Uint16     XCEE5:1;       
   Uint16     XCEE6:1;       
   Uint16     XCEE7:1;       
   Uint16     XCEE8:1;       
   Uint16     XCEE9:1;       
   Uint16     XCEE10:1;      
   Uint16     XCEE11:1;      
   Uint16     XCEE12:1;      
   Uint16     XCEE13:1;      
   Uint16     XCEE14:1;      
   Uint16     XCEE15:1;      
}; 

union XCERE_REG {
   Uint16                all;
   struct  XCERE_BITS  bit;
};  


struct  XCERF_BITS {       
   Uint16     XCEF0:1;       
   Uint16     XCEF1:1;       
   Uint16     XCEF2:1;       
   Uint16     XCEF3:1;       
   Uint16     XCEF4:1;       
   Uint16     XCEF5:1;       
   Uint16     XCEF6:1;       
   Uint16     XCEF7:1;       
   Uint16     XCEF8:1;       
   Uint16     XCEF9:1;       
   Uint16     XCEF10:1;      
   Uint16     XCEF11:1;      
   Uint16     XCEF12:1;      
   Uint16     XCEF13:1;      
   Uint16     XCEF14:1;      
   Uint16     XCEF15:1;      
}; 

union XCERF_REG {
   Uint16                all;
   struct  XCERF_BITS  bit;
};                   


struct  RCERG_BITS {       
   Uint16     RCEG0:1;       
   Uint16     RCEG1:1;       
   Uint16     RCEG2:1;       
   Uint16     RCEG3:1;       
   Uint16     RCEG4:1;       
   Uint16     RCEG5:1;       
   Uint16     RCEG6:1;       
   Uint16     RCEG7:1;       
   Uint16     RCEG8:1;       
   Uint16     RCEG9:1;       
   Uint16     RCEG10:1;      
   Uint16     RCEG11:1;      
   Uint16     RCEG12:1;      
   Uint16     RCEG13:1;      
   Uint16     RCEG14:1;      
   Uint16     RCEG15:1;      
}; 

union RCERG_REG {
   Uint16                all;
   struct  RCERG_BITS  bit;
};  


struct  RCERH_BITS {       
   Uint16     RCEH0:1;       
   Uint16     RCEH1:1;       
   Uint16     RCEH2:1;       
   Uint16     RCEH3:1;       
   Uint16     RCEH4:1;       
   Uint16     RCEH5:1;       
   Uint16     RCEH6:1;       
   Uint16     RCEH7:1;       
   Uint16     RCEH8:1;       
   Uint16     RCEH9:1;       
   Uint16     RCEH10:1;      
   Uint16     RCEH11:1;      
   Uint16     RCEH12:1;      
   Uint16     RCEH13:1;      
   Uint16     RCEH14:1;      
   Uint16     RCEH15:1;      
}; 

union RCERH_REG {
   Uint16                all;
   struct  RCERH_BITS  bit;
};


struct  XCERG_BITS {       
   Uint16     XCEG0:1;       
   Uint16     XCEG1:1;       
   Uint16     XCEG2:1;       
   Uint16     XCEG3:1;       
   Uint16     XCEG4:1;       
   Uint16     XCEG5:1;       
   Uint16     XCEG6:1;       
   Uint16     XCEG7:1;       
   Uint16     XCEG8:1;       
   Uint16     XCEG9:1;       
   Uint16     XCEG10:1;      
   Uint16     XCEG11:1;      
   Uint16     XCEG12:1;      
   Uint16     XCEG13:1;      
   Uint16     XCEG14:1;      
   Uint16     XCEG15:1;      
}; 

union XCERG_REG {
   Uint16                all;
   struct  XCERG_BITS  bit;
};  


struct  XCERH_BITS {       
   Uint16     XCEH0:1;       
   Uint16     XCEH1:1;       
   Uint16     XCEH2:1;       
   Uint16     XCEH3:1;       
   Uint16     XCEH4:1;       
   Uint16     XCEH5:1;       
   Uint16     XCEH6:1;       
   Uint16     XCEH7:1;       
   Uint16     XCEH8:1;       
   Uint16     XCEH9:1;       
   Uint16     XCEH10:1;      
   Uint16     XCEH11:1;      
   Uint16     XCEH12:1;      
   Uint16     XCEH13:1;      
   Uint16     XCEH14:1;      
   Uint16     XCEH15:1;      
}; 

union XCERH_REG {
   Uint16                all;
   struct  XCERH_BITS  bit;
};


struct  MFFTX_BITS {      
   Uint16     IL:5;         
   Uint16     TXFFIENA:1;   
   Uint16     INT_CLR:1;    
   Uint16     INT:1;        
   Uint16     ST:5;         
   Uint16     XRESET:1;     
   Uint16     MFFENA:1;     
   Uint16     rsvd:1;       
}; 

union MFFTX_REG {
   Uint16              all;
   struct MFFTX_BITS bit;
};


struct  MFFRX_BITS {      
   Uint16 IL:5;             
   Uint16 RXFFIENA:1;       
   Uint16 INT_CLR:1;        
   Uint16 INT:1;            
   Uint16 ST:5;             
   Uint16 RRESET:1;         
   Uint16 OVF_CLR:1;        
   Uint16 OVF:1;            
}; 

union MFFRX_REG {
   Uint16              all;
   struct MFFRX_BITS bit;
};


struct  MFFCT_BITS {      
    Uint16 TXDLY:8;         
    Uint16 rsvd:7;          
    Uint16 IACKM:1;         
};

union MFFCT_REG {
   Uint16               all;
   struct MFFCT_BITS  bit;
};
   

struct  MFFINT_BITS {     
    Uint16     XINT:1;      
    Uint16     XEVTA:1;     
    Uint16     RINT:1;      
    Uint16     REVTA:1;     
    Uint16     rsvd:12;     
};

union MFFINT_REG {
   Uint16                all;
   struct MFFINT_BITS  bit;
};


struct  MFFST_BITS {     
    Uint16     EOBX:1;     
    Uint16     FSX:1;      
    Uint16     EOBR:1;     
    Uint16     FSR:1;      
    Uint16     rsvd:12;    
};

union MFFST_REG {
   Uint16              all;
   struct MFFST_BITS bit;
};





struct  MCBSP_REGS {      
   union DRR2_REG    DRR2;     
   union DRR1_REG    DRR1;     
   union DXR2_REG    DXR2;     
   union DXR1_REG    DXR1;     
   union SPCR2_REG   SPCR2;    
   union SPCR1_REG   SPCR1;    
   union RCR2_REG    RCR2;     
   union RCR1_REG    RCR1;     
   union XCR2_REG    XCR2;     
   union XCR1_REG    XCR1;     
   union SRGR2_REG   SRGR2;    
   union SRGR1_REG   SRGR1;    
   union MCR2_REG    MCR2;     
   union MCR1_REG    MCR1;     
   union RCERA_REG   RCERA;    
   union RCERB_REG   RCERB;    
   union XCERA_REG   XCERA;    
   union XCERB_REG   XCERB;    
   union PCR1_REG    PCR1;     
   union RCERC_REG   RCERC;    
   union RCERD_REG   RCERD;    
   union XCERC_REG   XCERC;    
   union XCERD_REG   XCERD;    
   union RCERE_REG   RCERE;    
   union RCERF_REG   RCERF;    
   union XCERE_REG   XCERE;    
   union XCERF_REG   XCERF;    
   union RCERG_REG   RCERG;    
   union RCERH_REG   RCERH;    
   union XCERG_REG   XCERG;    
   union XCERH_REG   XCERH;    
   Uint16  rsvd1;                
   union MFFTX_REG   MFFTX;    
   union MFFRX_REG   MFFRX;    
   union MFFCT_REG   MFFCT;    
   union MFFINT_REG  MFFINT;   
   union MFFST_REG   MFFST;    
};




extern volatile struct MCBSP_REGS McbspRegs;

























 
 
 

 
struct  CANME_BITS {            
   Uint16      ME0:1;     
   Uint16      ME1:1;     
   Uint16      ME2:1;     
   Uint16      ME3:1;     
   Uint16      ME4:1;     
   Uint16      ME5:1;     
   Uint16      ME6:1;     
   Uint16      ME7:1;     
   Uint16      ME8:1;     
   Uint16      ME9:1;     
   Uint16      ME10:1;    
   Uint16      ME11:1;    
   Uint16      ME12:1;    
   Uint16      ME13:1;    
   Uint16      ME14:1;    
   Uint16      ME15:1;    
   Uint16      ME16:1;    
   Uint16      ME17:1;    
   Uint16      ME18:1;    
   Uint16      ME19:1;    
   Uint16      ME20:1;    
   Uint16      ME21:1;    
   Uint16      ME22:1;    
   Uint16      ME23:1;    
   Uint16      ME24:1;    
   Uint16      ME25:1;    
   Uint16      ME26:1;    
   Uint16      ME27:1;    
   Uint16      ME28:1;    
   Uint16      ME29:1;    
   Uint16      ME30:1;    
   Uint16      ME31:1;    

};

 
union CANME_REG {
   Uint32        all;
   struct CANME_BITS  bit;
};

 
struct  CANMD_BITS {            
   Uint16      MD0:1;     
   Uint16      MD1:1;     
   Uint16      MD2:1;     
   Uint16      MD3:1;     
   Uint16      MD4:1;     
   Uint16      MD5:1;     
   Uint16      MD6:1;     
   Uint16      MD7:1;     
   Uint16      MD8:1;     
   Uint16      MD9:1;     
   Uint16      MD10:1;    
   Uint16      MD11:1;    
   Uint16      MD12:1;    
   Uint16      MD13:1;    
   Uint16      MD14:1;    
   Uint16      MD15:1;    
   Uint16      MD16:1;    
   Uint16      MD17:1;    
   Uint16      MD18:1;    
   Uint16      MD19:1;    
   Uint16      MD20:1;    
   Uint16      MD21:1;    
   Uint16      MD22:1;    
   Uint16      MD23:1;    
   Uint16      MD24:1;    
   Uint16      MD25:1;    
   Uint16      MD26:1;    
   Uint16      MD27:1;    
   Uint16      MD28:1;    
   Uint16      MD29:1;    
   Uint16      MD30:1;    
   Uint16      MD31:1;    

};

 
union CANMD_REG {
   Uint32        all;
   struct CANMD_BITS  bit;
};

 
struct  CANTRS_BITS {            
   Uint16      TRS0:1;     
   Uint16      TRS1:1;     
   Uint16      TRS2:1;     
   Uint16      TRS3:1;     
   Uint16      TRS4:1;     
   Uint16      TRS5:1;     
   Uint16      TRS6:1;     
   Uint16      TRS7:1;     
   Uint16      TRS8:1;     
   Uint16      TRS9:1;     
   Uint16      TRS10:1;    
   Uint16      TRS11:1;    
   Uint16      TRS12:1;    
   Uint16      TRS13:1;    
   Uint16      TRS14:1;    
   Uint16      TRS15:1;    
   Uint16      TRS16:1;    
   Uint16      TRS17:1;    
   Uint16      TRS18:1;    
   Uint16      TRS19:1;    
   Uint16      TRS20:1;    
   Uint16      TRS21:1;    
   Uint16      TRS22:1;    
   Uint16      TRS23:1;    
   Uint16      TRS24:1;    
   Uint16      TRS25:1;    
   Uint16      TRS26:1;    
   Uint16      TRS27:1;    
   Uint16      TRS28:1;    
   Uint16      TRS29:1;    
   Uint16      TRS30:1;    
   Uint16      TRS31:1;    

};

 
union CANTRS_REG {
   Uint32        all;
   struct CANTRS_BITS  bit;
};

 
struct  CANTRR_BITS {            
   Uint16      TRR0:1;     
   Uint16      TRR1:1;     
   Uint16      TRR2:1;     
   Uint16      TRR3:1;     
   Uint16      TRR4:1;     
   Uint16      TRR5:1;     
   Uint16      TRR6:1;     
   Uint16      TRR7:1;     
   Uint16      TRR8:1;     
   Uint16      TRR9:1;     
   Uint16      TRR10:1;    
   Uint16      TRR11:1;    
   Uint16      TRR12:1;    
   Uint16      TRR13:1;    
   Uint16      TRR14:1;    
   Uint16      TRR15:1;    
   Uint16      TRR16:1;    
   Uint16      TRR17:1;    
   Uint16      TRR18:1;    
   Uint16      TRR19:1;    
   Uint16      TRR20:1;    
   Uint16      TRR21:1;    
   Uint16      TRR22:1;    
   Uint16      TRR23:1;    
   Uint16      TRR24:1;    
   Uint16      TRR25:1;    
   Uint16      TRR26:1;    
   Uint16      TRR27:1;    
   Uint16      TRR28:1;    
   Uint16      TRR29:1;    
   Uint16      TRR30:1;    
   Uint16      TRR31:1;    

};

 
union CANTRR_REG {
   Uint32        all;
   struct CANTRR_BITS  bit;
};

 
struct  CANTA_BITS {            
   Uint16      TA0:1;     
   Uint16      TA1:1;     
   Uint16      TA2:1;     
   Uint16      TA3:1;     
   Uint16      TA4:1;     
   Uint16      TA5:1;     
   Uint16      TA6:1;     
   Uint16      TA7:1;     
   Uint16      TA8:1;     
   Uint16      TA9:1;     
   Uint16      TA10:1;    
   Uint16      TA11:1;    
   Uint16      TA12:1;    
   Uint16      TA13:1;    
   Uint16      TA14:1;    
   Uint16      TA15:1;    
   Uint16      TA16:1;    
   Uint16      TA17:1;    
   Uint16      TA18:1;    
   Uint16      TA19:1;    
   Uint16      TA20:1;    
   Uint16      TA21:1;    
   Uint16      TA22:1;    
   Uint16      TA23:1;    
   Uint16      TA24:1;    
   Uint16      TA25:1;    
   Uint16      TA26:1;    
   Uint16      TA27:1;    
   Uint16      TA28:1;    
   Uint16      TA29:1;    
   Uint16      TA30:1;    
   Uint16      TA31:1;    

};

 
union CANTA_REG {
   Uint32        all;
   struct CANTA_BITS  bit;
};

 
struct  CANAA_BITS {            
   Uint16      AA0:1;     
   Uint16      AA1:1;     
   Uint16      AA2:1;     
   Uint16      AA3:1;     
   Uint16      AA4:1;     
   Uint16      AA5:1;     
   Uint16      AA6:1;     
   Uint16      AA7:1;     
   Uint16      AA8:1;     
   Uint16      AA9:1;     
   Uint16      AA10:1;    
   Uint16      AA11:1;    
   Uint16      AA12:1;    
   Uint16      AA13:1;    
   Uint16      AA14:1;    
   Uint16      AA15:1;    
   Uint16      AA16:1;    
   Uint16      AA17:1;    
   Uint16      AA18:1;    
   Uint16      AA19:1;    
   Uint16      AA20:1;    
   Uint16      AA21:1;    
   Uint16      AA22:1;    
   Uint16      AA23:1;    
   Uint16      AA24:1;    
   Uint16      AA25:1;    
   Uint16      AA26:1;    
   Uint16      AA27:1;    
   Uint16      AA28:1;    
   Uint16      AA29:1;    
   Uint16      AA30:1;    
   Uint16      AA31:1;    

};

 
union CANAA_REG {
   Uint32        all;
   struct CANAA_BITS  bit;
};

 
struct  CANRMP_BITS {            
   Uint16      RMP0:1;     
   Uint16      RMP1:1;     
   Uint16      RMP2:1;     
   Uint16      RMP3:1;     
   Uint16      RMP4:1;     
   Uint16      RMP5:1;     
   Uint16      RMP6:1;     
   Uint16      RMP7:1;     
   Uint16      RMP8:1;     
   Uint16      RMP9:1;     
   Uint16      RMP10:1;    
   Uint16      RMP11:1;    
   Uint16      RMP12:1;    
   Uint16      RMP13:1;    
   Uint16      RMP14:1;    
   Uint16      RMP15:1;    
   Uint16      RMP16:1;    
   Uint16      RMP17:1;    
   Uint16      RMP18:1;    
   Uint16      RMP19:1;    
   Uint16      RMP20:1;    
   Uint16      RMP21:1;    
   Uint16      RMP22:1;    
   Uint16      RMP23:1;    
   Uint16      RMP24:1;    
   Uint16      RMP25:1;    
   Uint16      RMP26:1;    
   Uint16      RMP27:1;    
   Uint16      RMP28:1;    
   Uint16      RMP29:1;    
   Uint16      RMP30:1;    
   Uint16      RMP31:1;    

};

 
union CANRMP_REG {
   Uint32        all;
   struct CANRMP_BITS  bit;
};

 
struct  CANRML_BITS {            
   Uint16      RML0:1;     
   Uint16      RML1:1;     

⌨️ 快捷键说明

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