Data Structures | |
struct | XMC_CCU8_SLICE_CAPTURE_CONFIG_t |
struct | XMC_CCU8_SLICE_COMPARE_CONFIG_t |
struct | XMC_CCU8_SLICE_DEAD_TIME_CONFIG_t |
struct | XMC_CCU8_SLICE_EVENT_CONFIG_t |
Typedefs | |
typedef CCU8_GLOBAL_TypeDef | XMC_CCU8_MODULE_t |
typedef uint8_t | XMC_CCU8_SLICE_INPUT_t |
typedef CCU8_CC8_TypeDef | XMC_CCU8_SLICE_t |
The CCU8 peripheral functions play a major role in applications that need complex Pulse Width Modulation (PWM) signal generation, with complementary high side and low side switches, multi phase control. These functions in conjunction with a very flexible and programmable signal conditioning scheme, make the CCU8 the must have peripheral for state of the art motor control, multi phase and multi level power electronics systems.
Each CCU8 module is comprised of four identical 16 bit Capture/Compare Timer slices, CC8y (where y = [0..4]). Each timer slice can work in compare mode or in capture mode.
APIs provided in this file cover the following functional blocks of CCU8: – Timer configuration, Capture configuration, Function/Event configuration, Interrupt configuration
It can be used to:
It can be used to:
It can be used to:
typedef CCU8_GLOBAL_TypeDef XMC_CCU8_MODULE_t |
Typedef for CCU8 Global data structure
typedef uint8_t XMC_CCU8_SLICE_INPUT_t |
External Event Input list. This list depicts the possible input connections to the CCU8 slice. Interconnects are specific to each device.
typedef CCU8_CC8_TypeDef XMC_CCU8_SLICE_t |
Typedef for CCU8 Slice data structure
enum XMC_CCU8_CLOCK_t |
CCU8 set the shadow transfer type for multichannel mode
enum XMC_CCU8_OUT_PATH_t |
Output selector for CCU8x.OUT0-3
Selects which signal is controlling the delay between the change at the CCU8 outputs and effective change at the driver parity output
Selects which signal contains the driver parity information
Selects if we have an odd or even parity
Slice shadow transfer options.
Actions that can be performed upon detection of an external Timer STOP event
External Event trigger criteria - Edge sensitivity
Low pass filter Configuration. The External Event input should be stable for a selected number of clock cycles.
External Event trigger criteria - Level sensitivity
External Function list
Available Interrupt Event Ids
Multi Channel Shadow transfer request configuration options
Compare channel for which modulation has to be applied
Available Interrupt Event Ids, which is added to support multi event APIs
Timer clock Divider
Slice shadow transfer mode options.
Service Request Lines for CCU8. Event are mapped to these SR lines and these are used to generate the interrupt.
The compare channel output which is routed to the slice output signal(STy).
Timer clear on capture
Output sources for OUTy0 signal
Output sources for OUTy1 signal
Output sources for OUTy2 signal
Output sources for OUTy3 signal
enum XMC_CCU8_STATUS_t |
Selects suspend mode
void XMC_CCU8_DisableClock | ( | XMC_CCU8_MODULE_t *const | module, |
const uint8_t | slice_number | ||
) |
module | Constant pointer to CCU8 module |
slice_number | Slice for which the clock should be disabled. Range: [0x0 to 0x3] |
void XMC_CCU8_DisableModule | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_EnableClock | ( | XMC_CCU8_MODULE_t *const | module, |
const uint8_t | slice_number | ||
) |
module | Constant pointer to CCU8 module |
slice_number | Slice for which the clock should be Enabled. Range: [0x0 to 0x3] |
void XMC_CCU8_EnableModule | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_EnableMultipleClocks | ( | XMC_CCU8_MODULE_t *const | module, |
const uint8_t | clock_mask | ||
) |
module | Constant pointer to CCU8 module |
clock_mask | Slices whose clocks are to be enabled simultaneously. Bit location 0/1/2/3 represents slice-0/1/2/3 respectively. Range: [0x1 to 0xF] |
void XMC_CCU8_EnableShadowTransfer | ( | XMC_CCU8_MODULE_t *const | module, |
const uint32_t | shadow_transfer_msk | ||
) |
module | Constant pointer to CCU8 module |
shadow_transfer_msk | Shadow transfer request mask for various transfers. Use XMC_CCU8_SHADOW_TRANSFER_t enum items to create a mask of choice, using a bit wise OR operation. |
XMC_CCU8_SLICE_STATUS_BIT_t XMC_CCU8_GetSliceStatusBit | ( | XMC_CCU8_MODULE_t *const | module, |
uint8_t | slice_number, | ||
XMC_CCU8_SLICE_COMPARE_CHANNEL_t | channel | ||
) |
module | Constant pointer to CCU8 module |
slice_number | Slice for which the clock should be disabled. Range: [0x0 to 0x3] |
channel | Select which compare channel |
void XMC_CCU8_Init | ( | XMC_CCU8_MODULE_t *const | module, |
const XMC_CCU8_SLICE_MCMS_ACTION_t | mcs_action | ||
) |
module | Constant pointer to CCU8 module |
mcs_action | multi-channel shadow transfer request configuration |
bool XMC_CCU8_IsParityCheckerRunning | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
bool XMC_CCU8_IsPrescalerRunning | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_SetModuleClock | ( | XMC_CCU8_MODULE_t *const | module, |
const XMC_CCU8_CLOCK_t | clock | ||
) |
module | Constant pointer to CCU8 module |
clock | Choice of input clock to the module |
void XMC_CCU8_SetMultiChannelShadowTransferMode | ( | XMC_CCU8_MODULE_t *const | module, |
const uint32_t | slice_mode_msk | ||
) |
module | Constant pointer to CCU8 module |
slice_mode_msk | Slices for which the configuration has to be applied. Use XMC_CCU8_MULTI_CHANNEL_SHADOW_TRANSFER_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_SetSuspendMode | ( | XMC_CCU8_MODULE_t *const | module, |
const XMC_CCU8_SUSPEND_MODE_t | mode | ||
) |
module | Constant pointer to CCU8 module |
mode | Selects suspend mode |
void XMC_CCU8_SLICE_Capture0Config | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the Capture-0 Function |
void XMC_CCU8_SLICE_Capture1Config | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the Capture-1 Function |
void XMC_CCU8_SLICE_CaptureInit | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_CAPTURE_CONFIG_t *const | capture_init | ||
) |
slice | Constant pointer to CC8 Slice |
capture_init | Pointer to slice configuration structure |
void XMC_CCU8_SLICE_ClearEvent | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_IRQ_ID_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Asserted event which must be acknowledged. |
void XMC_CCU8_SLICE_ClearTimer | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_CompareInit | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CONFIG_t *const | compare_init | ||
) |
slice | Constant pointer to CC8 Slice |
compare_init | Pointer to slice configuration structure |
void XMC_CCU8_SLICE_ConfigureDeadTime | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint8_t | mask | ||
) |
slice | Constant pointer to CC8 Slice |
mask | The Dead Time configuration mask. Do a bitwise OR operation on the following values depending on the need. Value 0x1: Dead Time Enable for Compare Channel 1 Value 0x2: Dead Time Enable for Compare Channel 2 Value 0x4: Dead Time Enable for CC8yST1 path is enabled. Value 0x8: Dead Time Enable for Inverted CC8yST1 path is enabled. Value 0x10: Dead Time Enable for CC8yST2 path is enabled. Value 0x20: Dead Time Enable for Inverted CC8yST2 path is enabled. Range: [0x0 to 0x3F] |
void XMC_CCU8_SLICE_ConfigureEvent | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event, | ||
const XMC_CCU8_SLICE_EVENT_CONFIG_t * | config | ||
) |
slice | Constant pointer to CC8 Slice |
event | The External Event which needs to be configured. |
config | Pointer to event configuration data. |
void XMC_CCU8_SLICE_ConfigureStatusBitOutput | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_STATUS_t | channel | ||
) |
slice | Constant pointer to CC8 Slice |
channel | which channel status has to be give as out |
void XMC_CCU8_SLICE_ConfigureStatusBitOverrideEvent | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_CONFIG_t *const | ev1_config, | ||
const XMC_CCU8_SLICE_EVENT_CONFIG_t *const | ev2_config | ||
) |
slice | Constant pointer to CC8 Slice |
ev1_config | Pointer to event 1 configuration data |
ev2_config | Pointer to event 2 configuration data |
void XMC_CCU8_SLICE_CountConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External Count Function |
void XMC_CCU8_SLICE_DeadTimeInit | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_DEAD_TIME_CONFIG_t *const | config | ||
) |
slice | Constant pointer to CC8 Slice |
config | Pointer to dead time configuration data |
void XMC_CCU8_SLICE_DirectionConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External Count Direction Function |
void XMC_CCU8_SLICE_DisableAutomaticShadowTransferRequest | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | automatic_shadow_transfer | ||
) |
slice | Constant pointer to CC8 Slice |
automatic_shadow_transfer | specify upon which register update, automatic shadow transfer request should not be generated Use :: XMC_CCU8_SLICE_AUTOMAIC_SHADOW_TRANSFER_WRITE_INTO_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_SLICE_DisableCascadedShadowTransfer | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_DisableDithering | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_DisableEvent | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_IRQ_ID_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Event whose assertion can potentially lead to an interrupt |
void XMC_CCU8_SLICE_DisableFloatingPrescaler | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_DisableMultiChannelMode | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CHANNEL_t | ch_num | ||
) |
slice | Constant pointer to CC8 Slice |
ch_num | Compare channel for which the multi-channel mode needs to be disabled. |
void XMC_CCU8_SLICE_DisableMultipleEvents | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint16_t | mask | ||
) |
slice | Constant pointer to CC8 Slice |
mask | Event mask such that multiple events can be enabled. Use XMC_CCU8_SLICE_MULTI_IRQ_ID_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_SLICE_DisableTrap | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | out_mask | ||
) |
slice | Constant pointer to CC8 Slice |
out_mask | Output signals for which the Trap function needs to be deactivated. Use XMC_CCU8_SLICE_OUTPUT_t enum items to create a mask of choice, using a bit wise OR operation. Range: [0x1 to 0xF] |
void XMC_CCU8_SLICE_EnableAsymmetricCompareMode | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_EnableAutomaticShadowTransferRequest | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | automatic_shadow_transfer | ||
) |
slice | Constant pointer to CC8 Slice |
automatic_shadow_transfer | specify upon which register update, automatic shadow transfer request is generated Use :: XMC_CCU8_SLICE_AUTOMAIC_SHADOW_TRANSFER_WRITE_INTO_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_SLICE_EnableCascadedShadowTransfer | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_EnableDithering | ( | XMC_CCU8_SLICE_t *const | slice, |
const bool | period_dither, | ||
const bool | duty_dither, | ||
const uint8_t | spread | ||
) |
slice | Constant pointer to CC8 Slice |
period_dither | Boolean instruction on dithering of period match |
duty_dither | Boolean instruction on dithering of compare match |
spread | Dither compare value |
void XMC_CCU8_SLICE_EnableEvent | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_IRQ_ID_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Event whose assertion can potentially lead to an interrupt |
void XMC_CCU8_SLICE_EnableFloatingPrescaler | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_EnableMultiChannelMode | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CHANNEL_t | ch_num | ||
) |
slice | Constant pointer to CC8 Slice |
ch_num | Compare channel for which the multi-channel mode is needed. |
void XMC_CCU8_SLICE_EnableMultipleEvents | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint16_t | mask | ||
) |
slice | Constant pointer to CC8 Slice |
mask | Event mask such that multiple events can be enabled. Use XMC_CCU8_SLICE_MULTI_IRQ_ID_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_SLICE_EnableSymmetricCompareMode | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_EnableTrap | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | out_mask | ||
) |
slice | Constant pointer to CC8 Slice |
out_mask | Output signals for which the Trap function needs to be activated. Use XMC_CCU8_SLICE_OUTPUT_t enum items to create a mask of choice, using a bit wise OR operation Range: [0x1 to 0xF] |
void XMC_CCU8_SLICE_GateConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External Gating Function |
uint32_t XMC_CCU8_SLICE_GetCapturedValueFromFifo | ( | const XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_CAP_REG_SET_t | set | ||
) |
slice | Constant pointer to CC8 Slice |
set | The capture register set from which the captured value is to be retrieved |
uint32_t XMC_CCU8_SLICE_GetCaptureRegisterValue | ( | const XMC_CCU8_SLICE_t *const | slice, |
const uint8_t | reg_num | ||
) |
slice | Constant pointer to CC8 Slice |
reg_num | The capture register from which the captured value is to be retrieved Range: [0,3] |
XMC_CCU8_SLICE_TIMER_COUNT_DIR_t XMC_CCU8_SLICE_GetCountingDir | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
bool XMC_CCU8_SLICE_GetEvent | ( | const XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_IRQ_ID_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Event to be evaluated for assertion |
XMC_CCU8_STATUS_t XMC_CCU8_SLICE_GetLastCapturedTimerValue | ( | const XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_CAP_REG_SET_t | set, | ||
uint32_t * | val_ptr | ||
) |
slice | Constant pointer to CC8 Slice |
set | The capture register set, which must be evaluated |
val_ptr | Out Parameter of the API.Stores the captured timer value into this out parameter. |
XMC_CCU8_SLICE_PRESCALER_t XMC_CCU8_SLICE_GetPrescaler | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
XMC_CCU8_SLICE_MODE_t XMC_CCU8_SLICE_GetSliceMode | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
uint16_t XMC_CCU8_SLICE_GetTimerCompareMatch | ( | const XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CHANNEL_t | channel | ||
) |
slice | Constant pointer to CC8 Slice |
channel | Select the compare channel to retrieve from. |
uint16_t XMC_CCU8_SLICE_GetTimerCompareMatchChannel1 | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
uint16_t XMC_CCU8_SLICE_GetTimerCompareMatchChannel2 | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
XMC_CCU8_SLICE_TIMER_COUNT_MODE_t XMC_CCU8_SLICE_GetTimerCountingMode | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
uint16_t XMC_CCU8_SLICE_GetTimerPeriodMatch | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
XMC_CCU8_SLICE_TIMER_REPEAT_MODE_t XMC_CCU8_SLICE_GetTimerRepeatMode | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
uint16_t XMC_CCU8_SLICE_GetTimerValue | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
bool XMC_CCU8_SLICE_IsDeadTimeCntr1Running | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Pointer to an instance of CC8 slice |
bool XMC_CCU8_SLICE_IsDeadTimeCntr2Running | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Pointer to an instance of CC8 slice |
bool XMC_CCU8_SLICE_IsExtendedCapReadEnabled | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
bool XMC_CCU8_SLICE_IsTimerRunning | ( | const XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_LoadConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External load Function |
void XMC_CCU8_SLICE_LoadSelector | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CHANNEL_t | ch_num | ||
) |
slice | Constant pointer to CC8 Slice |
ch_num | Select which compare channel value has to be loaded to the Timer register during external load event. |
void XMC_CCU8_SLICE_ModulationConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event, | ||
const XMC_CCU8_SLICE_MODULATION_MODE_t | mod_mode, | ||
const XMC_CCU8_SLICE_MODULATION_CHANNEL_t | channel, | ||
const bool | synch_with_pwm | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External Modulation Function |
mod_mode | Desired Modulation mode |
channel | Specify the channel(s) on which the modulation should be applied. |
synch_with_pwm | Option to synchronize modulation with PWM start Pass true if the modulation needs to be synchronized with PWM signal. |
void XMC_CCU8_SLICE_ParityCheckerDisableSliceOutput | ( | XMC_CCU8_MODULE_t *const | module, |
const uint8_t | slice_number, | ||
XMC_CCU8_SLICE_OUTPUT_t | output | ||
) |
module | Constant pointer to CCU8 module |
slice_number | Slice for which the clock should be disabled. Range: [0x0 to 0x3] |
output | Slice output XMC_CCU8_SLICE_OUTPUT_t. |
void XMC_CCU8_SLICE_ParityCheckerEnableSliceOutput | ( | XMC_CCU8_MODULE_t *const | module, |
const uint8_t | slice_number, | ||
XMC_CCU8_SLICE_OUTPUT_t | output | ||
) |
module | Constant pointer to CCU8 module |
slice_number | Slice for which the clock should be disabled. Range: [0x0 to 0x3] |
output | Slice output. |
uint32_t XMC_CCU8_SLICE_ParityCheckerGetStatus | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_SLICE_ParityCheckerSetDelayInput | ( | XMC_CCU8_MODULE_t *const | module, |
const XMC_CCU8_PARITY_CHECKER_DELAY_INPUT_t | input | ||
) |
module | Constant pointer to CCU8 module |
input | signal controlling the delay between the change at the CCU8 outputs and effective change at the driver parity output XMC_CCU8_PARITY_CHECKER_DELAY_INPUT_t. |
void XMC_CCU8_SLICE_ParityCheckerSetDriverInput | ( | XMC_CCU8_MODULE_t *const | module, |
const XMC_CCU8_PARITY_CHECKER_DRIVER_INPUT_t | input | ||
) |
module | Constant pointer to CCU8 module |
input | signal contains the driver parity information XMC_CCU8_PARITY_CHECKER_DRIVER_INPUT_t. |
void XMC_CCU8_SLICE_ParityCheckerSetType | ( | XMC_CCU8_MODULE_t *const | module, |
const XMC_CCU8_PARITY_CHECKER_TYPE_t | type | ||
) |
module | Constant pointer to CCU8 module |
type | odd or even parity XMC_CCU8_PARITY_CHECKER_TYPE_t. |
void XMC_CCU8_SLICE_SetDeadTimePrescaler | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_DTC_DIV_t | div_val | ||
) |
slice | Pointer to an instance of CC8 slice |
div_val | Prescaler divider value |
void XMC_CCU8_SLICE_SetDeadTimeValue | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CHANNEL_t | channel, | ||
const uint8_t | rise_value, | ||
const uint8_t | fall_value | ||
) |
slice | Constant pointer to CC8 Slice |
channel | Compare channel number |
rise_value | Programs rising edge delay Range: [0x0 to 0xFF] |
fall_value | Programs falling edge delay Range: [0x0 to 0xFF] |
void XMC_CCU8_SLICE_SetDitherCompareValue | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint8_t | comp_val | ||
) |
slice | Constant pointer to CC8 Slice |
comp_val | Dither compare value Range: [0x0 to 0xF] |
void XMC_CCU8_SLICE_SetEvent | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_IRQ_ID_t | event | ||
) |
slice | Constant pointer to CC8 Slice |
event | Event whose assertion can potentially lead to an interrupt |
void XMC_CCU8_SLICE_SetFloatingPrescalerCompareValue | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint8_t | cmp_val | ||
) |
slice | Constant pointer to CC8 Slice |
cmp_val | Prescaler divider compare value Range: [0x0 to 0xF] |
void XMC_CCU8_SLICE_SetInput | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event, | ||
const XMC_CCU8_SLICE_INPUT_t | input | ||
) |
slice | Constant pointer to CC8 Slice |
event | The External Event which needs to be configured. |
input | One of the 16 inputs meant to be mapped to the desired event |
void XMC_CCU8_SLICE_SetInterruptNode | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_IRQ_ID_t | event, | ||
const XMC_CCU8_SLICE_SR_ID_t | sr | ||
) |
slice | Constant pointer to CC8 Slice |
event | Event which must be bound to a service request line |
sr | The Service request line which is bound to the event |
void XMC_CCU8_SLICE_SetOutPath | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | out_path_msk | ||
) |
slice | Constant pointer to CC8 Slice |
out_path_msk | configuration for output path selection. combination of XMC_CCU8_OUT_PATH_t enum items can be used to create a mask. |
void XMC_CCU8_SLICE_SetPassiveLevel | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_OUTPUT_t | out, | ||
const XMC_CCU8_SLICE_OUTPUT_PASSIVE_LEVEL_t | level | ||
) |
slice | Constant pointer to CC8 Slice |
out | Output signal for which the passive level needs to be set. |
level | Output passive level for the out signal |
void XMC_CCU8_SLICE_SetPrescaler | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_PRESCALER_t | div_val | ||
) |
slice | Constant pointer to CC8 Slice |
div_val | Prescaler divider value. Accepts enum :: XMC_CCU8_SLICE_PRESCALER_t Range: [0x0 to 0xF] |
void XMC_CCU8_SLICE_SetShadowTransferMode | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_SHADOW_TRANSFER_MODE_t | shadow_transfer_mode | ||
) |
slice | Constant pointer to CC8 Slice |
shadow_transfer_mode | mode to be configured Use :: XMC_CCU8_SLICE_SHADOW_TRANSFER_MODE_t enum items for mode |
void XMC_CCU8_SLICE_SetTimerCompareMatch | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_COMPARE_CHANNEL_t | channel, | ||
const uint16_t | compare_val | ||
) |
slice | Constant pointer to CC8 Slice |
channel | Select the compare channel to which the compare_val has to programmed. |
compare_val | Timer compare value |
void XMC_CCU8_SLICE_SetTimerCompareMatchChannel1 | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint16_t | compare_val | ||
) |
slice | Constant pointer to CC8 Slice |
compare_val | Timer compare value |
void XMC_CCU8_SLICE_SetTimerCompareMatchChannel2 | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint16_t | compare_val | ||
) |
slice | Constant pointer to CC8 Slice |
compare_val | Timer compare value |
void XMC_CCU8_SLICE_SetTimerCountingMode | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_TIMER_COUNT_MODE_t | mode | ||
) |
slice | Constant pointer to CC8 Slice |
mode | Desired counting mode (Either Edge Aligned or Center Aligned) |
void XMC_CCU8_SLICE_SetTimerPeriodMatch | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint16_t | period_val | ||
) |
slice | Constant pointer to CC8 Slice |
period_val | Timer period value Range: [0x0 to 0xFFFF] |
void XMC_CCU8_SLICE_SetTimerRepeatMode | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_TIMER_REPEAT_MODE_t | mode | ||
) |
slice | Constant pointer to CC8 Slice |
mode | Desired repetition mode (Either single shot or Continuous) |
void XMC_CCU8_SLICE_SetTimerValue | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint16_t | timer_val | ||
) |
slice | Constant pointer to CC8 Slice |
timer_val | The new timer value that has to be loaded into the TIMER register. Range: [0x0 to 0xFFFF] |
void XMC_CCU8_SLICE_StartConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event, | ||
const XMC_CCU8_SLICE_START_MODE_t | start_mode | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External Start Function |
start_mode | Behaviour of slice when the start function is activated |
void XMC_CCU8_SLICE_StartTimer | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_StatusBitOverrideConfig | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_StopClearTimer | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_StopConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_EVENT_t | event, | ||
const XMC_CCU8_SLICE_END_MODE_t | end_mode | ||
) |
slice | Constant pointer to CC8 Slice |
event | Map an External event to the External Stop Function |
end_mode | Behaviour of slice when the stop function is activated |
void XMC_CCU8_SLICE_StopTimer | ( | XMC_CCU8_SLICE_t *const | slice | ) |
slice | Constant pointer to CC8 Slice |
void XMC_CCU8_SLICE_TrapConfig | ( | XMC_CCU8_SLICE_t *const | slice, |
const XMC_CCU8_SLICE_TRAP_EXIT_MODE_t | exit_mode, | ||
bool | synch_with_pwm | ||
) |
slice | Constant pointer to CC8 Slice |
exit_mode | How should a previously logged trap state be exited? |
synch_with_pwm | Should exit of trap state be synchronized with PWM cycle start? |
void XMC_CCU8_SLICE_WriteCoherentlyWithPWMCycle | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | coherent_write | ||
) |
slice | Constant pointer to CC8 Slice |
coherent_write | specifies for what fields this mode has to be applied Use :: XMC_CCU8_SLICE_WRITE_INTO_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_SLICE_WriteImmediateAfterShadowTransfer | ( | XMC_CCU8_SLICE_t *const | slice, |
const uint32_t | immediate_write | ||
) |
slice | Constant pointer to CC8 Slice |
immediate_write | specifies for what fields this mode has to be applied Use :: XMC_CCU8_SLICE_WRITE_INTO_t enum items to create a mask of choice, using a bit wise OR operation. |
void XMC_CCU8_StartParityChecker | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_StartPrescaler | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_StopParityChecker | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |
void XMC_CCU8_StopPrescaler | ( | XMC_CCU8_MODULE_t *const | module | ) |
module | Constant pointer to CCU8 module |