![]() |
TLE986x Device Family SDK
|
Go to the source code of this file.
Capture/Compare Unit 6 low level access library.
Macros | |
#define | CCU6_MASK_TCTR4_STOP_T12 (CCU6_TCTR4_T12RR_Msk) |
CCU6 TCTR4 MASK Macro, T12 STOP. More... | |
#define | CCU6_MASK_TCTR4_START_T12 (CCU6_TCTR4_T12RS_Msk) |
CCU6 TCTR4 MASK Macro, T12 START. More... | |
#define | CCU6_MASK_TCTR4_RESET_T12 (CCU6_TCTR4_T12RES_Msk) |
CCU6 TCTR4 MASK Macro, T12 RESET. More... | |
#define | CCU6_MASK_TCTR4_SHADOW_T12 (CCU6_TCTR4_T12STR_Msk) |
CCU6 TCTR4 MASK Macro, T12 SHADOW. More... | |
#define | CCU6_MASK_TCTR4_STOP_T13 (CCU6_TCTR4_T13RR_Msk) |
CCU6 TCTR4 MASK Macro, T13 STOP. More... | |
#define | CCU6_MASK_TCTR4_START_T13 (CCU6_TCTR4_T13RS_Msk) |
CCU6 TCTR4 MASK Macro, T13 START. More... | |
#define | CCU6_MASK_TCTR4_RESET_T13 (CCU6_TCTR4_T13RES_Msk) |
CCU6 TCTR4 MASK Macro, T13 RESET. More... | |
#define | CCU6_MASK_TCTR4_SHADOW_T13 (CCU6_TCTR4_T13STR_Msk) |
CCU6 TCTR4 MASK Macro, T13 SHADOW. More... | |
#define | CCU6_MASK_MCMOUTS_SHADOW_HALL (CCU6_MCMOUTS_STRHP_Msk) |
CCU6 MCMOUTS Constants Macro, SHADOW HALL. More... | |
#define | CCU6_MASK_MCMOUTS_SHADOW_OUT (CCU6_MCMOUTS_STRMCM_Msk) |
CCU6 MCMOUTS Constants Macro, SHADOW OUT. More... | |
#define | CCU6_MASK_CC60 ((uint16)1u << 0u) |
CCU6 channel Input/Output selection macro, CC60. More... | |
#define | CCU6_MASK_COUT60 ((uint16)1u << 1u) |
CCU6 channel Input/Output selection macro, COUT60. More... | |
#define | CCU6_MASK_CC61 ((uint16)1u << 2u) |
CCU6 channel Input/Output selection macro, CC61. More... | |
#define | CCU6_MASK_COUT61 ((uint16)1u << 3u) |
CCU6 channel Input/Output selection macro, COUT61. More... | |
#define | CCU6_MASK_CC62 ((uint16)1u << 4u) |
CCU6 channel Input/Output selection macro, CC62. More... | |
#define | CCU6_MASK_COUT62 ((uint16)1u << 5u) |
CCU6 channel Input/Output selection macro, COUT62. More... | |
#define | CCU6_MASK_Ch0t CCU6_MASK_CC60 |
CCU6 channel Input/Output selection macro, CC60. More... | |
#define | CCU6_MASK_Ch0c CCU6_MASK_COUT60 |
CCU6 channel Input/Output selection macro, COUT60. More... | |
#define | CCU6_MASK_Ch1t CCU6_MASK_CC61 |
CCU6 channel Input/Output selection macro, CC61. More... | |
#define | CCU6_MASK_Ch1c CCU6_MASK_COUT61 |
CCU6 channel Input/Output selection macro, COUT61. More... | |
#define | CCU6_MASK_Ch2t CCU6_MASK_CC62 |
CCU6 channel Input/Output selection macro, CC62. More... | |
#define | CCU6_MASK_Ch2c CCU6_MASK_COUT62 |
CCU6 channel Input/Output selection macro, COUT62. More... | |
Functions | |
INLINE void | CCU6_T12_Stop (void) |
stops CCU6 T12. More... | |
INLINE void | CCU6_T12_Start (void) |
starts CCU6 T12. More... | |
INLINE void | CCU6_T12_Rst (void) |
resets CCU6 T12. More... | |
INLINE void | CCU6_Deadtime_Rst (void) |
resets CCU6 T12 Dead-Time Counter. More... | |
INLINE void | CCU6_T12_Cnt (void) |
counts 1 step for CCU6 T12 Event. More... | |
INLINE void | CCU6_T12_Str_En (void) |
enables T12 Shadow Transfer. More... | |
INLINE void | CCU6_T12_Str_Dis (void) |
disables T12 Shadow Transfer. More... | |
INLINE void | CCU6_T13_Stop (void) |
stops CCU6 T13. More... | |
INLINE void | CCU6_T13_Start (void) |
starts CCU6 T13. More... | |
INLINE void | CCU6_T13_Rst (void) |
resets CCU6 T13. More... | |
INLINE void | CCU6_T13_Cnt (void) |
counts 1 step for CCU6 T13 Event. More... | |
INLINE void | CCU6_T13_Str_En (void) |
enables T13 Shadow Transfer. More... | |
INLINE void | CCU6_T13_Str_Dis (void) |
disables T13 Shadow Transfer. More... | |
INLINE void | CCU6_Ch0_Input_Sel (uint16 iscc60) |
selects Input for CC60. More... | |
INLINE void | CCU6_Ch1_Input_Sel (uint16 iscc61) |
selects Input for CC61. More... | |
INLINE void | CCU6_Ch2_Input_Sel (uint16 iscc62) |
selects Input for CC62. More... | |
INLINE void | CCU6_Trap_Input_Sel (uint16 istrp) |
selects Input for CTRAP. More... | |
INLINE void | CCU6_CCPOS0_Input_Sel (uint16 ispos0) |
selects Input for CCPOS0. More... | |
INLINE void | CCU6_CCPOS1_Input_Sel (uint16 ispos1) |
selects Input for CCPOS1. More... | |
INLINE void | CCU6_CCPOS2_Input_Sel (uint16 ispos2) |
selects Input for CCPOS2. More... | |
INLINE void | CCU6_T12HR_Input_Sel (uint16 ist12hr) |
selects Input for T12HR. More... | |
INLINE void | CCU6_T13HR_Input_Sel (uint16 ist13hr) |
selects Input for T13HR. More... | |
INLINE void | CCU6_T12_Cnt_Input_Sel (uint16 iscnt12) |
selects Input for T12 Counting. More... | |
INLINE void | CCU6_T13_Cnt_Input_Sel (uint16 iscnt13) |
selects Input for T13 Counting. More... | |
INLINE void | CCU6_T12_Ext_Input_Sel (uint16 t12ext) |
selects Input of Extension for T12HR. More... | |
INLINE void | CCU6_T13_Ext_Input_Sel (uint16 t13ext) |
selects Input of Extension for T13HR. More... | |
INLINE void | CCU6_Hall_Delay_Bypass_En (void) |
enables Hall Delay Bypass. More... | |
INLINE void | CCU6_Hall_Delay_Bypass_Dis (void) |
disables Hall Delay Bypass. More... | |
INLINE void | CCU6_Hall_Synchronizaion_Sel (uint16 hsync) |
selects Hall Synchronization. More... | |
INLINE void | CCU6_Ch2_CapCom_Mode_Sel (uint16 msel62) |
selects CCU6 T12 CH2 Capture/Compare Mode. More... | |
INLINE void | CCU6_Ch1_CapCom_Mode_Sel (uint16 msel61) |
selects CCU6 T12 CH1 Capture/Compare Mode. More... | |
INLINE void | CCU6_Ch0_CapCom_Mode_Sel (uint16 msel60) |
selects CCU6 T12 CH0 Capture/Compare Mode. More... | |
INLINE uint16 | CCU6_T12_Count_Value_Get (void) |
reads Timer T12 Counter Value. More... | |
INLINE void | CCU6_T12_Count_Value_Set (uint16 t12cv) |
sets Timer T12 Counter Value. More... | |
INLINE uint16 | CCU6_T12_Period_Value_Get (void) |
reads Timer T12 Period Value. More... | |
INLINE void | CCU6_T12_Period_Value_Set (uint16 t12pr) |
sets Timer T12 Period Value. More... | |
INLINE uint16 | CCU6_Ch0_Value_Get (void) |
reads Channel 0 Capture/Compare Value. More... | |
INLINE void | CCU6_Ch0_Value_Set (uint16 cc60sr) |
sets Channel 0 Capture/Compare Value. More... | |
INLINE uint16 | CCU6_Ch1_Value_Get (void) |
reads Channel 1 Capture/Compare Value. More... | |
INLINE void | CCU6_Ch1_Value_Set (uint16 cc61sr) |
sets Channel 1 Capture/Compare Value. More... | |
INLINE uint16 | CCU6_Ch2_Value_Get (void) |
reads Channel 2 Capture/Compare Value. More... | |
INLINE void | CCU6_Ch2_Value_Set (uint16 cc62sr) |
sets Channel 2 Capture/Compare Value. More... | |
INLINE uint8 | CCU6_Deadtime_Get (void) |
reads CCU6 Timer T12 Deadtime. More... | |
INLINE void | CCU6_Deadtime_Set (uint16 dtm) |
sets CCU6 Timer T12 Deadtime. More... | |
INLINE void | CCU6_Ch0_Deadtime_En (void) |
enables CCU6 Timer T12 Channel 0 Deadtime. More... | |
INLINE void | CCU6_Ch1_Deadtime_En (void) |
enables CCU6 Timer T12 Channel 1 Deadtime. More... | |
INLINE void | CCU6_Ch2_Deadtime_En (void) |
enables CCU6 Timer T12 Channel 2 Deadtime. More... | |
INLINE void | CCU6_Ch0_Deadtime_Dis (void) |
disables CCU6 Timer T12 Channel 0 Deadtime. More... | |
INLINE void | CCU6_Ch1_Deadtime_Dis (void) |
disables CCU6 Timer T12 Channel 1 Deadtime. More... | |
INLINE void | CCU6_Ch2_Deadtime_Dis (void) |
disables CCU6 Timer T12 Channel 2 Deadtime. More... | |
INLINE uint8 | CCU6_Ch0_Deadtime_Sts (void) |
reads CCU6 Timer T12 Channel 0 Deadtime Status. More... | |
INLINE uint8 | CCU6_Ch1_Deadtime_Sts (void) |
reads CCU6 Timer T12 Channel 1 Deadtime Status. More... | |
INLINE uint8 | CCU6_Ch2_Deadtime_Sts (void) |
reads CCU6 Timer T12 Channel 2 Deadtime Status. More... | |
INLINE uint16 | CCU6_T13_Count_Value_Get (void) |
reads Timer T13 Counter Value. More... | |
INLINE void | CCU6_T13_Count_Value_Set (uint16 t13cv) |
sets Timer T13 Counter Value. More... | |
INLINE uint16 | CCU6_T13_Period_Value_Get (void) |
reads Timer T13 Period Value. More... | |
INLINE void | CCU6_T13_Period_Value_Set (uint16 t13pr) |
sets Timer T13 Period Value. More... | |
INLINE uint16 | CCU6_Ch3_Value_Get (void) |
reads Channel CC63 Compare Value. More... | |
INLINE void | CCU6_Ch3_Value_Set (uint16 cc63sr) |
sets Channel CC63 Compare Value. More... | |
INLINE uint8 | CCU6_Ch0_CompState_Sts (void) |
reads CC60 Capture/Compare State. More... | |
INLINE uint8 | CCU6_Ch1_CompState_Sts (void) |
reads CC61 Capture/Compare State. More... | |
INLINE uint8 | CCU6_Ch2_CompState_Sts (void) |
reads CC62 Capture/Compare State. More... | |
INLINE uint8 | CCU6_Ch3_CompState_Sts (void) |
reads CC63 Capture/Compare State. More... | |
INLINE uint8 | CCU6_Hall_Ch0_Sts (void) |
reads Sampled Hall Pattern Bit 0. More... | |
INLINE uint8 | CCU6_Hall_Ch1_Sts (void) |
reads Sampled Hall Pattern Bit 1. More... | |
INLINE uint8 | CCU6_Hall_Ch2_Sts (void) |
reads Sampled Hall Pattern Bit 2. More... | |
INLINE void | CCU6_T12_PWMMode_Set (TCCU6_PWMMode mode) |
sets mode of PWM signal for Channel0/1/2 and COUT0/1/2. More... | |
INLINE void | CCU6_Ch3c_Passive_State_After_Compare_Set (void) |
sets Passive state for COUT63 after Compare. More... | |
INLINE void | CCU6_Ch3c_Passive_State_Before_Compare_Set (void) |
sets Passive state for COUT63 Before Compare. More... | |
INLINE void | CCU6_T13_Inv_Mod_En (void) |
enables T13 inversion for further modulation. More... | |
INLINE void | CCU6_T13_Inv_Mod_Dis (void) |
disables T13 inversion for further modulation. More... | |
INLINE void | CCU6_Ch0_CompState_Set (void) |
sets Capture/Compare Status Modification Bit 0 for (CC60ST) by Software. More... | |
INLINE void | CCU6_Ch1_CompState_Set (void) |
sets Capture/Compare Status Modification Bit 1 for (CC61ST) by Software. More... | |
INLINE void | CCU6_Ch2_CompState_Set (void) |
sets Capture/Compare Status Modification Bit 2 for (CC62ST) by Software. More... | |
INLINE void | CCU6_Ch3_CompState_Set (void) |
sets Capture/Compare Status Modification Bit 3 for (CC63ST) by Software. More... | |
INLINE void | CCU6_Ch0_CompState_Rst (void) |
resets Capture/Compare Status Modification Bit 0 for CC60ST by Software. More... | |
INLINE void | CCU6_Ch1_CompState_Rst (void) |
resets Capture/Compare Status Modification Bit 1 for CC61ST by Software. More... | |
INLINE void | CCU6_Ch2_CompState_Rst (void) |
resets Capture/Compare Status Modification Bit 2 (CC62ST) by Software. More... | |
INLINE void | CCU6_Ch3_CompState_Rst (void) |
resets Capture/Compare Status Modification Bit 3 (CC63ST) by Software. More... | |
INLINE void | CCU6_T12_Edge_Aligned_Mode_En (void) |
enables T12 Operating Edge-aligned Mode. More... | |
INLINE void | CCU6_T12_Center_Aligned_Mode_En (void) |
enables T12 Operating Center-aligned Mode. More... | |
INLINE void | CCU6_T12_Clk_Sel (uint16 t12clk) |
selects Timer T12 Input Clock. More... | |
INLINE void | CCU6_T13_Clk_Sel (uint16 t13clk) |
selects Timer T13 Input Clock. More... | |
INLINE void | CCU6_T12_Prescaler_En (void) |
enables additional prescaler for Timer T12. More... | |
INLINE void | CCU6_T12_Prescaler_Dis (void) |
disables additional prescaler for Timer T12. More... | |
INLINE void | CCU6_T13_Prescaler_En (void) |
enables additional prescaler for Timer T13. More... | |
INLINE void | CCU6_T13_Prescaler_Dis (void) |
disables additional prescaler for Timer T13. More... | |
INLINE uint8 | CCU6_T12_Run_Sts (void) |
reads Timer T12 Run Bit. More... | |
INLINE uint8 | CCU6_T12_Str_Sts (void) |
reads Timer T12 Shadow Transfer Enable Bit. More... | |
INLINE uint8 | CCU6_T12_Count_Dir_Sts (void) |
reads Count Direction of Timer T12 Bit. More... | |
INLINE uint8 | CCU6_T13_Run_Sts (void) |
reads Timer T13 Run Bit. More... | |
INLINE uint8 | CCU6_T13_Str_Sts (void) |
reads Timer T13 Shadow Transfer Enable Bit. More... | |
INLINE void | CCU6_T12_Single_Shot_En (void) |
enables Timer T12 Single Shot. More... | |
INLINE void | CCU6_T12_Single_Shot_Dis (void) |
disables Timer T12 Single Shot. More... | |
INLINE void | CCU6_T13_Trig_Event_Sel (uint16 t13tec) |
selects Timer T13 Trigger Event Control. More... | |
INLINE void | CCU6_T13_Trig_Event_Dir_Sel (uint16 t13ted) |
selects Timer T13 Trigger Event Direction. More... | |
INLINE void | CCU6_T12_Ext_Run_Sel (uint16 t12rsel) |
selects Timer T12 External Run. More... | |
INLINE void | CCU6_T13_Ext_Run_Sel (uint16 t13rsel) |
selects Timer T13 External Run. More... | |
INLINE void | CCU6_T12_Modulation_En (uint16 ccu6_mask) |
enables Timer T12 Modulation Configuration More... | |
INLINE void | CCU6_T12_Modulation_Dis (uint16 ccu6_mask) |
disables Timer T12 Modulation Configuration More... | |
INLINE void | CCU6_T13_Modulation_En (uint16 ccu6_mask) |
enables Timer T13 Modulation Configuration More... | |
INLINE void | CCU6_T13_Modulation_Dis (uint16 ccu6_mask) |
disables Timer T13 Modulation Configuration More... | |
INLINE void | CCU6_Multi_Ch_Mode_En (void) |
enables Multi-Channel Mode More... | |
INLINE void | CCU6_Multi_Ch_Mode_Dis (void) |
disables Multi-Channel Mode More... | |
INLINE void | CCU6_T13_Compare_Out_En (void) |
enables Compare Timer T13 Output More... | |
INLINE void | CCU6_T13_Compare_Out_Dis (void) |
disables Compare Timer T13 Output More... | |
INLINE void | CCU6_Trap_T12_ZM_Exit_En (void) |
enables T12 zero-match Trap Mode More... | |
INLINE void | CCU6_Trap_T13_ZM_Exit_En (void) |
enables T13 zero-match Trap Mode More... | |
INLINE void | CCU6_Trap_Asynch_Exit_En (void) |
enables Trap Immediately without any synchronization to T12 or T13. More... | |
INLINE void | CCU6_Trap_HW_Clr_En (void) |
enables Hardware reset of the Trap Mode. More... | |
INLINE void | CCU6_Trap_SW_Clr_En (void) |
enables Software reset of the Trap Mode. More... | |
INLINE void | CCU6_Trap_T13_En (void) |
enables the trap functionality for T13. More... | |
INLINE void | CCU6_Trap_T13_Dis (void) |
disables The trap functionality for T13. More... | |
INLINE void | CCU6_Trap_Pin_En (void) |
enables the trap functionality based on the input pin CTRAP. More... | |
INLINE void | CCU6_Trap_Pin_Dis (void) |
disables the trap functionality based on the input pin CTRAP. More... | |
INLINE void | CCU6_Trap_Channel_En (uint16 ccu6_mask) |
enables the trap functionality of a corresponding output. More... | |
INLINE void | CCU6_Passive_State_After_Compare_Sel (uint16 ccu6_mask) |
Sets the passive state to "after" the compare value. More... | |
INLINE void | CCU6_Ch0t_Passive_Level_High_Set (void) |
sets Passive High Level of CC60. More... | |
INLINE void | CCU6_Ch0t_Passive_Level_Low_Set (void) |
sets Passive Low Level of CC60. More... | |
INLINE void | CCU6_Ch0c_Passive_Level_High_Set (void) |
sets Passive High Level of COUT60. More... | |
INLINE void | CCU6_Ch0c_Passive_Level_Low_Set (void) |
sets Passive Low Level of COUT60. More... | |
INLINE void | CCU6_Ch1t_Passive_Level_High_Set (void) |
sets Passive High Level of CC61. More... | |
INLINE void | CCU6_Ch1t_Passive_Level_Low_Set (void) |
sets Passive Low Level of CC61. More... | |
INLINE void | CCU6_Ch1c_Passive_Level_High_Set (void) |
sets Passive High Level of COUT61. More... | |
INLINE void | CCU6_Ch1c_Passive_Level_Low_Set (void) |
sets Passive Low Level of COUT61. More... | |
INLINE void | CCU6_Ch2t_Passive_Level_High_Set (void) |
sets Passive High Level of CC62. More... | |
INLINE void | CCU6_Ch2t_Passive_Level_Low_Set (void) |
sets Passive Low Level of CC62. More... | |
INLINE void | CCU6_Ch2c_Passive_Level_High_Set (void) |
sets Passive High Level of COUT62. More... | |
INLINE void | CCU6_Ch2c_Passive_Level_Low_Set (void) |
sets Passive Low Level of COUT62. More... | |
INLINE void | CCU6_Passive_Level_High_Sel (uint16 ccu6_mask) |
sets Compare Corresponding Outputs Passive High Level. More... | |
INLINE void | CCU6_Passiv_Level_Ch3_Sel (uint16 lvl) |
sets Passive State Level of Output COUT63. More... | |
INLINE void | CCU6_Multi_Ch_PWM_Shadow_Reg_Load (uint16 ccu6_mask) |
sets Multi-Channel PWM Pattern Shadow. More... | |
INLINE void | CCU6_MCM_PWM_Str_SW_En (void) |
enables Shadow Transfer Request for MCMPS by Software. More... | |
INLINE void | CCU6_MCM_PWM_Str_HW_En (void) |
enables Shadow Transfer Request for MCMPS by Hardware. More... | |
INLINE void | CCU6_MCM_Expected_Hall_Shadow_Reg_Load (uint16 mcm_mask_ccpos) |
sets Expected Hall Pattern Shadow of CCPOSx. More... | |
INLINE void | CCU6_MCM_Current_Hall_Shadow_Reg_Load (uint16 mcm_mask_ccpos) |
sets Current Hall Pattern Shadow of CCPOSx. More... | |
INLINE void | CCU6_MCM_Hall_Str_SW_En (void) |
enables Shadow Transfer Request for the Hall Pattern by Software. More... | |
INLINE void | CCU6_MCM_Hall_Str_HW_En (void) |
enables Shadow Transfer Request for the Hall Pattern by Hardware. More... | |
INLINE uint8 | CCU6_MCM_PWM_Pattern_Sts (void) |
reads Multi-Channel PWM Pattern. More... | |
INLINE uint8 | CCU6_MCM_PWM_Str_Req_Sts (void) |
reads Reminder Flag Status. More... | |
INLINE uint8 | CCU6_MCM_Expected_Hall_Sts (void) |
reads Expected Hall Pattern of CCPOSx. More... | |
INLINE uint8 | CCU6_MCM_Current_Hall_Sts (void) |
reads Current Hall Pattern of CCPOSx. More... | |
INLINE void | CCU6_MCM_Switch_Sel (uint16 swsel) |
selects Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_NoTrigger_Set (void) |
sets No Trigger Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_CorrectHall_Set (void) |
sets Correct Hall Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_T13_PM_Set (void) |
sets T13 period-match Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_T12_ON_Set (void) |
sets T12 one-match Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_T12_Ch1_CM_Set (void) |
sets T12 channel1 compare-match Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_T12_PM_Set (void) |
sets T12 period-match Switching Mode. More... | |
INLINE void | CCU6_MCM_Switch_Sync_direct_Sel (void) |
sets Direct Switching Synchronization. More... | |
INLINE void | CCU6_MCM_Switch_Sync_T13_ZM_Sel (void) |
sets T13 zero-match Switching Synchronization. More... | |
INLINE void | CCU6_MCM_Switch_Sync_T12_ZM_Sel (void) |
sets T12 zero-match Switching Synchronization. More... | |
INLINE void | CCU6_MCM_Str_T12_Up_Cnt_En (void) |
enables Shadow Transfer for T12 Upcounting. More... | |
INLINE void | CCU6_MCM_Str_T12_Up_Cnt_Dis (void) |
disables Shadow Transfer for T12 Upcounting. More... | |
INLINE void | CCU6_MCM_Str_T12_Down_Cnt_En (void) |
enables Shadow Transfer for T12 Downcounting. More... | |
INLINE void | CCU6_MCM_Str_T12_Down_Cnt_Dis (void) |
disables Shadow Transfer for T12 Downcounting. More... | |
INLINE void | CCU6_MCM_Str_T13_Up_Cnt_En (void) |
enables Shadow Transfer for T13 Upcounting. More... | |
INLINE void | CCU6_MCM_Str_T13_Up_Cnt_Dis (void) |
disables Shadow Transfer for T13 Upcounting. More... | |
INLINE uint8 | CCU6_T12_CM_CC60_Int_Rise_Sts (void) |
reads Capture, Compare-Match Rising Edge Flag Status for Channel 0. More... | |
INLINE uint8 | CCU6_T12_CM_CC61_Int_Rise_Sts (void) |
reads Capture, Compare-Match Rising Edge Flag Status for Channel 1. More... | |
INLINE uint8 | CCU6_T12_CM_CC62_Int_Rise_Sts (void) |
reads Capture, Compare-Match Rising Edge Flag Status for Channel 2. More... | |
INLINE uint8 | CCU6_T12_CM_CC60_Int_Fall_Sts (void) |
reads Capture, Compare-Match Falling Edge Flag Status for Channel 0. More... | |
INLINE uint8 | CCU6_T12_CM_CC61_Int_Fall_Sts (void) |
reads Capture, Compare-Match Falling Edge Flag Status for Channel 1. More... | |
INLINE uint8 | CCU6_T12_CM_CC62_Int_Fall_Sts (void) |
reads Capture, Compare-Match Falling Edge Flag Status for Channel 2. More... | |
INLINE uint8 | CCU6_T12_OM_Int_Sts (void) |
reads Timer T12 One-Match Flag Status. More... | |
INLINE uint8 | CCU6_T12_PM_Int_Sts (void) |
reads Timer T12 Period-Match Flag Status. More... | |
INLINE uint8 | CCU6_T13_CM_Int_Sts (void) |
reads Timer T13 Compare-Match Flag Status. More... | |
INLINE uint8 | CCU6_T13_PM_Int_Sts (void) |
reads Timer T13 Period-Match Flag Status. More... | |
INLINE uint8 | CCU6_Trap_Flag_Int_Sts (void) |
reads Trap Flag Status. More... | |
INLINE uint8 | CCU6_Trap_State_Int_Sts (void) |
reads Trap Status. More... | |
INLINE uint8 | CCU6_Hall_Correct_Int_Sts (void) |
reads Correct Hall Event Status. More... | |
INLINE uint8 | CCU6_Hall_Wrong_Int_Sts (void) |
reads Wrong Hall Event Status. More... | |
INLINE uint8 | CCU6_MCM_Idle_Int_Sts (void) |
reads IDLE Status. More... | |
INLINE uint8 | CCU6_MCM_Str_Int_Sts (void) |
reads Multi-Channel Mode Shadow Transfer Request Status. More... | |
INLINE void | CCU6_T12_CM_CC60_Int_Rise_Set (void) |
sets Capture, Compare-Match Rising Edge Interrupt flag for Channel 0. More... | |
INLINE void | CCU6_T12_CM_CC61_Int_Rise_Set (void) |
sets Capture, Compare-Match Rising Edge Interrupt flag for Channel 1. More... | |
INLINE void | CCU6_T12_CM_CC62_Int_Rise_Set (void) |
sets Capture, Compare-Match Rising Edge Interrupt flag for Channel 2. More... | |
INLINE void | CCU6_T12_CM_CC60_Int_Fall_Set (void) |
sets Capture, Compare-Match Falling Edge Interrupt flag for Channel 0. More... | |
INLINE void | CCU6_T12_CM_CC61_Int_Fall_Set (void) |
sets Capture, Compare-Match Falling Edge Interrupt flag for Channel 1. More... | |
INLINE void | CCU6_T12_CM_CC62_Int_Fall_Set (void) |
sets Capture, Compare-Match Falling Edge Interrupt flag for Channel 2. More... | |
INLINE void | CCU6_T12_OM_Int_Set (void) |
sets Interrupt for T12 One-Match Flag. More... | |
INLINE void | CCU6_T12_PM_Int_Set (void) |
sets Interrupt for T12 Period-Match Flag. More... | |
INLINE void | CCU6_T13_CM_Int_Set (void) |
sets Interrupt for T13 Compare-Match Flag. More... | |
INLINE void | CCU6_T13_PM_Int_Set (void) |
sets Interrupt for T13 Period-Match Flag. More... | |
INLINE void | CCU6_Trap_Flag_Int_Set (void) |
sets Trap Flag. More... | |
INLINE void | CCU6_Trap_SW_Hall_Int_Set (void) |
sets Interrupt for Trap SW Hall Event flag. More... | |
INLINE void | CCU6_Hall_Correct_Int_Set (void) |
sets Interrupt for Correct Hall Event flag. More... | |
INLINE void | CCU6_Hall_Wrong_Int_Set (void) |
sets Interrupt for Wrong Hall Event flag. More... | |
INLINE void | CCU6_MCM_Idle_Int_Set (void) |
sets Interrupt for IDLE flag. More... | |
INLINE void | CCU6_MCM_Str_Int_Set (void) |
sets Multi-Channel Mode Shadow Transfer Interrupt flag. More... | |
INLINE void | CCU6_Ch0_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for Channel 0 Interrupts. More... | |
INLINE void | CCU6_Ch1_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for Channel 1 Interrupts. More... | |
INLINE void | CCU6_Ch2_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for Channel 2 Interrupts. More... | |
INLINE void | CCU6_Error_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for Error Interrupts. More... | |
INLINE void | CCU6_T12_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for Timer T12 Interrupts. More... | |
INLINE void | CCU6_T13_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for Timer T13 Interrupts. More... | |
INLINE void | CCU6_Hall_Correct_Int_Node_Sel (uint16 srx) |
selects Interrupt Node Pointer for CHE Interrupts. More... | |
INLINE void | CCU6_CH0_CM_R_Int_Clr (void) |
clears Capture, Compare-Match Rising Edge Interrupt flag for Channel 0. More... | |
INLINE void | CCU6_CH0_CM_F_Int_Clr (void) |
clears Capture, Compare-Match Falling Edge Interrupt flag for Channel 0. More... | |
INLINE void | CCU6_CH1_CM_R_Int_Clr (void) |
clears Capture, Compare-Match Rising Edge Interrupt flag for Channel 1. More... | |
INLINE void | CCU6_CH1_CM_F_Int_Clr (void) |
clears Capture, Compare-Match Falling Edge Interrupt flag for Channel 1. More... | |
INLINE void | CCU6_CH2_CM_R_Int_Clr (void) |
clears Capture, Compare-Match Rising Edge Interrupt flag for Channel 2. More... | |
INLINE void | CCU6_CH2_CM_F_Int_Clr (void) |
clears Capture, Compare-Match Falling Edge Interrupt flag for Channel 2. More... | |
INLINE void | CCU6_T12_OM_Int_Clr (void) |
clears Interrupt for T12 One-Match Flag. More... | |
INLINE void | CCU6_T12_PM_Int_Clr (void) |
clears Interrupt for T12 Period-Match Flag. More... | |
INLINE void | CCU6_T13_CM_Int_Clr (void) |
clears Interrupt for T13 Compare-Match Flag. More... | |
INLINE void | CCU6_T13_PM_Int_Clr (void) |
clears Interrupt for T13 Period-Match Flag. More... | |
INLINE void | CCU6_TRAP_Int_Clr (void) |
clears Trap Flag. More... | |
INLINE void | CCU6_CHE_Int_Clr (void) |
clears Interrupt for Correct Hall Event flag. More... | |
INLINE void | CCU6_WHE_Int_Clr (void) |
clears Interrupt for Wrong Hall Event flag. More... | |
INLINE void | CCU6_STR_Int_Clr (void) |
clears Multi-Channel Mode Shadow Transfer Interrupt flag. More... | |
INLINE void | CCU6_CH0_CM_R_Int_En (void) |
enables Capture, Compare-Match Rising Edge Interrupt for Channel 0. More... | |
INLINE void | CCU6_CH0_CM_R_Int_Dis (void) |
disables Capture, Compare-Match Rising Edge Interrupt for Channel 0. More... | |
INLINE void | CCU6_CH0_CM_F_Int_En (void) |
enables Capture, Compare-Match Falling Edge Interrupt for Channel 0. More... | |
INLINE void | CCU6_CH0_CM_F_Int_Dis (void) |
disables Capture, Compare-Match Falling Edge Interrupt for Channel 0. More... | |
INLINE void | CCU6_CH1_CM_R_Int_En (void) |
enables Capture, Compare-Match Rising Edge Interrupt for Channel 1. More... | |
INLINE void | CCU6_CH1_CM_R_Int_Dis (void) |
disables Capture, Compare-Match Rising Edge Interrupt for Channel 1. More... | |
INLINE void | CCU6_CH1_CM_F_Int_En (void) |
enables Capture, Compare-Match Falling Edge Interrupt for Channel 1. More... | |
INLINE void | CCU6_CH1_CM_F_Int_Dis (void) |
disables Capture, Compare-Match Falling Edge Interrupt for Channel 1. More... | |
INLINE void | CCU6_CH2_CM_R_Int_En (void) |
enables Capture, Compare-Match Rising Edge Interrupt for Channel 2. More... | |
INLINE void | CCU6_CH2_CM_R_Int_Dis (void) |
disables Capture, Compare-Match Rising Edge Interrupt for Channel 2. More... | |
INLINE void | CCU6_CH2_CM_F_Int_En (void) |
enables Capture, Compare-Match Falling Edge Interrupt for Channel 2. More... | |
INLINE void | CCU6_CH2_CM_F_Int_Dis (void) |
disables Capture, Compare-Match Falling Edge Interrupt for Channel 2. More... | |
INLINE void | CCU6_T12_OM_Int_En (void) |
enables Interrupt for T12 One-Match. More... | |
INLINE void | CCU6_T12_OM_Int_Dis (void) |
disables Interrupt for T12 One-Match. More... | |
INLINE void | CCU6_T12_PM_Int_En (void) |
enables Interrupt for T12 Period-Match. More... | |
INLINE void | CCU6_T12_PM_Int_Dis (void) |
disables Interrupt for T12 Period-Match. More... | |
INLINE void | CCU6_T13_CM_Int_En (void) |
enables Interrupt for T13 Compare-Match. More... | |
INLINE void | CCU6_T13_CM_Int_Dis (void) |
disables Interrupt for T13 Compare-Match. More... | |
INLINE void | CCU6_T13_PM_Int_En (void) |
enables Interrupt for T13 Period-Match. More... | |
INLINE void | CCU6_T13_PM_Int_Dis (void) |
disables Interrupt for T13 Period-Match. More... | |
INLINE void | CCU6_TRAP_Int_En (void) |
enables Interrupt for Trap Flag. More... | |
INLINE void | CCU6_TRAP_Int_Dis (void) |
disables Interrupt for Trap Flag. More... | |
INLINE void | CCU6_CHE_Int_En (void) |
enables Interrupt for Correct Hall Event. More... | |
INLINE void | CCU6_CHE_Int_Dis (void) |
disables Interrupt for Correct Hall Event. More... | |
INLINE void | CCU6_WHE_Int_En (void) |
enables Interrupt for Wrong Hall Event. More... | |
INLINE void | CCU6_WHE_Int_Dis (void) |
disables Interrupt for Wrong Hall Event. More... | |
INLINE void | CCU6_STR_Int_En (void) |
enables Multi-Channel Mode Shadow Transfer Interrupt. More... | |
INLINE void | CCU6_STR_Int_Dis (void) |
disables Multi-Channel Mode Shadow Transfer Interrupt. More... | |
void | CCU6_Init (void) |
Initializes the CCU6 module. More... | |
INLINE void | CCU6_StartTmr_T12 (void) |
Start CCU6 Timer T12. More... | |
INLINE void | CCU6_StartTmr_T13 (void) |
Start CCU6 Timer T13. More... | |
INLINE void | CCU6_StopTmr_T12 (void) |
Stop CCU6 Timer T12. More... | |
INLINE void | CCU6_StopTmr_T13 (void) |
Stops CCU6 Timer T13. More... | |
INLINE void | CCU6_EnableST_T12 (void) |
Enable T12 Shadow Transfer. More... | |
INLINE void | CCU6_EnableST_T13 (void) |
Enable T13 Shadow Transfer. More... | |
INLINE void | CCU6_LoadShadowRegister_CC60 (uint16 tick) |
Load Channel 0 compare value to the shadow register. More... | |
INLINE void | CCU6_LoadShadowRegister_CC61 (uint16 tick) |
Load Channel 1 compare value to the shadow register. More... | |
INLINE void | CCU6_LoadShadowRegister_CC62 (uint16 tick) |
Load Channel 2 compare value to the shadow register. More... | |
INLINE void | CCU6_LoadShadowRegister_CC63 (uint16 tick) |
Load Channel 3 compare value to the shadow register. More... | |
INLINE void | CCU6_LoadPeriodRegister_T13_Time (uint32 us) |
Load Timer13 Period Register as Time Value. More... | |
INLINE void | CCU6_LoadPeriodRegister_T13_Tick (uint16 tick) |
Load Timer13 Period Register as Time Value. More... | |
INLINE bool | CCU6_IsT13Running (void) |
reads Timer T13 Run Bit. More... | |
INLINE void | CCU6_SetT13Trigger (uint16 Mask) |
Sets trigger event for the T13 timer. More... | |
INLINE void | CCU6_SetT13Compare (uint16 Compare) |
Sets compare value for the T13 timer. More... | |
INLINE void | CCU6_SetT12T13ControlBits (uint16 Mask) |
Sets write-only control bits for T12 and/or T13 timer. More... | |
INLINE uint32 | CCU6_ReadHallReg (void) |
Reads sampled Hall pattern from CCU6 CMPSTAT register. More... | |
INLINE uint16 | CCU6_ReadMultichannelPatterns (void) |
Reads actual Hall and PWM patterns for Multi-Channel Mode. More... | |
INLINE void | CCU6_WriteMultichannelPatterns (uint16 Patterns) |
Writes Hall and/or PWM patterns for Multi-Channel Mode to shadow register. More... | |
INLINE void | CCU6_ConfigureMultichannelModulation (uint16 Mode) |
Sets Multi-Channel Mode control register. More... | |
INLINE void | CCU6_ConfigureGlobalModulation (uint16 Mode) |
Sets global modulation control register. More... | |
INLINE void | CCU6_EnableInt (uint16 Mask) |
Enables/disables interrupt(s). More... | |
INLINE void | CCU6_ClearIntStatus (uint16 Mask) |
Clears interrupt status bit(s). More... | |
#define CCU6_MASK_CC60 ((uint16)1u << 0u) |
CCU6 channel Input/Output selection macro, CC60.
#define CCU6_MASK_CC61 ((uint16)1u << 2u) |
CCU6 channel Input/Output selection macro, CC61.
#define CCU6_MASK_CC62 ((uint16)1u << 4u) |
CCU6 channel Input/Output selection macro, CC62.
#define CCU6_MASK_Ch0c CCU6_MASK_COUT60 |
CCU6 channel Input/Output selection macro, COUT60.
#define CCU6_MASK_Ch0t CCU6_MASK_CC60 |
CCU6 channel Input/Output selection macro, CC60.
#define CCU6_MASK_Ch1c CCU6_MASK_COUT61 |
CCU6 channel Input/Output selection macro, COUT61.
#define CCU6_MASK_Ch1t CCU6_MASK_CC61 |
CCU6 channel Input/Output selection macro, CC61.
#define CCU6_MASK_Ch2c CCU6_MASK_COUT62 |
CCU6 channel Input/Output selection macro, COUT62.
#define CCU6_MASK_Ch2t CCU6_MASK_CC62 |
CCU6 channel Input/Output selection macro, CC62.
#define CCU6_MASK_COUT60 ((uint16)1u << 1u) |
CCU6 channel Input/Output selection macro, COUT60.
#define CCU6_MASK_COUT61 ((uint16)1u << 3u) |
CCU6 channel Input/Output selection macro, COUT61.
#define CCU6_MASK_COUT62 ((uint16)1u << 5u) |
CCU6 channel Input/Output selection macro, COUT62.
#define CCU6_MASK_MCMOUTS_SHADOW_HALL (CCU6_MCMOUTS_STRHP_Msk) |
CCU6 MCMOUTS Constants Macro, SHADOW HALL.
#define CCU6_MASK_MCMOUTS_SHADOW_OUT (CCU6_MCMOUTS_STRMCM_Msk) |
CCU6 MCMOUTS Constants Macro, SHADOW OUT.
#define CCU6_MASK_TCTR4_RESET_T12 (CCU6_TCTR4_T12RES_Msk) |
CCU6 TCTR4 MASK Macro, T12 RESET.
#define CCU6_MASK_TCTR4_RESET_T13 (CCU6_TCTR4_T13RES_Msk) |
CCU6 TCTR4 MASK Macro, T13 RESET.
#define CCU6_MASK_TCTR4_SHADOW_T12 (CCU6_TCTR4_T12STR_Msk) |
CCU6 TCTR4 MASK Macro, T12 SHADOW.
#define CCU6_MASK_TCTR4_SHADOW_T13 (CCU6_TCTR4_T13STR_Msk) |
CCU6 TCTR4 MASK Macro, T13 SHADOW.
#define CCU6_MASK_TCTR4_START_T12 (CCU6_TCTR4_T12RS_Msk) |
CCU6 TCTR4 MASK Macro, T12 START.
#define CCU6_MASK_TCTR4_START_T13 (CCU6_TCTR4_T13RS_Msk) |
CCU6 TCTR4 MASK Macro, T13 START.
#define CCU6_MASK_TCTR4_STOP_T12 (CCU6_TCTR4_T12RR_Msk) |
CCU6 TCTR4 MASK Macro, T12 STOP.
#define CCU6_MASK_TCTR4_STOP_T13 (CCU6_TCTR4_T13RR_Msk) |
CCU6 TCTR4 MASK Macro, T13 STOP.
enum TCCU6_Ch0_Input |
enum TCCU6_Ch1_Input |
enum TCCU6_Ch2_Input |
enum TCCU6_Clk_Prescaler |
This enum lists the CCU6 T12/T13 Clock Prescaler divider.
enum TCCU6_HSYNC |
This enum lists the CCU6 Hall Synch Configuration.
enum TCCU6_MCM_SWSEL |
This enum lists the CCU6 Multi Channel Mode Switching Selection.
enum TCCU6_Node_Sel |
enum TCCU6_Pos0_Input |
enum TCCU6_Pos1_Input |
enum TCCU6_Pos2_Input |
enum TCCU6_PSL63 |
enum TCCU6_PWMMode |
This enum lists the CCU6 modulation modes for T12.
enum TCCU6_T12_Cnt_Input |
This enum lists the CCU6 ISCNT12 Inputs.
enum TCCU6_T12_Ext_Input |
enum TCCU6_T12HR_Input |
enum TCCU6_T12RSEL |
enum TCCU6_T13_Cnt_Input |
This enum lists the CCU6 ISCNT13 Inputs.
enum TCCU6_T13_Ext_Input |
enum TCCU6_T13ED |
This enum lists the CCU6 T13 Trigger Event Direction.
enum TCCU6_T13HR_Input |
enum TCCU6_T13RSEL |
enum TCCU6_T13TEC |
This enum lists the CCU6 T13 Trigger Event Control.
enum TCCU6_Trap_Input |
selects Input for CCPOS0.
ispos0 | input for CCPOS0 |
Example
This example selects CCPOS0_1 as Input for CCPOS0.
selects Input for CCPOS1.
ispos1 | input for CCPOS1 |
Example
This example selects CCPOS1_1 as Input for CCPOS1.
selects Input for CCPOS2.
ispos2 | input for CCPOS2 |
Example
This example selects CCPOS2_1 as Input for CCPOS2.
selects CCU6 T12 CH0 Capture/Compare Mode.
msel60 | CCU6 T12 CH0 Capture/Compare Mode |
Example
This example selects Compare outputs disabled as CCU6 T12 CH0 Capture/Compare Mode.
INLINE void CCU6_CH0_CM_F_Int_Clr | ( | void | ) |
clears Capture, Compare-Match Falling Edge Interrupt flag for Channel 0.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 0.
INLINE void CCU6_CH0_CM_F_Int_Dis | ( | void | ) |
disables Capture, Compare-Match Falling Edge Interrupt for Channel 0.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 0.
INLINE void CCU6_CH0_CM_F_Int_En | ( | void | ) |
enables Capture, Compare-Match Falling Edge Interrupt for Channel 0.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 0.
INLINE void CCU6_CH0_CM_R_Int_Clr | ( | void | ) |
clears Capture, Compare-Match Rising Edge Interrupt flag for Channel 0.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 0.
INLINE void CCU6_CH0_CM_R_Int_Dis | ( | void | ) |
disables Capture, Compare-Match Rising Edge Interrupt for Channel 0.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 0.
INLINE void CCU6_CH0_CM_R_Int_En | ( | void | ) |
enables Capture, Compare-Match Rising Edge Interrupt for Channel 0.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 0.
INLINE void CCU6_Ch0_CompState_Rst | ( | void | ) |
resets Capture/Compare Status Modification Bit 0 for CC60ST by Software.
Example
This example resets CC60ST.
INLINE void CCU6_Ch0_CompState_Set | ( | void | ) |
sets Capture/Compare Status Modification Bit 0 for (CC60ST) by Software.
Example
This example sets CC60ST.
reads CC60 Capture/Compare State.
0 | if the timer count is less than the compare value |
1 | if the timer count is greater than the compare value |
Example
This example sets Passive state for COUT60.
INLINE void CCU6_Ch0_Deadtime_Dis | ( | void | ) |
disables CCU6 Timer T12 Channel 0 Deadtime.
Example
This example disables CCU6 Timer T12 Channel 0 Deadtime.
INLINE void CCU6_Ch0_Deadtime_En | ( | void | ) |
enables CCU6 Timer T12 Channel 0 Deadtime.
Example
This example enables CCU6 Timer T12 Channel 0 Deadtime.
reads CCU6 Timer T12 Channel 0 Deadtime Status.
Example
This example reads CCU6 Timer T12 Channel 0 Deadtime Status.
selects Input for CC60.
iscc60 | input for CC60 |
Example
This example selects CC60_1 as Input for CC60.
selects Interrupt Node Pointer for Channel 0 Interrupts.
srx | Interrupt Node Pointer for Channel 0 Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for CC60R and treats the Capture, Compare-Match Rising Edge Interrupt for Channel 0.
reads Channel 0 Capture/Compare Value.
Example
This example reads Channel 0 Capture/Compare Value.
sets Channel 0 Capture/Compare Value.
cc60sr | Channel 0 Capture/Compare Value |
Example
This example sets Channel 0 Capture/Compare Value to 5000.
INLINE void CCU6_Ch0c_Passive_Level_High_Set | ( | void | ) |
sets Passive High Level of COUT60.
Example
This example sets Passive High Level of COUT60.
INLINE void CCU6_Ch0c_Passive_Level_Low_Set | ( | void | ) |
sets Passive Low Level of COUT60.
Example
This example sets Passive Low Level of COUT60.
INLINE void CCU6_Ch0t_Passive_Level_High_Set | ( | void | ) |
sets Passive High Level of CC60.
Example
This example sets Passive High Level of CC60.
INLINE void CCU6_Ch0t_Passive_Level_Low_Set | ( | void | ) |
sets Passive Low Level of CC60.
Example
This example sets Passive Low Level of CC60.
selects CCU6 T12 CH1 Capture/Compare Mode.
msel61 | CCU6 T12 CH1 Capture/Compare Mode |
Example
This example selects Compare outputs disabled as CCU6 T12 CH1 Capture/Compare Mode.
INLINE void CCU6_CH1_CM_F_Int_Clr | ( | void | ) |
clears Capture, Compare-Match Falling Edge Interrupt flag for Channel 1.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 1.
INLINE void CCU6_CH1_CM_F_Int_Dis | ( | void | ) |
disables Capture, Compare-Match Falling Edge Interrupt for Channel 1.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 1.
INLINE void CCU6_CH1_CM_F_Int_En | ( | void | ) |
enables Capture, Compare-Match Falling Edge Interrupt for Channel 1.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 1.
INLINE void CCU6_CH1_CM_R_Int_Clr | ( | void | ) |
clears Capture, Compare-Match Rising Edge Interrupt flag for Channel 1.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 1.
INLINE void CCU6_CH1_CM_R_Int_Dis | ( | void | ) |
disables Capture, Compare-Match Rising Edge Interrupt for Channel 1.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 1.
INLINE void CCU6_CH1_CM_R_Int_En | ( | void | ) |
enables Capture, Compare-Match Rising Edge Interrupt for Channel 1.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 1.
INLINE void CCU6_Ch1_CompState_Rst | ( | void | ) |
resets Capture/Compare Status Modification Bit 1 for CC61ST by Software.
Example
This example resets CC61ST.
INLINE void CCU6_Ch1_CompState_Set | ( | void | ) |
sets Capture/Compare Status Modification Bit 1 for (CC61ST) by Software.
Example
This example sets CC61ST.
reads CC61 Capture/Compare State.
0 | if the timer count is less than the compare value |
1 | if the timer count is greater than the compare value |
Example
This example sets Passive state for COUT61.
INLINE void CCU6_Ch1_Deadtime_Dis | ( | void | ) |
disables CCU6 Timer T12 Channel 1 Deadtime.
Example
This example disables CCU6 Timer T12 Channel 1 Deadtime.
INLINE void CCU6_Ch1_Deadtime_En | ( | void | ) |
enables CCU6 Timer T12 Channel 1 Deadtime.
Example
This example enables CCU6 Timer T12 Channel 1 Deadtime.
reads CCU6 Timer T12 Channel 1 Deadtime Status.
Example
This example reads CCU6 Timer T12 Channel 1 Deadtime Status.
selects Input for CC61.
iscc61 | input for CC61 |
Example
This example selects CC61_1 as Input for CC61.
selects Interrupt Node Pointer for Channel 1 Interrupts.
srx | Interrupt Node Pointer for Channel 1 Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for CC61R and treats the Capture, Compare-Match Rising Edge Interrupt for Channel 1.
reads Channel 1 Capture/Compare Value.
Example
This example reads Channel 1 Capture/Compare Value.
sets Channel 1 Capture/Compare Value.
cc61sr | Channel 1 Capture/Compare Value |
Example
This example sets Channel 1 Capture/Compare Value to 5000.
INLINE void CCU6_Ch1c_Passive_Level_High_Set | ( | void | ) |
sets Passive High Level of COUT61.
Example
This example sets Passive High Level of COUT61.
INLINE void CCU6_Ch1c_Passive_Level_Low_Set | ( | void | ) |
sets Passive Low Level of COUT61.
Example
This example sets Passive Low Level of COUT61.
INLINE void CCU6_Ch1t_Passive_Level_High_Set | ( | void | ) |
sets Passive High Level of CC61.
Example
This example sets Passive High Level of CC61.
INLINE void CCU6_Ch1t_Passive_Level_Low_Set | ( | void | ) |
sets Passive Low Level of CC61.
Example
This example sets Passive Low Level of CC61.
selects CCU6 T12 CH2 Capture/Compare Mode.
msel62 | CCU6 T12 CH2 Capture/Compare Mode |
Example
This example selects Compare outputs disabled as CCU6 T12 CH2 Capture/Compare Mode.
INLINE void CCU6_CH2_CM_F_Int_Clr | ( | void | ) |
clears Capture, Compare-Match Falling Edge Interrupt flag for Channel 2.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 2.
INLINE void CCU6_CH2_CM_F_Int_Dis | ( | void | ) |
disables Capture, Compare-Match Falling Edge Interrupt for Channel 2.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 2.
INLINE void CCU6_CH2_CM_F_Int_En | ( | void | ) |
enables Capture, Compare-Match Falling Edge Interrupt for Channel 2.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 2.
INLINE void CCU6_CH2_CM_R_Int_Clr | ( | void | ) |
clears Capture, Compare-Match Rising Edge Interrupt flag for Channel 2.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 2.
INLINE void CCU6_CH2_CM_R_Int_Dis | ( | void | ) |
disables Capture, Compare-Match Rising Edge Interrupt for Channel 2.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 2.
INLINE void CCU6_CH2_CM_R_Int_En | ( | void | ) |
enables Capture, Compare-Match Rising Edge Interrupt for Channel 2.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 2.
INLINE void CCU6_Ch2_CompState_Rst | ( | void | ) |
resets Capture/Compare Status Modification Bit 2 (CC62ST) by Software.
Example
This example resets CC62ST.
INLINE void CCU6_Ch2_CompState_Set | ( | void | ) |
sets Capture/Compare Status Modification Bit 2 for (CC62ST) by Software.
Example
This example sets CC62ST.
reads CC62 Capture/Compare State.
0 | if the timer count is less than the compare value |
1 | if the timer count is greater than the compare value |
Example
This example sets Passive state for COUT62.
INLINE void CCU6_Ch2_Deadtime_Dis | ( | void | ) |
disables CCU6 Timer T12 Channel 2 Deadtime.
Example
This example disables CCU6 Timer T12 Channel 2 Deadtime.
INLINE void CCU6_Ch2_Deadtime_En | ( | void | ) |
enables CCU6 Timer T12 Channel 2 Deadtime.
Example
This example enables CCU6 Timer T12 Channel 2 Deadtime.
reads CCU6 Timer T12 Channel 2 Deadtime Status.
Example
This example reads CCU6 Timer T12 Channel 2 Deadtime Status.
selects Input for CC62.
iscc62 | input for CC62 |
Example
This example selects CC62_1 as Input for CC62.
selects Interrupt Node Pointer for Channel 2 Interrupts.
srx | Interrupt Node Pointer for Channel 2 Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for CC62R and treats the Capture, Compare-Match Rising Edge Interrupt for Channel 2.
reads Channel 2 Capture/Compare Value.
Example
This example reads Channel 2 Capture/Compare Value.
sets Channel 2 Capture/Compare Value.
cc62sr | Channel 2 Capture/Compare Value |
Example
This example sets Channel 2 Capture/Compare Value to 5000.
INLINE void CCU6_Ch2c_Passive_Level_High_Set | ( | void | ) |
sets Passive High Level of COUT62.
Example
This example sets Passive High Level of COUT62.
INLINE void CCU6_Ch2c_Passive_Level_Low_Set | ( | void | ) |
sets Passive Low Level of COUT62.
Example
This example sets Passive Low Level of COUT62.
INLINE void CCU6_Ch2t_Passive_Level_High_Set | ( | void | ) |
sets Passive High Level of CC62.
Example
This example sets Passive High Level of CC62.
INLINE void CCU6_Ch2t_Passive_Level_Low_Set | ( | void | ) |
sets Passive Low Level of CC62.
Example
This example sets Passive Low Level of CC62.
INLINE void CCU6_Ch3_CompState_Rst | ( | void | ) |
resets Capture/Compare Status Modification Bit 3 (CC63ST) by Software.
Example
This example resets CC63ST.
INLINE void CCU6_Ch3_CompState_Set | ( | void | ) |
sets Capture/Compare Status Modification Bit 3 for (CC63ST) by Software.
Example
This example sets CC63ST.
reads CC63 Capture/Compare State.
0 | if the timer count is less than the compare value |
1 | if the timer count is greater than the compare value |
Example
This example sets Passive state for COUT63.
reads Channel CC63 Compare Value.
Example
This example reads Channel CC63 Compare Value.
sets Channel CC63 Compare Value.
cc63sr | Channel CC63 Compare Value |
Example
This example sets Channel CC63 Compare Value to 5000.
INLINE void CCU6_Ch3c_Passive_State_After_Compare_Set | ( | void | ) |
sets Passive state for COUT63 after Compare.
Example
This example sets Passive state for COUT63.
INLINE void CCU6_Ch3c_Passive_State_Before_Compare_Set | ( | void | ) |
sets Passive state for COUT63 Before Compare.
Example
This example sets Passive state for COUT63.
INLINE void CCU6_CHE_Int_Clr | ( | void | ) |
clears Interrupt for Correct Hall Event flag.
Example
This example treats the Interrupt for Correct Hall Event.
INLINE void CCU6_CHE_Int_Dis | ( | void | ) |
disables Interrupt for Correct Hall Event.
Example
This example treats the Interrupt for Correct Hall Event.
INLINE void CCU6_CHE_Int_En | ( | void | ) |
enables Interrupt for Correct Hall Event.
Example
This example treats the Interrupt for Correct Hall Event.
Clears interrupt status bit(s).
Mask | for interrupt status bit(s) to be cleared. |
Example
This example Clears all CCU6 interrupt flags.
Sets global modulation control register.
Mode | Global modulation control bits |
Example
This example enables T12 modulation of CC60.
Sets Multi-Channel Mode control register.
Mode | Multi-Channel mode control bits |
Example
This example sets Correct pattern Switching Selection.
reads CCU6 Timer T12 Deadtime.
Example
This example reads CCU6 Timer T12 Deadtime.
INLINE void CCU6_Deadtime_Rst | ( | void | ) |
resets CCU6 T12 Dead-Time Counter.
Example
This example resets CCU6 T12 Dead-Time Counter.
sets CCU6 Timer T12 Deadtime.
dtm | CCU6 Timer T12 Deadtime |
Example
This example sets CCU6 Timer T12 Deadtime to 50.
Enables/disables interrupt(s).
Mask | for interrupt(s) to be enabled. |
Example
This example enables all CCU6 interrupts.
INLINE void CCU6_EnableST_T12 | ( | void | ) |
Enable T12 Shadow Transfer.
Example
This example enables T12 Shadow Transfer.
INLINE void CCU6_EnableST_T13 | ( | void | ) |
Enable T13 Shadow Transfer.
Example
This example enables T13 Shadow Transfer.
selects Interrupt Node Pointer for Error Interrupts.
srx | Interrupt Node Pointer for Error Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for TRPF and treats the Interrupt for Trap Flag.
reads Sampled Hall Pattern Bit 0.
0 | if the input CCPOS0 has been sampled as 0. |
1 | if the input CCPOS0 has been sampled as 1. |
Example
This example reads Sampled Hall Pattern Bit 0.
reads Sampled Hall Pattern Bit 1.
0 | if the input CCPOS1 has been sampled as 0. |
1 | if the input CCPOS1 has been sampled as 1. |
Example
This example reads Sampled Hall Pattern Bit 1.
reads Sampled Hall Pattern Bit 2.
0 | if the input CCPOS2 has been sampled as 0. |
1 | if the input CCPOS2 has been sampled as 1. |
Example
This example reads Sampled Hall Pattern Bit 2.
selects Interrupt Node Pointer for CHE Interrupts.
srx | Interrupt Node Pointer for CHE Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for CHE and treats the Interrupt for Correct Hall Event.
INLINE void CCU6_Hall_Correct_Int_Set | ( | void | ) |
sets Interrupt for Correct Hall Event flag.
Example
This example treats the Interrupt for Correct Hall Event.
reads Correct Hall Event Status.
Example
This example treats the Interrupt for Correct Hall Event.
INLINE void CCU6_Hall_Delay_Bypass_Dis | ( | void | ) |
disables Hall Delay Bypass.
Example
This example disables Hall Delay Bypass.
INLINE void CCU6_Hall_Delay_Bypass_En | ( | void | ) |
enables Hall Delay Bypass.
Example
This example enables Hall Delay Bypass.
selects Hall Synchronization.
hsync | Hall Synchronization |
Example
This example selects T13 CM as Hall Synchronization.
INLINE void CCU6_Hall_Wrong_Int_Set | ( | void | ) |
sets Interrupt for Wrong Hall Event flag.
Example
This example treats the Interrupt for Wrong Hall Event.
reads Wrong Hall Event Status.
Example
This example treats the Interrupt for Wrong Hall Event.
void CCU6_Init | ( | void | ) |
Initializes the CCU6 module.
reads Timer T13 Run Bit.
false | if Timer T13 is stopped. |
true | if Timer T13 is running. |
Example
This example checks if Timer T13 is running.
Load Timer13 Period Register as Time Value.
tick | Period in clock ticks |
Example
This example sets Timer13 Period Register Time Value to 5000 ticks.
Load Timer13 Period Register as Time Value.
us | Period in Time [us] |
Example
This example sets Timer13 Period Register Time Value to 5000 us.
Load Channel 0 compare value to the shadow register.
tick | Channel 0 compare value in clock ticks |
Example
This example sets Channel 0 Compare Value to 5000.
Load Channel 1 compare value to the shadow register.
tick | Channel 1 compare value in clock ticks |
Example
This example sets Channel 1 Compare Value to 5000.
Load Channel 2 compare value to the shadow register.
tick | Channel 2 compare value in clock ticks |
Example
This example sets Channel 2 Compare Value to 5000.
Load Channel 3 compare value to the shadow register.
tick | Channel 3 compare value in clock ticks |
Example
This example sets Channel 3 Compare Value to 5000.
sets Current Hall Pattern Shadow of CCPOSx.
mcm_mask_ccpos | Current Hall Pattern Shadow Mask |
Example
This example sets Current Hall Pattern Shadow of CCPOS0.
reads Current Hall Pattern of CCPOSx.
Example
This example reads Current Hall Pattern of CCPOSx.
sets Expected Hall Pattern Shadow of CCPOSx.
mcm_mask_ccpos | Expected Hall Pattern Shadow Mask |
Example
This example sets Expected Hall Pattern Shadow of CCPOS0.
reads Expected Hall Pattern of CCPOSx.
Example
This example reads Expected Hall Pattern of CCPOSx.
INLINE void CCU6_MCM_Hall_Str_HW_En | ( | void | ) |
enables Shadow Transfer Request for the Hall Pattern by Hardware.
Example
This example enables Shadow Transfer Request for the Hall Pattern by Hardware.
INLINE void CCU6_MCM_Hall_Str_SW_En | ( | void | ) |
enables Shadow Transfer Request for the Hall Pattern by Software.
Example
This example enables Shadow Transfer Request for the Hall Pattern by Software.
INLINE void CCU6_MCM_Idle_Int_Set | ( | void | ) |
sets Interrupt for IDLE flag.
Example
This example sets the Interrupt for IDLE Event and reads IDLE Status.
reads IDLE Status.
Example
This example sets the Interrupt for IDLE Event and reads IDLE Status.
reads Multi-Channel PWM Pattern.
Example
This example reads Multi-Channel PWM Pattern.
INLINE void CCU6_MCM_PWM_Str_HW_En | ( | void | ) |
enables Shadow Transfer Request for MCMPS by Hardware.
Example
This example enables Shadow Transfer Request for MCMPS by Hardware.
reads Reminder Flag Status.
0 | if No shadow transfer. |
1 | if Shadow transfer. |
Example
This example reads Reminder Flag Status.
INLINE void CCU6_MCM_PWM_Str_SW_En | ( | void | ) |
enables Shadow Transfer Request for MCMPS by Software.
Example
This example enables Shadow Transfer Request for MCMPS by Software.
INLINE void CCU6_MCM_Str_Int_Set | ( | void | ) |
sets Multi-Channel Mode Shadow Transfer Interrupt flag.
Example
This example treats the Multi-Channel Mode Shadow Transfer Interrupt.
reads Multi-Channel Mode Shadow Transfer Request Status.
Example
This example treats the Multi-Channel Mode Shadow Transfer Interrupt.
INLINE void CCU6_MCM_Str_T12_Down_Cnt_Dis | ( | void | ) |
disables Shadow Transfer for T12 Downcounting.
Example
This example disables Shadow Transfer for T12 Downcounting.
INLINE void CCU6_MCM_Str_T12_Down_Cnt_En | ( | void | ) |
enables Shadow Transfer for T12 Downcounting.
Example
This example enables Shadow Transfer for T12 Downcounting.
INLINE void CCU6_MCM_Str_T12_Up_Cnt_Dis | ( | void | ) |
disables Shadow Transfer for T12 Upcounting.
Example
This example disables Shadow Transfer for T12 Upcounting.
INLINE void CCU6_MCM_Str_T12_Up_Cnt_En | ( | void | ) |
enables Shadow Transfer for T12 Upcounting.
Example
This example enables Shadow Transfer for T12 Upcounting.
INLINE void CCU6_MCM_Str_T13_Up_Cnt_Dis | ( | void | ) |
disables Shadow Transfer for T13 Upcounting.
Example
This example disables Shadow Transfer for T13 Upcounting.
INLINE void CCU6_MCM_Str_T13_Up_Cnt_En | ( | void | ) |
enables Shadow Transfer for T13 Upcounting.
Example
This example enables Shadow Transfer for T13 Upcounting.
INLINE void CCU6_MCM_Switch_CorrectHall_Set | ( | void | ) |
sets Correct Hall Switching Mode.
Example
This example sets Correct Hall Switching Mode.
INLINE void CCU6_MCM_Switch_NoTrigger_Set | ( | void | ) |
sets No Trigger Switching Mode.
Example
This example sets No Trigger Switching Mode.
selects Switching Mode.
swsel | Switching Mode |
Example
This example sets T13 period-match Switching Mode.
INLINE void CCU6_MCM_Switch_Sync_direct_Sel | ( | void | ) |
sets Direct Switching Synchronization.
Example
This example sets Direct Switching Synchronization.
INLINE void CCU6_MCM_Switch_Sync_T12_ZM_Sel | ( | void | ) |
sets T12 zero-match Switching Synchronization.
Example
This example sets T12 zero-match Switching Synchronization.
INLINE void CCU6_MCM_Switch_Sync_T13_ZM_Sel | ( | void | ) |
sets T13 zero-match Switching Synchronization.
Example
This example sets T13 zero-match Switching Synchronization.
INLINE void CCU6_MCM_Switch_T12_Ch1_CM_Set | ( | void | ) |
sets T12 channel1 compare-match Switching Mode.
Example
This example sets T12 channel1 compare-match Switching Mode.
INLINE void CCU6_MCM_Switch_T12_ON_Set | ( | void | ) |
sets T12 one-match Switching Mode.
Example
This example sets T12 one-match Switching Mode.
INLINE void CCU6_MCM_Switch_T12_PM_Set | ( | void | ) |
sets T12 period-match Switching Mode.
Example
This example sets T12 period-match Switching Mode.
INLINE void CCU6_MCM_Switch_T13_PM_Set | ( | void | ) |
sets T13 period-match Switching Mode.
Example
This example sets T13 period-match Switching Mode.
INLINE void CCU6_Multi_Ch_Mode_Dis | ( | void | ) |
disables Multi-Channel Mode
Example
This example disables Multi-Channel Mode.
INLINE void CCU6_Multi_Ch_Mode_En | ( | void | ) |
enables Multi-Channel Mode
Example
This example enables Multi-Channel Mode.
sets Multi-Channel PWM Pattern Shadow.
ccu6_mask | PWM Pattern Shadow Mask |
Example
This example sets PWM Pattern Shadow for output CC60.
sets Passive State Level of Output COUT63.
lvl | Passive State Level of COUT63 |
Example
This example sets Passive High Level of Output COUT63.
sets Compare Corresponding Outputs Passive High Level.
ccu6_mask | sets the passive state level for Channel 2..0
0 = passive state low level |
Example
This example sets
Sets the passive state to "after" the compare value.
Example
This example sets
Reads sampled Hall pattern from CCU6 CMPSTAT register.
Example
This example Reads sampled Hall pattern from CCU6 CMPSTAT register.
Reads actual Hall and PWM patterns for Multi-Channel Mode.
Example
This example Reads actual Hall and PWM patterns for Multi-Channel Mode.
Sets write-only control bits for T12 and/or T13 timer.
Mask | Control bit mask |
Example
This example resets Timer T12 Run.
Sets compare value for the T13 timer.
Compare | Compare value |
Example
This example sets T13 Compare to 5000.
Sets trigger event for the T13 timer.
Mask | Trigger mask |
Example
This example enables Timer T13 Single Shot Control.
INLINE void CCU6_StartTmr_T12 | ( | void | ) |
Start CCU6 Timer T12.
Example
This example starts CCU6 Timer T12.
INLINE void CCU6_StartTmr_T13 | ( | void | ) |
Start CCU6 Timer T13.
Example
This example starts CCU6 Timer T13.
INLINE void CCU6_StopTmr_T12 | ( | void | ) |
Stop CCU6 Timer T12.
Example
This example stops CCU6 Timer T12.
INLINE void CCU6_StopTmr_T13 | ( | void | ) |
Stops CCU6 Timer T13.
Example
This example stops CCU6 Timer T13.
INLINE void CCU6_STR_Int_Clr | ( | void | ) |
clears Multi-Channel Mode Shadow Transfer Interrupt flag.
Example
This example treats the Multi-Channel Mode Shadow Transfer Interrupt.
INLINE void CCU6_STR_Int_Dis | ( | void | ) |
disables Multi-Channel Mode Shadow Transfer Interrupt.
Example
This example treats the Multi-Channel Mode Shadow Transfer Interrupt.
INLINE void CCU6_STR_Int_En | ( | void | ) |
enables Multi-Channel Mode Shadow Transfer Interrupt.
Example
This example treats the Multi-Channel Mode Shadow Transfer Interrupt.
INLINE void CCU6_T12_Center_Aligned_Mode_En | ( | void | ) |
enables T12 Operating Center-aligned Mode.
Example
This example enables T12 Operating Center-aligned Mode.
selects Timer T12 Input Clock.
t12clk | Timer T12 Input Clock |
Example
This example sets Timer T12 Input Clock to fccu/2.
INLINE void CCU6_T12_CM_CC60_Int_Fall_Set | ( | void | ) |
sets Capture, Compare-Match Falling Edge Interrupt flag for Channel 0.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 0.
reads Capture, Compare-Match Falling Edge Flag Status for Channel 0.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 0.
INLINE void CCU6_T12_CM_CC60_Int_Rise_Set | ( | void | ) |
sets Capture, Compare-Match Rising Edge Interrupt flag for Channel 0.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 0.
reads Capture, Compare-Match Rising Edge Flag Status for Channel 0.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 0.
INLINE void CCU6_T12_CM_CC61_Int_Fall_Set | ( | void | ) |
sets Capture, Compare-Match Falling Edge Interrupt flag for Channel 1.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 1.
reads Capture, Compare-Match Falling Edge Flag Status for Channel 1.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 1.
INLINE void CCU6_T12_CM_CC61_Int_Rise_Set | ( | void | ) |
sets Capture, Compare-Match Rising Edge Interrupt flag for Channel 1.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 1.
reads Capture, Compare-Match Rising Edge Flag Status for Channel 1.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 1.
INLINE void CCU6_T12_CM_CC62_Int_Fall_Set | ( | void | ) |
sets Capture, Compare-Match Falling Edge Interrupt flag for Channel 2.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 2.
reads Capture, Compare-Match Falling Edge Flag Status for Channel 2.
Example
This example treats the Capture, Compare-Match Falling Edge Interrupt for Channel 2.
INLINE void CCU6_T12_CM_CC62_Int_Rise_Set | ( | void | ) |
sets Capture, Compare-Match Rising Edge Interrupt flag for Channel 2.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 2.
reads Capture, Compare-Match Rising Edge Flag Status for Channel 2.
Example
This example treats the Capture, Compare-Match Rising Edge Interrupt for Channel 2.
INLINE void CCU6_T12_Cnt | ( | void | ) |
counts 1 step for CCU6 T12 Event.
Example
This example counts 1 step for CCU6 T12 Event (PISEL2 enabled).
selects Input for T12 Counting.
iscnt12 | input for T12 Counting |
Example
This example counts 1 step for CCU6 T12 Event (T12CNT selected).
reads Count Direction of Timer T12 Bit.
0 | if T12 counts up. |
1 | if T12 counts down. |
Example
This example reads Count Direction of Timer T12 Bit.
reads Timer T12 Counter Value.
Example
This example reads Timer T12 Counter Value.
sets Timer T12 Counter Value.
t12cv | T12 Counter Value |
Example
This example sets Timer T12 Counter Value to 5000.
INLINE void CCU6_T12_Edge_Aligned_Mode_En | ( | void | ) |
enables T12 Operating Edge-aligned Mode.
Example
This example enables T12 Operating Edge-aligned Mode.
selects Input of Extension for T12HR.
t12ext | input of Extension for T12HR |
Example
This example selects T12HR_B as Input for T12HR.
selects Timer T12 External Run.
t12rsel | Timer T12 External Run |
Example
This example sets Timer T12 External Run to Rising edge.
selects Interrupt Node Pointer for Timer T12 Interrupts.
srx | Interrupt Node Pointer for Timer T12 Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for T12OM and treats the Interrupt for T12 One-Match.
disables Timer T12 Modulation Configuration
ccu6_mask | Timer T12 Modulation Configuration |
Example
This example disables Timer T12 Modulation of CC60.
enables Timer T12 Modulation Configuration
ccu6_mask | Timer T12 Modulation Configuration |
Example
This example enables Timer T12 Modulation of CC60.
INLINE void CCU6_T12_OM_Int_Clr | ( | void | ) |
clears Interrupt for T12 One-Match Flag.
Example
This example treats the Interrupt for T12 One-Match.
INLINE void CCU6_T12_OM_Int_Dis | ( | void | ) |
disables Interrupt for T12 One-Match.
Example
This example treats the Interrupt for T12 One-Match.
INLINE void CCU6_T12_OM_Int_En | ( | void | ) |
enables Interrupt for T12 One-Match.
Example
This example treats the Interrupt for T12 One-Match.
INLINE void CCU6_T12_OM_Int_Set | ( | void | ) |
sets Interrupt for T12 One-Match Flag.
Example
This example treats the Interrupt for T12 One-Match.
reads Timer T12 One-Match Flag Status.
Example
This example treats the Interrupt for T12 One-Match.
reads Timer T12 Period Value.
Example
This example reads Timer T12 Period Value.
sets Timer T12 Period Value.
t12pr | T12 Period Value |
Example
This example sets Timer T12 Period Value to 5000.
INLINE void CCU6_T12_PM_Int_Clr | ( | void | ) |
clears Interrupt for T12 Period-Match Flag.
Example
This example treats the Interrupt for T12 Period-Match.
INLINE void CCU6_T12_PM_Int_Dis | ( | void | ) |
disables Interrupt for T12 Period-Match.
Example
This example treats the Interrupt for T12 Period-Match.
INLINE void CCU6_T12_PM_Int_En | ( | void | ) |
enables Interrupt for T12 Period-Match.
Example
This example treats the Interrupt for T12 Period-Match.
INLINE void CCU6_T12_PM_Int_Set | ( | void | ) |
sets Interrupt for T12 Period-Match Flag.
Example
This example treats the Interrupt for T12 Period-Match.
reads Timer T12 Period-Match Flag Status.
Example
This example treats the Interrupt for T12 Period-Match.
INLINE void CCU6_T12_Prescaler_Dis | ( | void | ) |
disables additional prescaler for Timer T12.
Example
This example disables additional prescaler for Timer T12.
INLINE void CCU6_T12_Prescaler_En | ( | void | ) |
enables additional prescaler for Timer T12.
Example
This example enables additional prescaler for Timer T12.
INLINE void CCU6_T12_PWMMode_Set | ( | TCCU6_PWMMode | mode | ) |
sets mode of PWM signal for Channel0/1/2 and COUT0/1/2.
mode | possible mode that is set to all channels that can be modulated by Timer12 |
INLINE void CCU6_T12_Rst | ( | void | ) |
resets CCU6 T12.
Example
This example resets CCU6 T12.
reads Timer T12 Run Bit.
0 | if Timer T12 is stopped. |
1 | if Timer T12 is running. |
Example
This example reads Timer T12 Run Bit.
INLINE void CCU6_T12_Single_Shot_Dis | ( | void | ) |
disables Timer T12 Single Shot.
Example
This example disables Timer T12 Single Shot.
INLINE void CCU6_T12_Single_Shot_En | ( | void | ) |
enables Timer T12 Single Shot.
Example
This example enables Timer T12 Single Shot.
INLINE void CCU6_T12_Start | ( | void | ) |
starts CCU6 T12.
Example
This example starts CCU6 T12.
INLINE void CCU6_T12_Stop | ( | void | ) |
stops CCU6 T12.
Example
This example stops CCU6 T12.
INLINE void CCU6_T12_Str_Dis | ( | void | ) |
disables T12 Shadow Transfer.
Example
This example disables T12 Shadow Transfer.
INLINE void CCU6_T12_Str_En | ( | void | ) |
enables T12 Shadow Transfer.
Example
This example enables T12 Shadow Transfer.
reads Timer T12 Shadow Transfer Enable Bit.
0 | if The shadow register transfer is disabled. |
1 | if The shadow register transfer is enabled. |
Example
This example reads Timer T12 Shadow Transfer Enable Bit.
selects Input for T12HR.
ist12hr | input for T12HR |
Example
This example selects T12HR_B as Input for T12HR.
selects Timer T13 Input Clock.
t13clk | Timer T13 Input Clock |
Example
This example sets Timer T13 Input Clock to fccu/4.
INLINE void CCU6_T13_CM_Int_Clr | ( | void | ) |
clears Interrupt for T13 Compare-Match Flag.
Example
This example treats the Interrupt for T13 Compare-Match.
INLINE void CCU6_T13_CM_Int_Dis | ( | void | ) |
disables Interrupt for T13 Compare-Match.
Example
This example treats the Interrupt for T13 Compare-Match.
INLINE void CCU6_T13_CM_Int_En | ( | void | ) |
enables Interrupt for T13 Compare-Match.
Example
This example treats the Interrupt for T13 Compare-Match.
INLINE void CCU6_T13_CM_Int_Set | ( | void | ) |
sets Interrupt for T13 Compare-Match Flag.
Example
This example treats the Interrupt for T13 Compare-Match.
reads Timer T13 Compare-Match Flag Status.
Example
This example treats the Interrupt for T13 Compare-Match.
INLINE void CCU6_T13_Cnt | ( | void | ) |
counts 1 step for CCU6 T13 Event.
Example
This example counts 1 step for CCU6 T13 Event (PISEL2 enabled).
selects Input for T13 Counting.
iscnt13 | input for T13 Counting |
Example
This example counts 1 step for CCU6 T13 Event (T13CNT enabled).
INLINE void CCU6_T13_Compare_Out_Dis | ( | void | ) |
disables Compare Timer T13 Output
Example
This example disables The alternate output function COUT63.
INLINE void CCU6_T13_Compare_Out_En | ( | void | ) |
enables Compare Timer T13 Output
Example
This example enables The alternate output function COUT63.
reads Timer T13 Counter Value.
Example
This example reads Timer T13 Counter Value.
sets Timer T13 Counter Value.
t13cv | T13 Counter Value |
Example
This example sets Timer T13 Counter Value to 5000.
selects Input of Extension for T13HR.
t13ext | input of Extension for T13HR |
Example
This example selects T13HR_B as Input for T13HR.
selects Timer T13 External Run.
t13rsel | Timer T13 External Run |
Example
This example sets Timer T13 External Run to Rising edge.
selects Interrupt Node Pointer for Timer T13 Interrupts.
srx | Interrupt Node Pointer for Timer T13 Interrupts, values 0..3 |
Example
This example selects Interrupt output line SR0 for T13CM and treats the Interrupt for T13 Compare-Match.
INLINE void CCU6_T13_Inv_Mod_Dis | ( | void | ) |
disables T13 inversion for further modulation.
Example
This example disables T13 inversion.
INLINE void CCU6_T13_Inv_Mod_En | ( | void | ) |
enables T13 inversion for further modulation.
Example
This example enables T13 inversion.
disables Timer T13 Modulation Configuration
ccu6_mask | Timer T13 Modulation Configuration |
Example
This example disables Timer T13 Modulation of CC60.
enables Timer T13 Modulation Configuration
ccu6_mask | Timer T13 Modulation Configuration |
Example
This example enables Timer T13 Modulation of CC60.
reads Timer T13 Period Value.
Example
This example reads Timer T13 Period Value.
sets Timer T13 Period Value.
t13pr | T13 Period Value |
Example
This example sets Timer T13 Period Value to 5000.
INLINE void CCU6_T13_PM_Int_Clr | ( | void | ) |
clears Interrupt for T13 Period-Match Flag.
Example
This example treats the Interrupt for T13 Period-Match.
INLINE void CCU6_T13_PM_Int_Dis | ( | void | ) |
disables Interrupt for T13 Period-Match.
Example
This example treats the Interrupt for T13 Period-Match.
INLINE void CCU6_T13_PM_Int_En | ( | void | ) |
enables Interrupt for T13 Period-Match.
Example
This example treats the Interrupt for T13 Period-Match.
INLINE void CCU6_T13_PM_Int_Set | ( | void | ) |
sets Interrupt for T13 Period-Match Flag.
Example
This example treats the Interrupt for T13 Period-Match.
reads Timer T13 Period-Match Flag Status.
Example
This example treats the Interrupt for T13 Period-Match.
INLINE void CCU6_T13_Prescaler_Dis | ( | void | ) |
disables additional prescaler for Timer T13.
Example
This example disables additional prescaler for Timer T13.
INLINE void CCU6_T13_Prescaler_En | ( | void | ) |
enables additional prescaler for Timer T13.
Example
This example enables additional prescaler for Timer T13.
INLINE void CCU6_T13_Rst | ( | void | ) |
resets CCU6 T13.
Example
This example resets CCU6 T13.
reads Timer T13 Run Bit.
0 | if Timer T13 is stopped. |
1 | if Timer T13 is running. |
Example
This example reads Timer T13 Run Bit.
INLINE void CCU6_T13_Start | ( | void | ) |
starts CCU6 T13.
Example
This example starts CCU6 T13.
INLINE void CCU6_T13_Stop | ( | void | ) |
stops CCU6 T13.
Example
This example stops CCU6 T13.
INLINE void CCU6_T13_Str_Dis | ( | void | ) |
disables T13 Shadow Transfer.
Example
This example disables T13 Shadow Transfer.
INLINE void CCU6_T13_Str_En | ( | void | ) |
enables T13 Shadow Transfer.
Example
This example enables T13 Shadow Transfer.
reads Timer T13 Shadow Transfer Enable Bit.
0 | if The shadow register transfer is disabled. |
1 | if The shadow register transfer is enabled. |
Example
This example reads Timer T13 Shadow Transfer Enable Bit.
selects Timer T13 Trigger Event Direction.
t13ted | Timer T13 Trigger Event Direction |
Example
This example sets Timer T13 Trigger Event Direction to Up.
selects Timer T13 Trigger Event Control.
t13tec | Timer T13 Trigger Event Control |
Example
This example sets T13R upon a period-match of T12.
selects Input for T13HR.
ist13hr | input for T13HR |
Example
This example selects T13HR_B as Input for T13HR.
INLINE void CCU6_Trap_Asynch_Exit_En | ( | void | ) |
enables Trap Immediately without any synchronization to T12 or T13.
Example
This example enables Trap Immediately.
enables the trap functionality of a corresponding output.
ccu6_mask | corresponding output signals |
Example
This example enables the trap functionality of COUT60.
INLINE void CCU6_Trap_Flag_Int_Set | ( | void | ) |
sets Trap Flag.
Example
This example treats the Interrupt for Trap Flag.
reads Trap Flag Status.
Example
This example treats the Interrupt for Trap Flag.
INLINE void CCU6_Trap_HW_Clr_En | ( | void | ) |
enables Hardware reset of the Trap Mode.
Example
This example enables Hardware reset of the Trap Mode.
selects Input for CTRAP.
istrp | input for CTRAP |
Example
This example selects CTRAP_1 as Input for CTRAP.
INLINE void CCU6_TRAP_Int_Clr | ( | void | ) |
clears Trap Flag.
Example
This example treats the Interrupt for Trap Flag.
INLINE void CCU6_TRAP_Int_Dis | ( | void | ) |
disables Interrupt for Trap Flag.
Example
This example treats the Interrupt for Trap Flag.
INLINE void CCU6_TRAP_Int_En | ( | void | ) |
enables Interrupt for Trap Flag.
Example
This example treats the Interrupt for Trap Flag.
INLINE void CCU6_Trap_Pin_Dis | ( | void | ) |
disables the trap functionality based on the input pin CTRAP.
Example
This example disables the trap functionality based on the input pin CTRAP.
INLINE void CCU6_Trap_Pin_En | ( | void | ) |
enables the trap functionality based on the input pin CTRAP.
Example
This example enables the trap functionality based on the input pin CTRAP.
reads Trap Status.
Example
This example treats the Interrupt for Trap Flag.
INLINE void CCU6_Trap_SW_Clr_En | ( | void | ) |
enables Software reset of the Trap Mode.
Example
This example enables Software reset of the Trap Mode.
INLINE void CCU6_Trap_SW_Hall_Int_Set | ( | void | ) |
sets Interrupt for Trap SW Hall Event flag.
Example
This example treats the Interrupt for Trap SW Hall Event.
INLINE void CCU6_Trap_T12_ZM_Exit_En | ( | void | ) |
enables T12 zero-match Trap Mode
Example
This example enables T12 zero-match Trap Mode.
INLINE void CCU6_Trap_T13_Dis | ( | void | ) |
disables The trap functionality for T13.
Example
This example disables the trap functionality for T13.
INLINE void CCU6_Trap_T13_En | ( | void | ) |
enables the trap functionality for T13.
Example
This example enables the trap functionality for T13.
INLINE void CCU6_Trap_T13_ZM_Exit_En | ( | void | ) |
enables T13 zero-match Trap Mode
Example
This example enables T13 zero-match Trap Mode.
INLINE void CCU6_WHE_Int_Clr | ( | void | ) |
clears Interrupt for Wrong Hall Event flag.
Example
This example treats the Interrupt for Wrong Hall Event.
INLINE void CCU6_WHE_Int_Dis | ( | void | ) |
disables Interrupt for Wrong Hall Event.
Example
This example treats the Interrupt for Wrong Hall Event.
INLINE void CCU6_WHE_Int_En | ( | void | ) |
enables Interrupt for Wrong Hall Event.
Example
This example treats the Interrupt for Wrong Hall Event.
Writes Hall and/or PWM patterns for Multi-Channel Mode to shadow register.
Patterns | Hall and/or PWM patterns |
Example
This example disables Multi-Channel PWM Pattern Shadow.