![]() |
Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
|
Macros | |
#define | CCU7_MODCTR_T12MODEN_Pos (0x0U) |
#define | CCU7_MODCTR_T12MODEN_Msk (0x3FU) |
#define | CCU7_MODCTR_T13MODEN_Pos (0x8U) |
#define | CCU7_MODCTR_T13MODEN_Msk (0x3F00U) |
Typedefs | |
typedef enum CCU7_HallSync | tCCU7_HallSync |
typedef enum CCU7_MultiChMode_SWSEL | tCCU7_MultiChMode_SWSEL |
typedef enum CCU7_MultiChMode_SWSYN | tCCU7_MultiChMode_SWSYN |
Functions | |
sint8 | CCU7_init (void) |
Initialize the CCU7 module. More... | |
sint8 | CCU7_enModule (void) |
Enable the CCU7 module by calling the CCU7_init() function. More... | |
sint8 | CCU7_disModule (void) |
Disable the CCU7 module by performing the following steps: stop T12 stop T13, T14, T15, T16 programming the passive states to LOW switching all CCU7 outputs to passive state. More... | |
INLINE uint16 | CCU7_getT12CntVal (void) |
Get T12 Counter Value. More... | |
INLINE void | CCU7_setT12PerVal (uint16 u16_value) |
Set T12 Period Value. More... | |
INLINE uint16 | CCU7_getT12PerVal (void) |
Get T12 Period Value. More... | |
INLINE sint8 | CCU7_setT12Freq_Hz (uint32 u32_freq_hz) |
Set T12 Period in Hz This function sets the T12 period value based on the input parameter u32_freq_hz related to the constant timer 12 clock CCU7_T12_CLK_HZ, taking the edge-/center-aligned mode into consideration. If the requested frequency by the parameter u32_freq_hz can be represented by the current clocking of the CCU7 module and the T12 width then this function returns '0' (success), else failure code (parameter out of range). More... | |
INLINE uint32 | CCU7_getT12Freq_Hz (void) |
Get T12 Period in Hz This function returns the T12 period value related to the constant CCU7_T12_CLK_HZ in Hz, taking the edge-/center-aligned mode into consideration. More... | |
INLINE void | CCU7_setCh0DeadTimeRise_ticks (uint8 u8_value) |
Set Dead-Time for Channel 0 rise in ticks. More... | |
INLINE uint8 | CCU7_getCh0DeadTimeRise_ticks (void) |
Get Dead-Time for Channel 0 rise in ticks. More... | |
INLINE void | CCU7_setCh0DeadTimeFall_ticks (uint8 u8_value) |
Set Dead-Time for Channel 0 fall in ticks. More... | |
INLINE uint8 | CCU7_getCh0DeadTimeFall_ticks (void) |
Get Dead-Time for Channel 0 fall in ticks. More... | |
INLINE void | CCU7_setCh1DeadTimeRise_ticks (uint8 u8_value) |
Set Dead-Time for Channel 1 rise in ticks. More... | |
INLINE uint8 | CCU7_getCh1DeadTimeRise_ticks (void) |
Get Dead-Time for Channel 1 rise in ticks. More... | |
INLINE void | CCU7_setCh1DeadTimeFall_ticks (uint8 u8_value) |
Set Dead-Time for Channel 1 fall in ticks. More... | |
INLINE uint8 | CCU7_getCh1DeadTimeFall_ticks (void) |
Get Dead-Time for Channel 1 fall in ticks. More... | |
INLINE void | CCU7_setCh2DeadTimeRise_ticks (uint8 u8_value) |
Set Dead-Time for Channel 2 rise in ticks. More... | |
INLINE uint8 | CCU7_getCh2DeadTimeRise_ticks (void) |
Get Dead-Time for Channel 2 rise in ticks. More... | |
INLINE void | CCU7_setCh2DeadTimeFall_ticks (uint8 u8_value) |
Set Dead-Time for Channel 2 fall in ticks. More... | |
INLINE uint8 | CCU7_getCh2DeadTimeFall_ticks (void) |
Get Dead-Time for Channel 2 fall in ticks. More... | |
INLINE sint8 | CCU7_setDeadTime_ns (uint8 u8_channel, uint32 u32_deadTimeRise_ns, uint32 u32_deadTimeFall_ns) |
Set the dead time values (rise/fall) for one Channel. This function sets the deadtime counter to a value given by the parameter deadTimeRise/Fall_ns with a relation to the constant clock value given in CCU7_DT_CLK_MHz. The deadtime is entered per channel, with u8_channel from 0..2, and as rising and falling value. If the requested deadtime, for either rising or falling, cannot be represented by the 8bit (overflow) deadtime counter, the function returns "parameter out of range" failure code, the previous dead time counter values for this channel remain unchanged. If the given input u8_channel is out of range a failure code "parameter out of range" is returned, no changes are made. If all parameters are valid the function returns "success". If the input deadtime is not given in multiple of the CCU7_DT_CLK_MHz, the deadtime will be rounded up to the next possible value, in this case the function still returns "success". More... | |
INLINE sint8 | CCU7_getDeadTime_ns (uint8 u8_channel, uint32 *u32p_DeadTimeRise_ns, uint32 *u32p_DeadTimeFall_ns) |
This function reads the dead time counter value for the given channel, with u8_channel from 0..2, into the provided pointers u32p_DeadTimeRise_ns and u32p_DeadTimeFall_ns. The input parameters u32p_DeadTimeRise_ns and u32p_DeadTimeFall_ns are checked to point to a valid RAM address. The dead time in nano seconds related to the constant clock CCU7_DT_CLK_MHz. If at least one of the provided parameters is out of range a failure code "parameter out of range" is returned, the pointers u32p_DeadTimeRise_ns and u32p_DeadTimeFall_ns are not updated in this case. More... | |
INLINE uint16 | CCU7_getCC70AVal (void) |
Get CC70A Capture/Compare Value. More... | |
INLINE uint16 | CCU7_getCC71AVal (void) |
Get CC71A Capture/Compare Value. More... | |
INLINE uint16 | CCU7_getCC72AVal (void) |
Get CC72A Capture/Compare Value. More... | |
INLINE void | CCU7_setCC70AValShadow (uint16 u16_value) |
Set Shadow Register for CC70A Capture/Compare Value. More... | |
INLINE void | CCU7_setCC71AValShadow (uint16 u16_value) |
Set Shadow Register for CC71A Capture/Compare Value. More... | |
INLINE void | CCU7_setCC72AValShadow (uint16 u16_value) |
Set Shadow Register for CC72A Capture/Compare Value. More... | |
INLINE uint16 | CCU7_getC70BVal (void) |
Get C70B Compare Value. More... | |
INLINE uint16 | CCU7_getC71BVal (void) |
Get C71B Compare Value. More... | |
INLINE uint16 | CCU7_getC72BVal (void) |
Get C72B Compare Value. More... | |
INLINE void | CCU7_setC70BValShadow (uint16 u16_value) |
Set Shadow Register for C70B Compare Value. More... | |
INLINE void | CCU7_setC71BValShadow (uint16 u16_value) |
Set Shadow Register for C71B Compare Value. More... | |
INLINE void | CCU7_setC72BValShadow (uint16 u16_value) |
Set Shadow Register for C72B Compare Value. More... | |
INLINE uint16 | CCU7_getT13CntVal (void) |
Get T13 Counter Value. More... | |
INLINE uint16 | CCU7_getT14CntVal (void) |
Get T14 Counter Value. More... | |
INLINE uint16 | CCU7_getT15CntVal (void) |
Get T15 Counter Value. More... | |
INLINE uint16 | CCU7_getT16CntVal (void) |
Get T16 Counter Value. More... | |
INLINE void | CCU7_setT13PerVal (uint16 u16_value) |
Set T13 Period Value. More... | |
INLINE uint16 | CCU7_getT13PerVal (void) |
Get T13 Period Value. More... | |
INLINE void | CCU7_setT14PerVal (uint16 u16_value) |
Set T14 Period Value. More... | |
INLINE uint16 | CCU7_getT14PerVal (void) |
Get T14 Period Value. More... | |
INLINE void | CCU7_setT15PerVal (uint16 u16_value) |
Set T15 Period Value. More... | |
INLINE uint16 | CCU7_getT15PerVal (void) |
Get T15 Period Value. More... | |
INLINE void | CCU7_setT16PerVal (uint16 u16_value) |
Set T16 Period Value. More... | |
INLINE uint16 | CCU7_getT16PerVal (void) |
Get T16 Period Value. More... | |
INLINE uint16 | CCU7_getC73Val (void) |
Get C73 Compare Value. More... | |
INLINE uint16 | CCU7_getC74Val (void) |
Get C74 Compare Value. More... | |
INLINE uint16 | CCU7_getC75Val (void) |
Get C75 Compare Value. More... | |
INLINE uint16 | CCU7_getC76Val (void) |
Get C76 Compare Value. More... | |
INLINE void | CCU7_setC73ValShadow (uint16 u16_value) |
Set Shadow Register for C73 Compare Value. More... | |
INLINE void | CCU7_setC74ValShadow (uint16 u16_value) |
Set Shadow Register for C74 Compare Value. More... | |
INLINE void | CCU7_setC75ValShadow (uint16 u16_value) |
Set Shadow Register for C75 Compare Value. More... | |
INLINE void | CCU7_setC76ValShadow (uint16 u16_value) |
Set Shadow Register for C76 Compare Value. More... | |
INLINE uint8 | CCU7_getHallPatternSampled (void) |
Get Sampled Hall Pattern. More... | |
INLINE uint16 | CCU7_getCmpSts (void) |
Get Compare State Bits for C70B, C71B, C72B, C74ST, C75ST, C76ST, CC70AST, CC71AST, CC72AST, and CC73ST. More... | |
INLINE void | CCU7_setHallSync (tCCU7_HallSync e_value) |
Set Hall Synchronization. More... | |
INLINE void | CCU7_enT12SingleShot (void) |
Enable T12 Single Shot Control. More... | |
INLINE void | CCU7_disT12SingleShot (void) |
Disable T12 Single Shot Control. More... | |
INLINE void | CCU7_enT13SingleShot (void) |
Enable T13 Single Shot Control. More... | |
INLINE void | CCU7_disT13SingleShot (void) |
Disable T13 Single Shot Control. More... | |
INLINE void | CCU7_enT14SingleShot (void) |
Enable T14 Single Shot Control. More... | |
INLINE void | CCU7_disT14SingleShot (void) |
Disable T14 Single Shot Control. More... | |
INLINE void | CCU7_enT15SingleShot (void) |
Enable T15 Single Shot Control. More... | |
INLINE void | CCU7_disT15SingleShot (void) |
Disable T15 Single Shot Control. More... | |
INLINE void | CCU7_enT16SingleShot (void) |
Enable T16 Single Shot Control. More... | |
INLINE void | CCU7_disT16SingleShot (void) |
Disable T16 Single Shot Control. More... | |
INLINE void | CCU7_stopT12 (void) |
Stop T12. More... | |
INLINE void | CCU7_startT12 (void) |
Start T12. More... | |
INLINE void | CCU7_stopT13 (void) |
Stop T13. More... | |
INLINE void | CCU7_startT13 (void) |
Start T13. More... | |
INLINE void | CCU7_stopT14 (void) |
Stop T14. More... | |
INLINE void | CCU7_startT14 (void) |
Start T14. More... | |
INLINE void | CCU7_stopT15 (void) |
Stop T15. More... | |
INLINE void | CCU7_startT15 (void) |
Start T15. More... | |
INLINE void | CCU7_stopT16 (void) |
Stop T16. More... | |
INLINE void | CCU7_startT16 (void) |
Start T16. More... | |
INLINE void | CCU7_setT12Modulation (uint8 u8_value) |
Set T12 Modulation. More... | |
INLINE void | CCU7_enMultiChMode (void) |
Enable Multi-Channel Mode. More... | |
INLINE void | CCU7_disMultiChMode (void) |
Disable Multi-Channel Mode. More... | |
INLINE void | CCU7_setT13Modulation (uint8 u8_value) |
Set T13 Modulation. More... | |
INLINE void | CCU7_enTrap (void) |
Enable Trap Control for all signals (CC70/1/2, COUT70/1/2) More... | |
INLINE void | CCU7_disTrap (void) |
Disable Trap Control. More... | |
INLINE uint8 | CCU7_getTrapConfig (void) |
Get Trap Control This function returns '1' , if Trap is enabled for all signals (CC70/1/2, COUT70/1/2), otherwise it returns '0'. More... | |
INLINE void | CCU7_enTrapPin (void) |
Enable Trap Pin. More... | |
INLINE void | CCU7_disTrapPin (void) |
Disable Trap Pin. More... | |
INLINE void | CCU7_setTrapModeAutomatic (void) |
Set trap mode to Automatic (Automatic Mode: Bit TRPF is cleared by HW if the trap input condition is no longer valid.) More... | |
INLINE void | CCU7_setTrapModeManual (void) |
Set trap mode to Manual (Manual Mode: Bit TRPF stays 1 after the trap input condition is no longer valid. It has to be cleared by SW by writing ISR.RTRPF = 1.) More... | |
INLINE void | CCU7_setMultiChModePWMPatternShadow (uint8 u8_value) |
Set Multi-Channel PWM Pattern Shadow. More... | |
INLINE void | CCU7_setMultiChModeShadowTransferReq (void) |
Set Shadow Transfer Request for Multi-Channel Mode. More... | |
INLINE void | CCU7_setHallPatternExpectedShadow (uint8 u8_value) |
Set Expected Hall Pattern Shadow. More... | |
INLINE void | CCU7_setHallPatternCurrentShadow (uint8 u8_value) |
Set Current Hall Pattern Shadow. More... | |
INLINE void | CCU7_setHallShadowTransferReq (void) |
Set Shadow Transfer Request for the Hall Pattern. More... | |
INLINE uint8 | CCU7_getMultiChModePWMPattern (void) |
Get Multi-Channel PWM Pattern. More... | |
INLINE void | CCU7_setMultiChModeShadowTransferTrig (tCCU7_MultiChMode_SWSEL e_value) |
Set Switching Selection. More... | |
INLINE void | CCU7_setMultiChModeShadowTransferSync (tCCU7_MultiChMode_SWSYN e_value) |
Set Switching Synchronization. More... | |
INLINE void | CCU7_clrLostBitEventSts (void) |
Clear Lost Bit Event Flag. More... | |
INLINE uint8 | CCU7_getLostBitEventSts (void) |
Get Lost Bit Event Flag. More... | |
INLINE void | CCU7_enLostBitEventInt (void) |
Enable Interrupt for Lost Bit Event - LBEEN. More... | |
INLINE void | CCU7_disLostBitEventInt (void) |
Disable Interrupt for Lost Bit Event - LBEEN. More... | |
INLINE uint8 | CCU7_getCC70ACmpMatchRiseIntSts (void) |
Get Capture, Compare-Match Rising Edge Flag for CC70A. More... | |
INLINE uint8 | CCU7_getCC70ACmpMatchFallIntSts (void) |
Get Capture, Compare-Match Falling Edge Flag for CC70A. More... | |
INLINE uint8 | CCU7_getCC71ACmpMatchRiseIntSts (void) |
Get Capture, Compare-Match Rising Edge Flag for CC71A. More... | |
INLINE uint8 | CCU7_getCC71ACmpMatchFallIntSts (void) |
Get Capture, Compare-Match Falling Edge Flag for CC71A. More... | |
INLINE uint8 | CCU7_getCC72ACmpMatchRiseIntSts (void) |
Get Capture, Compare-Match Rising Edge Flag for CC72A. More... | |
INLINE uint8 | CCU7_getCC72ACmpMatchFallIntSts (void) |
Get Capture, Compare-Match Falling Edge Flag for CC72A. More... | |
INLINE uint8 | CCU7_getT12OneMatchIntSts (void) |
Get T12 One-Match Flag. More... | |
INLINE uint8 | CCU7_getT12PerMatchIntSts (void) |
Get T12 Period-Match Flag. More... | |
INLINE uint8 | CCU7_getT13CmpMatchIntSts (void) |
Get T13 Compare-Match Flag. More... | |
INLINE uint8 | CCU7_getT13PerMatchIntSts (void) |
Get T13 Period-Match Flag. More... | |
INLINE uint8 | CCU7_getTrapCond (void) |
Get Trap Flag (Trap condition fulfilled) More... | |
INLINE uint8 | CCU7_getTrapIntSts (void) |
Get Trap State (Synchronized to the event selected by CCU7-TRPCTR.bit.TRPM0 and CCU7-TRPCTR.bit.TRPM1). The selected outputs are set to the passive state while Trap State (TRPS) = 1. More... | |
INLINE uint8 | CCU7_getHallEventCorrectIntSts (void) |
Get Correct Hall Event Flag. More... | |
INLINE uint8 | CCU7_getHallEventWrongIntSts (void) |
Get Wrong Hall Event Flag. More... | |
INLINE uint8 | CCU7_getHallIdleIntSts (void) |
Get Hall Idle State Flag. More... | |
INLINE uint8 | CCU7_getMultiChModeShadowTransferReqIntSts (void) |
Get Multi-Channel Mode Shadow Transfer Request Flag. More... | |
INLINE void | CCU7_clrCC70ACmpMatchRiseIntSts (void) |
Clear Capture, Compare-Match Rising Edge Flag for CC70A. More... | |
INLINE void | CCU7_clrCC70ACmpMatchFallIntSts (void) |
Clear Capture, Compare-Match Falling Edge Flag for CC70A. More... | |
INLINE void | CCU7_clrCC71ACmpMatchRiseIntSts (void) |
Clear Capture, Compare-Match Rising Edge Flag for CC71A. More... | |
INLINE void | CCU7_clrCC71ACmpMatchFallIntSts (void) |
Clear Capture, Compare-Match Falling Edge Flag for CC71A. More... | |
INLINE void | CCU7_clrCC72ACmpMatchRiseIntSts (void) |
Clear Capture, Compare-Match Rising Edge Flag for CC72A. More... | |
INLINE void | CCU7_clrCC72ACmpMatchFallIntSts (void) |
Clear Capture, Compare-Match Falling Edge Flag for CC72A. More... | |
INLINE void | CCU7_clrT12OneMatchIntSts (void) |
Clear T12 One-Match Flag. More... | |
INLINE void | CCU7_clrT12PerMatchIntSts (void) |
Clear T12 Period-Match Flag. More... | |
INLINE void | CCU7_clrT13CmpMatchIntSts (void) |
Clear T13 Compare-Match Flag. More... | |
INLINE void | CCU7_clrT13PerMatchIntSts (void) |
Clear T13 Period-Match Flag. More... | |
INLINE void | CCU7_clrTrapIntSts (void) |
Clear Trap Flag. More... | |
INLINE void | CCU7_clrHallEventCorrectIntSts (void) |
Clear Correct Hall Event Flag. More... | |
INLINE void | CCU7_clrHallEventWrongIntSts (void) |
Clear Wrong Hall Event Flag. More... | |
INLINE void | CCU7_clrHallIdleIntSts (void) |
Clear Hall Idle Flag. More... | |
INLINE void | CCU7_clrMultiChModeShadowTransferReqIntSts (void) |
Clear Multi-Channel Mode STR Flag. More... | |
INLINE void | CCU7_enCC70ACmpMatchRiseInt (void) |
Enable Capture, Compare-Match Rising Edge Interrupt for CC70A. More... | |
INLINE void | CCU7_disCC70ACmpMatchRiseInt (void) |
Disable Capture, Compare-Match Rising Edge Interrupt for CC70A. More... | |
INLINE void | CCU7_enCC70ACmpMatchFallInt (void) |
Enable Capture, Compare-Match Falling Edge Interrupt for CC70A. More... | |
INLINE void | CCU7_disCC70ACmpMatchFallInt (void) |
Disable Capture, Compare-Match Falling Edge Interrupt for CC70A. More... | |
INLINE void | CCU7_enCC71ACmpMatchRiseInt (void) |
Enable Capture, Compare-Match Rising Edge Interrupt for CC71A. More... | |
INLINE void | CCU7_disCC71ACmpMatchRiseInt (void) |
Disable Capture, Compare-Match Rising Edge Interrupt for CC71A. More... | |
INLINE void | CCU7_enCC71ACmpMatchFallInt (void) |
Enable Capture, Compare-Match Falling Edge Interrupt for CC71A. More... | |
INLINE void | CCU7_disCC71ACmpMatchFallInt (void) |
Disable Capture, Compare-Match Falling Edge Interrupt for CC71A. More... | |
INLINE void | CCU7_enCC72ACmpMatchRiseInt (void) |
Enable Capture, Compare-Match Rising Edge Interrupt for CC72A. More... | |
INLINE void | CCU7_disCC72ACmpMatchRiseInt (void) |
Disable Capture, Compare-Match Rising Edge Interrupt for CC72A. More... | |
INLINE void | CCU7_enCC72ACmpMatchFallInt (void) |
Enable Capture, Compare-Match Falling Edge Interrupt for CC72A. More... | |
INLINE void | CCU7_disCC72ACmpMatchFallInt (void) |
Disable Capture, Compare-Match Falling Edge Interrupt for CC72A. More... | |
INLINE void | CCU7_enT12OneMatchInt (void) |
Enable Interrupt for T12 One-Match. More... | |
INLINE void | CCU7_disT12OneMatchInt (void) |
Disable Interrupt for T12 One-Match. More... | |
INLINE void | CCU7_enT12PerMatchInt (void) |
Enable Interrupt for T12 Period-Match. More... | |
INLINE void | CCU7_disT12PerMatchInt (void) |
Disable Interrupt for T12 Period-Match. More... | |
INLINE void | CCU7_enT13CmpMatchInt (void) |
Enable Interrupt for T13 Compare-Match. More... | |
INLINE void | CCU7_disT13CmpMatchInt (void) |
Disable Interrupt for T13 Compare-Match. More... | |
INLINE void | CCU7_enT13PerMatchInt (void) |
Enable Interrupt for T13 Period-Match. More... | |
INLINE void | CCU7_disT13PerMatchInt (void) |
Disable Interrupt for T13 Period-Match. More... | |
INLINE void | CCU7_enTrapCondInt (void) |
Enable Interrupt for Trap Flag (Trap condition fulfilled) More... | |
INLINE void | CCU7_disTrapCondInt (void) |
Disable Interrupt for Trap Flag (Trap condition fulfilled) More... | |
INLINE void | CCU7_enHallEventCorrectInt (void) |
Enable Interrupt for Correct Hall Event. More... | |
INLINE void | CCU7_disHallEventCorrectInt (void) |
Disable Interrupt for Correct Hall Event. More... | |
INLINE void | CCU7_enHallEventWrongInt (void) |
Enable Interrupt for Wrong Hall Event. More... | |
INLINE void | CCU7_disHallEventWrongInt (void) |
Disable Interrupt for Wrong Hall Event. More... | |
INLINE void | CCU7_enHallIdleInt (void) |
Enable Hall Idle Interrupt. More... | |
INLINE void | CCU7_disHallIdleInt (void) |
Disable Hall Idle Interrupt. More... | |
INLINE void | CCU7_enMultiChModeShadowTransferReqInt (void) |
Enable Multi-Channel Mode Shadow Transfer Interrupt. More... | |
INLINE void | CCU7_disMultiChModeShadowTransferReqInt (void) |
Disable Multi-Channel Mode Shadow Transfer Interrupt. More... | |
INLINE uint8 | CCU7_getC70BCmpMatchRiseIntSts (void) |
Get Compare-Match Rising Edge Flag for C70B. More... | |
INLINE uint8 | CCU7_getC70BCmpMatchFallIntSts (void) |
Get Compare-Match Falling Edge Flag for C70B. More... | |
INLINE uint8 | CCU7_getC71BCmpMatchRiseIntSts (void) |
Get Compare-Match Rising Edge Flag for C71B. More... | |
INLINE uint8 | CCU7_getC71BCmpMatchFallIntSts (void) |
Get Compare-Match Falling Edge Flag for C71B. More... | |
INLINE uint8 | CCU7_getC72BCmpMatchRiseIntSts (void) |
Get Compare-Match Rising Edge Flag for C72B. More... | |
INLINE uint8 | CCU7_getC72BCmpMatchFallIntSts (void) |
Get Compare-Match Falling Edge Flag for C72B. More... | |
INLINE uint8 | CCU7_getT14CmpMatchIntSts (void) |
Get T14 Compare-Match Flag. More... | |
INLINE uint8 | CCU7_getT14PerMatchIntSts (void) |
Get T14 Period-Match Flag. More... | |
INLINE uint8 | CCU7_getT15CmpMatchIntSts (void) |
Get T15 Compare-Match Flag. More... | |
INLINE uint8 | CCU7_getT15PerMatchIntSts (void) |
Get T15 Period-Match Flag. More... | |
INLINE uint8 | CCU7_getT16CmpMatchIntSts (void) |
Get T16 Compare-Match Flag. More... | |
INLINE uint8 | CCU7_getT16PerMatchIntSts (void) |
Get T16 Period-Match Flag. More... | |
INLINE void | CCU7_clrC70BCmpMatchRiseIntSts (void) |
Clear Compare-Match Rising Edge Flag for C70B. More... | |
INLINE void | CCU7_clrC70BCmpMatchFallIntSts (void) |
Clear Compare-Match Falling Edge Flag for C70B. More... | |
INLINE void | CCU7_clrC71BCmpMatchRiseIntSts (void) |
Clear Compare-Match Rising Edge Flag for C71B. More... | |
INLINE void | CCU7_clrC71BCmpMatchFallIntSts (void) |
Clear Compare-Match Falling Edge Flag for C71B. More... | |
INLINE void | CCU7_clrC72BCmpMatchRiseIntSts (void) |
Clear Compare-Match Rising Edge Flag for C72B. More... | |
INLINE void | CCU7_clrC72BCmpMatchFallIntSts (void) |
Clear Compare-Match Falling Edge Flag for C72B. More... | |
INLINE void | CCU7_clrT14CmpMatchIntSts (void) |
Clear T14 Compare-Match Flag. More... | |
INLINE void | CCU7_clrT14PerMatchIntSts (void) |
Clear T14 Period-Match Flag. More... | |
INLINE void | CCU7_clrT15CmpMatchIntSts (void) |
Clear T15 Compare-Match Flag. More... | |
INLINE void | CCU7_clrT15PerMatchIntSts (void) |
Clear T15 Period-Match Flag. More... | |
INLINE void | CCU7_clrT16CmpMatchIntSts (void) |
Clear T16 Compare-Match Flag. More... | |
INLINE void | CCU7_clrT16PerMatchIntSts (void) |
Clear T16 Period-Match Flag. More... | |
INLINE void | CCU7_enC70BCmpMatchRiseInt (void) |
Enable Compare-Match Rising Edge Interrupt for C70B. More... | |
INLINE void | CCU7_disC70BCmpMatchRiseInt (void) |
Disable Compare-Match Rising Edge Interrupt for C70B. More... | |
INLINE void | CCU7_enC70BCmpMatchFallInt (void) |
Enable Compare-Match Falling Edge Interrupt for C70B. More... | |
INLINE void | CCU7_disC70BCmpMatchFallInt (void) |
Disable Compare-Match Falling Edge Interrupt for C70B. More... | |
INLINE void | CCU7_enC71BCmpMatchRiseInt (void) |
Enable Compare-Match Rising Edge Interrupt for C71B. More... | |
INLINE void | CCU7_disC71BCmpMatchRiseInt (void) |
Disable Compare-Match Rising Edge Interrupt for C71B. More... | |
INLINE void | CCU7_enC71BCmpMatchFallInt (void) |
Enable Compare-Match Falling Edge Interrupt for C71B. More... | |
INLINE void | CCU7_disC71BCmpMatchFallInt (void) |
Disable Compare-Match Falling Edge Interrupt for C71B. More... | |
INLINE void | CCU7_enC72BCmpMatchRiseInt (void) |
Enable Compare-Match Rising Edge Interrupt for C72B. More... | |
INLINE void | CCU7_disC72BCmpMatchRiseInt (void) |
Disable Compare-Match Rising Edge Interrupt for C72B. More... | |
INLINE void | CCU7_enC72BCmpMatchFallInt (void) |
Enable Compare-Match Falling Edge Interrupt for C72B. More... | |
INLINE void | CCU7_disC72BCmpMatchFallInt (void) |
Disable Compare-Match Falling Edge Interrupt for C72B. More... | |
INLINE void | CCU7_enT14CmpMatchInt (void) |
Enable Interrupt for T14 Compare-Match. More... | |
INLINE void | CCU7_disT14CmpMatchInt (void) |
Disable Interrupt for T14 Compare-Match. More... | |
INLINE void | CCU7_enT14PerMatchInt (void) |
Enable Interrupt for T14 Period-Match. More... | |
INLINE void | CCU7_disT14PerMatchInt (void) |
Disable Interrupt for T14 Period-Match. More... | |
INLINE void | CCU7_enT15CmpMatchInt (void) |
Enable Interrupt for T15 Compare-Match. More... | |
INLINE void | CCU7_disT15CmpMatchInt (void) |
Disable Interrupt for T15 Compare-Match. More... | |
INLINE void | CCU7_enT15PerMatchInt (void) |
Enable Interrupt for T15 Period-Match. More... | |
INLINE void | CCU7_disT15PerMatchInt (void) |
Disable Interrupt for T15 Period-Match. More... | |
INLINE void | CCU7_enT16CmpMatchInt (void) |
Enable Interrupt for T16 Compare-Match. More... | |
INLINE void | CCU7_disT16CmpMatchInt (void) |
Disable Interrupt for T16 Compare-Match. More... | |
INLINE void | CCU7_enT16PerMatchInt (void) |
Enable Interrupt for T16 Period-Match. More... | |
INLINE void | CCU7_disT16PerMatchInt (void) |
Disable Interrupt for T16 Period-Match. More... | |
INLINE void | CCU7_setT12ShadowTransferReq (void) |
Set T12 Shadow Transfer Request. More... | |
INLINE void | CCU7_setT13ShadowTransferReq (void) |
Set T13 Shadow Transfer Request. More... | |
INLINE void | CCU7_setT14ShadowTransferReq (void) |
Set T14 Shadow Transfer Request. More... | |
INLINE void | CCU7_setT15ShadowTransferReq (void) |
Set T15 Shadow Transfer Request. More... | |
INLINE void | CCU7_setT16ShadowTransferReq (void) |
Set T16 Shadow Transfer Request. More... | |
void | CCU7_setCC70AIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for CC70A Interrupts. More... | |
void | CCU7_setCC71AIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for CC71A Interrupts. More... | |
void | CCU7_setCC72AIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for CC72A Interrupts. More... | |
void | CCU7_setCHEIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for the CHE Interrupt. More... | |
void | CCU7_setErrorIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for Error Interrupts. More... | |
void | CCU7_setT12IntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for T12 Interrupts. More... | |
void | CCU7_setT13IntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for T13 Interrupts. More... | |
void | CCU7_setC70BIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for C70B Interrupts. More... | |
void | CCU7_setC71BIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for C71B Interrupts. More... | |
void | CCU7_setC72BIntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for C72B Interrupts. More... | |
void | CCU7_setT14IntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for T14 Interrupts. More... | |
void | CCU7_setT15IntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for T15 Interrupts. More... | |
void | CCU7_setT16IntNodePtr (void) __attribute__((deprecated("Do not change this at runtime |
Set Interrupt Node Pointer for T16 Interrupts. More... | |
Variables | |
void use the ConfigWizard to configure this | feature |
#define CCU7_MODCTR_T12MODEN_Msk (0x3FU) |
#define CCU7_MODCTR_T12MODEN_Pos (0x0U) |
#define CCU7_MODCTR_T13MODEN_Msk (0x3F00U) |
#define CCU7_MODCTR_T13MODEN_Pos (0x8U) |
typedef enum CCU7_HallSync tCCU7_HallSync |
typedef enum CCU7_MultiChMode_SWSEL tCCU7_MultiChMode_SWSEL |
typedef enum CCU7_MultiChMode_SWSYN tCCU7_MultiChMode_SWSYN |
enum CCU7_HallSync |
This enum lists the CCU7 Hall Synch Configuration. Used in function CCU7_setHallSync.
This enum lists the CCU7 Multi Channel Mode Switching Selection. Used in function CCU7_setMultiChModeShadowTransferTrig.
This enum lists the CCU7 Multi Channel Mode Switching Synchronization. Used in function CCU7_setMultiChModeShadowTransferSync.
INLINE void CCU7_clrC70BCmpMatchFallIntSts | ( | void | ) |
Clear Compare-Match Falling Edge Flag for C70B.
INLINE void CCU7_clrC70BCmpMatchRiseIntSts | ( | void | ) |
Clear Compare-Match Rising Edge Flag for C70B.
INLINE void CCU7_clrC71BCmpMatchFallIntSts | ( | void | ) |
Clear Compare-Match Falling Edge Flag for C71B.
INLINE void CCU7_clrC71BCmpMatchRiseIntSts | ( | void | ) |
Clear Compare-Match Rising Edge Flag for C71B.
INLINE void CCU7_clrC72BCmpMatchFallIntSts | ( | void | ) |
Clear Compare-Match Falling Edge Flag for C72B.
INLINE void CCU7_clrC72BCmpMatchRiseIntSts | ( | void | ) |
Clear Compare-Match Rising Edge Flag for C72B.
INLINE void CCU7_clrCC70ACmpMatchFallIntSts | ( | void | ) |
Clear Capture, Compare-Match Falling Edge Flag for CC70A.
INLINE void CCU7_clrCC70ACmpMatchRiseIntSts | ( | void | ) |
Clear Capture, Compare-Match Rising Edge Flag for CC70A.
INLINE void CCU7_clrCC71ACmpMatchFallIntSts | ( | void | ) |
Clear Capture, Compare-Match Falling Edge Flag for CC71A.
INLINE void CCU7_clrCC71ACmpMatchRiseIntSts | ( | void | ) |
Clear Capture, Compare-Match Rising Edge Flag for CC71A.
INLINE void CCU7_clrCC72ACmpMatchFallIntSts | ( | void | ) |
Clear Capture, Compare-Match Falling Edge Flag for CC72A.
INLINE void CCU7_clrCC72ACmpMatchRiseIntSts | ( | void | ) |
Clear Capture, Compare-Match Rising Edge Flag for CC72A.
INLINE void CCU7_clrHallEventCorrectIntSts | ( | void | ) |
Clear Correct Hall Event Flag.
INLINE void CCU7_clrHallEventWrongIntSts | ( | void | ) |
Clear Wrong Hall Event Flag.
INLINE void CCU7_clrHallIdleIntSts | ( | void | ) |
Clear Hall Idle Flag.
INLINE void CCU7_clrLostBitEventSts | ( | void | ) |
Clear Lost Bit Event Flag.
INLINE void CCU7_clrMultiChModeShadowTransferReqIntSts | ( | void | ) |
Clear Multi-Channel Mode STR Flag.
INLINE void CCU7_clrT12OneMatchIntSts | ( | void | ) |
Clear T12 One-Match Flag.
INLINE void CCU7_clrT12PerMatchIntSts | ( | void | ) |
Clear T12 Period-Match Flag.
INLINE void CCU7_clrT13CmpMatchIntSts | ( | void | ) |
Clear T13 Compare-Match Flag.
INLINE void CCU7_clrT13PerMatchIntSts | ( | void | ) |
Clear T13 Period-Match Flag.
INLINE void CCU7_clrT14CmpMatchIntSts | ( | void | ) |
Clear T14 Compare-Match Flag.
INLINE void CCU7_clrT14PerMatchIntSts | ( | void | ) |
Clear T14 Period-Match Flag.
INLINE void CCU7_clrT15CmpMatchIntSts | ( | void | ) |
Clear T15 Compare-Match Flag.
INLINE void CCU7_clrT15PerMatchIntSts | ( | void | ) |
Clear T15 Period-Match Flag.
INLINE void CCU7_clrT16CmpMatchIntSts | ( | void | ) |
Clear T16 Compare-Match Flag.
INLINE void CCU7_clrT16PerMatchIntSts | ( | void | ) |
Clear T16 Period-Match Flag.
INLINE void CCU7_clrTrapIntSts | ( | void | ) |
Clear Trap Flag.
INLINE void CCU7_disC70BCmpMatchFallInt | ( | void | ) |
Disable Compare-Match Falling Edge Interrupt for C70B.
INLINE void CCU7_disC70BCmpMatchRiseInt | ( | void | ) |
Disable Compare-Match Rising Edge Interrupt for C70B.
INLINE void CCU7_disC71BCmpMatchFallInt | ( | void | ) |
Disable Compare-Match Falling Edge Interrupt for C71B.
INLINE void CCU7_disC71BCmpMatchRiseInt | ( | void | ) |
Disable Compare-Match Rising Edge Interrupt for C71B.
INLINE void CCU7_disC72BCmpMatchFallInt | ( | void | ) |
Disable Compare-Match Falling Edge Interrupt for C72B.
INLINE void CCU7_disC72BCmpMatchRiseInt | ( | void | ) |
Disable Compare-Match Rising Edge Interrupt for C72B.
INLINE void CCU7_disCC70ACmpMatchFallInt | ( | void | ) |
Disable Capture, Compare-Match Falling Edge Interrupt for CC70A.
INLINE void CCU7_disCC70ACmpMatchRiseInt | ( | void | ) |
Disable Capture, Compare-Match Rising Edge Interrupt for CC70A.
INLINE void CCU7_disCC71ACmpMatchFallInt | ( | void | ) |
Disable Capture, Compare-Match Falling Edge Interrupt for CC71A.
INLINE void CCU7_disCC71ACmpMatchRiseInt | ( | void | ) |
Disable Capture, Compare-Match Rising Edge Interrupt for CC71A.
INLINE void CCU7_disCC72ACmpMatchFallInt | ( | void | ) |
Disable Capture, Compare-Match Falling Edge Interrupt for CC72A.
INLINE void CCU7_disCC72ACmpMatchRiseInt | ( | void | ) |
Disable Capture, Compare-Match Rising Edge Interrupt for CC72A.
INLINE void CCU7_disHallEventCorrectInt | ( | void | ) |
Disable Interrupt for Correct Hall Event.
INLINE void CCU7_disHallEventWrongInt | ( | void | ) |
Disable Interrupt for Wrong Hall Event.
INLINE void CCU7_disHallIdleInt | ( | void | ) |
Disable Hall Idle Interrupt.
INLINE void CCU7_disLostBitEventInt | ( | void | ) |
Disable Interrupt for Lost Bit Event - LBEEN.
sint8 CCU7_disModule | ( | void | ) |
Disable the CCU7 module by performing the following steps: stop T12 stop T13, T14, T15, T16 programming the passive states to LOW switching all CCU7 outputs to passive state.
INLINE void CCU7_disMultiChMode | ( | void | ) |
Disable Multi-Channel Mode.
INLINE void CCU7_disMultiChModeShadowTransferReqInt | ( | void | ) |
Disable Multi-Channel Mode Shadow Transfer Interrupt.
INLINE void CCU7_disT12OneMatchInt | ( | void | ) |
Disable Interrupt for T12 One-Match.
INLINE void CCU7_disT12PerMatchInt | ( | void | ) |
Disable Interrupt for T12 Period-Match.
INLINE void CCU7_disT12SingleShot | ( | void | ) |
Disable T12 Single Shot Control.
INLINE void CCU7_disT13CmpMatchInt | ( | void | ) |
Disable Interrupt for T13 Compare-Match.
INLINE void CCU7_disT13PerMatchInt | ( | void | ) |
Disable Interrupt for T13 Period-Match.
INLINE void CCU7_disT13SingleShot | ( | void | ) |
Disable T13 Single Shot Control.
INLINE void CCU7_disT14CmpMatchInt | ( | void | ) |
Disable Interrupt for T14 Compare-Match.
INLINE void CCU7_disT14PerMatchInt | ( | void | ) |
Disable Interrupt for T14 Period-Match.
INLINE void CCU7_disT14SingleShot | ( | void | ) |
Disable T14 Single Shot Control.
INLINE void CCU7_disT15CmpMatchInt | ( | void | ) |
Disable Interrupt for T15 Compare-Match.
INLINE void CCU7_disT15PerMatchInt | ( | void | ) |
Disable Interrupt for T15 Period-Match.
INLINE void CCU7_disT15SingleShot | ( | void | ) |
Disable T15 Single Shot Control.
INLINE void CCU7_disT16CmpMatchInt | ( | void | ) |
Disable Interrupt for T16 Compare-Match.
INLINE void CCU7_disT16PerMatchInt | ( | void | ) |
Disable Interrupt for T16 Period-Match.
INLINE void CCU7_disT16SingleShot | ( | void | ) |
Disable T16 Single Shot Control.
INLINE void CCU7_disTrap | ( | void | ) |
Disable Trap Control.
INLINE void CCU7_disTrapCondInt | ( | void | ) |
Disable Interrupt for Trap Flag (Trap condition fulfilled)
INLINE void CCU7_disTrapPin | ( | void | ) |
Disable Trap Pin.
INLINE void CCU7_enC70BCmpMatchFallInt | ( | void | ) |
Enable Compare-Match Falling Edge Interrupt for C70B.
INLINE void CCU7_enC70BCmpMatchRiseInt | ( | void | ) |
Enable Compare-Match Rising Edge Interrupt for C70B.
INLINE void CCU7_enC71BCmpMatchFallInt | ( | void | ) |
Enable Compare-Match Falling Edge Interrupt for C71B.
INLINE void CCU7_enC71BCmpMatchRiseInt | ( | void | ) |
Enable Compare-Match Rising Edge Interrupt for C71B.
INLINE void CCU7_enC72BCmpMatchFallInt | ( | void | ) |
Enable Compare-Match Falling Edge Interrupt for C72B.
INLINE void CCU7_enC72BCmpMatchRiseInt | ( | void | ) |
Enable Compare-Match Rising Edge Interrupt for C72B.
INLINE void CCU7_enCC70ACmpMatchFallInt | ( | void | ) |
Enable Capture, Compare-Match Falling Edge Interrupt for CC70A.
INLINE void CCU7_enCC70ACmpMatchRiseInt | ( | void | ) |
Enable Capture, Compare-Match Rising Edge Interrupt for CC70A.
INLINE void CCU7_enCC71ACmpMatchFallInt | ( | void | ) |
Enable Capture, Compare-Match Falling Edge Interrupt for CC71A.
INLINE void CCU7_enCC71ACmpMatchRiseInt | ( | void | ) |
Enable Capture, Compare-Match Rising Edge Interrupt for CC71A.
INLINE void CCU7_enCC72ACmpMatchFallInt | ( | void | ) |
Enable Capture, Compare-Match Falling Edge Interrupt for CC72A.
INLINE void CCU7_enCC72ACmpMatchRiseInt | ( | void | ) |
Enable Capture, Compare-Match Rising Edge Interrupt for CC72A.
INLINE void CCU7_enHallEventCorrectInt | ( | void | ) |
Enable Interrupt for Correct Hall Event.
INLINE void CCU7_enHallEventWrongInt | ( | void | ) |
Enable Interrupt for Wrong Hall Event.
INLINE void CCU7_enHallIdleInt | ( | void | ) |
Enable Hall Idle Interrupt.
INLINE void CCU7_enLostBitEventInt | ( | void | ) |
Enable Interrupt for Lost Bit Event - LBEEN.
sint8 CCU7_enModule | ( | void | ) |
Enable the CCU7 module by calling the CCU7_init() function.
INLINE void CCU7_enMultiChMode | ( | void | ) |
Enable Multi-Channel Mode.
INLINE void CCU7_enMultiChModeShadowTransferReqInt | ( | void | ) |
Enable Multi-Channel Mode Shadow Transfer Interrupt.
INLINE void CCU7_enT12OneMatchInt | ( | void | ) |
Enable Interrupt for T12 One-Match.
INLINE void CCU7_enT12PerMatchInt | ( | void | ) |
Enable Interrupt for T12 Period-Match.
INLINE void CCU7_enT12SingleShot | ( | void | ) |
Enable T12 Single Shot Control.
INLINE void CCU7_enT13CmpMatchInt | ( | void | ) |
Enable Interrupt for T13 Compare-Match.
INLINE void CCU7_enT13PerMatchInt | ( | void | ) |
Enable Interrupt for T13 Period-Match.
INLINE void CCU7_enT13SingleShot | ( | void | ) |
Enable T13 Single Shot Control.
INLINE void CCU7_enT14CmpMatchInt | ( | void | ) |
Enable Interrupt for T14 Compare-Match.
INLINE void CCU7_enT14PerMatchInt | ( | void | ) |
Enable Interrupt for T14 Period-Match.
INLINE void CCU7_enT14SingleShot | ( | void | ) |
Enable T14 Single Shot Control.
INLINE void CCU7_enT15CmpMatchInt | ( | void | ) |
Enable Interrupt for T15 Compare-Match.
INLINE void CCU7_enT15PerMatchInt | ( | void | ) |
Enable Interrupt for T15 Period-Match.
INLINE void CCU7_enT15SingleShot | ( | void | ) |
Enable T15 Single Shot Control.
INLINE void CCU7_enT16CmpMatchInt | ( | void | ) |
Enable Interrupt for T16 Compare-Match.
INLINE void CCU7_enT16PerMatchInt | ( | void | ) |
Enable Interrupt for T16 Period-Match.
INLINE void CCU7_enT16SingleShot | ( | void | ) |
Enable T16 Single Shot Control.
INLINE void CCU7_enTrap | ( | void | ) |
Enable Trap Control for all signals (CC70/1/2, COUT70/1/2)
INLINE void CCU7_enTrapCondInt | ( | void | ) |
Enable Interrupt for Trap Flag (Trap condition fulfilled)
INLINE void CCU7_enTrapPin | ( | void | ) |
Enable Trap Pin.
Get Compare-Match Falling Edge Flag for C70B.
Get Compare-Match Rising Edge Flag for C70B.
Get Compare-Match Falling Edge Flag for C71B.
Get Compare-Match Rising Edge Flag for C71B.
Get Compare-Match Falling Edge Flag for C72B.
Get Compare-Match Rising Edge Flag for C72B.
Get Capture, Compare-Match Falling Edge Flag for CC70A.
Get Capture, Compare-Match Rising Edge Flag for CC70A.
Get CC70A Capture/Compare Value.
Get Capture, Compare-Match Falling Edge Flag for CC71A.
Get Capture, Compare-Match Rising Edge Flag for CC71A.
Get CC71A Capture/Compare Value.
Get Capture, Compare-Match Falling Edge Flag for CC72A.
Get Capture, Compare-Match Rising Edge Flag for CC72A.
Get CC72A Capture/Compare Value.
Get Dead-Time for Channel 0 fall in ticks.
Get Dead-Time for Channel 0 rise in ticks.
Get Dead-Time for Channel 1 fall in ticks.
Get Dead-Time for Channel 1 rise in ticks.
Get Dead-Time for Channel 2 fall in ticks.
Get Dead-Time for Channel 2 rise in ticks.
Get Compare State Bits for C70B, C71B, C72B, C74ST, C75ST, C76ST, CC70AST, CC71AST, CC72AST, and CC73ST.
INLINE sint8 CCU7_getDeadTime_ns | ( | uint8 | u8_channel, |
uint32 * | u32p_DeadTimeRise_ns, | ||
uint32 * | u32p_DeadTimeFall_ns | ||
) |
This function reads the dead time counter value for the given channel, with u8_channel from 0..2, into the provided pointers u32p_DeadTimeRise_ns and u32p_DeadTimeFall_ns. The input parameters u32p_DeadTimeRise_ns and u32p_DeadTimeFall_ns are checked to point to a valid RAM address. The dead time in nano seconds related to the constant clock CCU7_DT_CLK_MHz. If at least one of the provided parameters is out of range a failure code "parameter out of range" is returned, the pointers u32p_DeadTimeRise_ns and u32p_DeadTimeFall_ns are not updated in this case.
u8_channel | channel number (0...2) |
u32p_DeadTimeRise_ns | Dead time Rise value in nanoseconds |
u32p_DeadTimeFall_ns | Dead time Fall value in nanoseconds |
Get Correct Hall Event Flag.
Get Wrong Hall Event Flag.
Get Hall Idle State Flag.
Get Sampled Hall Pattern.
Get Lost Bit Event Flag.
Get Multi-Channel PWM Pattern.
Get Multi-Channel Mode Shadow Transfer Request Flag.
Get T12 Period in Hz This function returns the T12 period value related to the constant CCU7_T12_CLK_HZ in Hz, taking the edge-/center-aligned mode into consideration.
Get T12 One-Match Flag.
Get T12 Period-Match Flag.
Get T13 Compare-Match Flag.
Get T13 Period-Match Flag.
Get T14 Compare-Match Flag.
Get T14 Period-Match Flag.
Get T15 Compare-Match Flag.
Get T15 Period-Match Flag.
Get T16 Compare-Match Flag.
Get T16 Period-Match Flag.
Get Trap Flag (Trap condition fulfilled)
Get Trap Control This function returns '1' , if Trap is enabled for all signals (CC70/1/2, COUT70/1/2), otherwise it returns '0'.
Get Trap State (Synchronized to the event selected by CCU7-TRPCTR.bit.TRPM0 and CCU7-TRPCTR.bit.TRPM1). The selected outputs are set to the passive state while Trap State (TRPS) = 1.
sint8 CCU7_init | ( | void | ) |
Initialize the CCU7 module.
void CCU7_setC70BIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for C70B Interrupts.
Set Shadow Register for C70B Compare Value.
u16_value | Shadow Register for C70B Compare Value |
void CCU7_setC71BIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for C71B Interrupts.
Set Shadow Register for C71B Compare Value.
u16_value | Shadow Register for C71B Compare Value |
void CCU7_setC72BIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for C72B Interrupts.
Set Shadow Register for C72B Compare Value.
u16_value | Shadow Register for C72B Compare Value |
Set Shadow Register for C73 Compare Value.
u16_value | Shadow Register for C73 Compare Value |
Set Shadow Register for C74 Compare Value.
u16_value | Shadow Register for C74 Compare Value |
Set Shadow Register for C75 Compare Value.
u16_value | Shadow Register for C75 Compare Value |
Set Shadow Register for C76 Compare Value.
u16_value | Shadow Register for C76 Compare Value |
void CCU7_setCC70AIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for CC70A Interrupts.
Set Shadow Register for CC70A Capture/Compare Value.
u16_value | Shadow Register for CC70A Capture/Compare Value |
void CCU7_setCC71AIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for CC71A Interrupts.
Set Shadow Register for CC71A Capture/Compare Value.
u16_value | Shadow Register for CC71A Capture/Compare Value |
void CCU7_setCC72AIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for CC72A Interrupts.
Set Shadow Register for CC72A Capture/Compare Value.
u16_value | Shadow Register for CC72A Capture/Compare Value |
Set Dead-Time for Channel 0 fall in ticks.
u8_value | Dead-Time for Channel 0 fall in ticks |
Set Dead-Time for Channel 0 rise in ticks.
u8_value | Dead-Time for Channel 0 rise in ticks |
Set Dead-Time for Channel 1 fall in ticks.
u8_value | Dead-Time for Channel 1 fall in ticks |
Set Dead-Time for Channel 1 rise in ticks.
u8_value | Dead-Time for Channel 1 rise in ticks |
Set Dead-Time for Channel 2 fall in ticks.
u8_value | Dead-Time for Channel 2 fall in ticks |
Set Dead-Time for Channel 2 rise in ticks.
u8_value | Dead-Time for Channel 2 rise in ticks |
void CCU7_setCHEIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for the CHE Interrupt.
INLINE sint8 CCU7_setDeadTime_ns | ( | uint8 | u8_channel, |
uint32 | u32_deadTimeRise_ns, | ||
uint32 | u32_deadTimeFall_ns | ||
) |
Set the dead time values (rise/fall) for one Channel. This function sets the deadtime counter to a value given by the parameter deadTimeRise/Fall_ns with a relation to the constant clock value given in CCU7_DT_CLK_MHz. The deadtime is entered per channel, with u8_channel from 0..2, and as rising and falling value. If the requested deadtime, for either rising or falling, cannot be represented by the 8bit (overflow) deadtime counter, the function returns "parameter out of range" failure code, the previous dead time counter values for this channel remain unchanged. If the given input u8_channel is out of range a failure code "parameter out of range" is returned, no changes are made. If all parameters are valid the function returns "success". If the input deadtime is not given in multiple of the CCU7_DT_CLK_MHz, the deadtime will be rounded up to the next possible value, in this case the function still returns "success".
u8_channel | channel number (0...2) |
u32_deadTimeRise_ns | Dead time Rise value in nanoseconds |
u32_deadTimeFall_ns | Dead time Fall value in nanoseconds |
void CCU7_setErrorIntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for Error Interrupts.
Set Current Hall Pattern Shadow.
u8_value | Current Hall Pattern Shadow |
Set Expected Hall Pattern Shadow.
u8_value | Expected Hall Pattern Shadow |
INLINE void CCU7_setHallShadowTransferReq | ( | void | ) |
Set Shadow Transfer Request for the Hall Pattern.
INLINE void CCU7_setHallSync | ( | tCCU7_HallSync | e_value | ) |
Set Hall Synchronization.
e_value | Hall Synchronization |
Set Multi-Channel PWM Pattern Shadow.
u8_value | Multi-Channel PWM Pattern Shadow |
INLINE void CCU7_setMultiChModeShadowTransferReq | ( | void | ) |
Set Shadow Transfer Request for Multi-Channel Mode.
INLINE void CCU7_setMultiChModeShadowTransferSync | ( | tCCU7_MultiChMode_SWSYN | e_value | ) |
Set Switching Synchronization.
e_value | Switching Synchronization |
INLINE void CCU7_setMultiChModeShadowTransferTrig | ( | tCCU7_MultiChMode_SWSEL | e_value | ) |
Set Switching Selection.
e_value | Switching Selection |
Set T12 Period in Hz This function sets the T12 period value based on the input parameter u32_freq_hz related to the constant timer 12 clock CCU7_T12_CLK_HZ, taking the edge-/center-aligned mode into consideration. If the requested frequency by the parameter u32_freq_hz can be represented by the current clocking of the CCU7 module and the T12 width then this function returns '0' (success), else failure code (parameter out of range).
u32_freq_hz | Frequency in Hz |
void CCU7_setT12IntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for T12 Interrupts.
Set T12 Modulation.
u8_value | T12 Modulation |
Set T12 Period Value.
u16_value | T12 Period Value |
INLINE void CCU7_setT12ShadowTransferReq | ( | void | ) |
Set T12 Shadow Transfer Request.
void CCU7_setT13IntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for T13 Interrupts.
Set T13 Modulation.
u8_value | T13 Modulation |
Set T13 Period Value.
u16_value | T13 Period Value |
INLINE void CCU7_setT13ShadowTransferReq | ( | void | ) |
Set T13 Shadow Transfer Request.
void CCU7_setT14IntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for T14 Interrupts.
Set T14 Period Value.
u16_value | T14 Period Value |
INLINE void CCU7_setT14ShadowTransferReq | ( | void | ) |
Set T14 Shadow Transfer Request.
void CCU7_setT15IntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for T15 Interrupts.
Set T15 Period Value.
u16_value | T15 Period Value |
INLINE void CCU7_setT15ShadowTransferReq | ( | void | ) |
Set T15 Shadow Transfer Request.
void CCU7_setT16IntNodePtr | ( | void | ) |
Set Interrupt Node Pointer for T16 Interrupts.
Set T16 Period Value.
u16_value | T16 Period Value |
INLINE void CCU7_setT16ShadowTransferReq | ( | void | ) |
Set T16 Shadow Transfer Request.
INLINE void CCU7_setTrapModeAutomatic | ( | void | ) |
Set trap mode to Automatic (Automatic Mode: Bit TRPF is cleared by HW if the trap input condition is no longer valid.)
INLINE void CCU7_setTrapModeManual | ( | void | ) |
Set trap mode to Manual (Manual Mode: Bit TRPF stays 1 after the trap input condition is no longer valid. It has to be cleared by SW by writing ISR.RTRPF = 1.)
INLINE void CCU7_startT12 | ( | void | ) |
Start T12.
INLINE void CCU7_startT13 | ( | void | ) |
Start T13.
INLINE void CCU7_startT14 | ( | void | ) |
Start T14.
INLINE void CCU7_startT15 | ( | void | ) |
Start T15.
INLINE void CCU7_startT16 | ( | void | ) |
Start T16.
INLINE void CCU7_stopT12 | ( | void | ) |
Stop T12.
INLINE void CCU7_stopT13 | ( | void | ) |
Stop T13.
INLINE void CCU7_stopT14 | ( | void | ) |
Stop T14.
INLINE void CCU7_stopT15 | ( | void | ) |
Stop T15.
INLINE void CCU7_stopT16 | ( | void | ) |
Stop T16.
void use the ConfigWizard to configure this feature |