38 #if (defined(OC_PAL_OVER_EMIOS))
52 OC_BUS_SEL_INTERNAL = 0x06U
107 #if (defined(OC_PAL_OVER_FTM))
116 uint16_t maxCountValue;
120 } extension_ftm_for_oc_t;
123 #if (defined(OC_PAL_OVER_EMIOS))
132 oc_bus_select_t timebase;
135 emios_clock_internal_ps_t prescaler;
136 } channel_extension_emios_for_oc_t;
147 bool enableGlobalPrescaler;
148 bool enableGlobalTimeBase;
149 } extension_emios_for_oc_t;
152 #if (defined(OC_PAL_OVER_ETIMER))
161 etimer_input_config_t primaryInput;
162 etimer_output_config_t outputPin;
163 } channel_extension_etimer_for_oc_t;
170 #if defined(__cplusplus)
213 const uint8_t channel);
224 const uint8_t channel);
243 const uint8_t channel,
264 const uint8_t channel,
284 const uint8_t channel,
285 uint32_t nextCompareMatchValue,
297 const uint8_t channel);
308 const uint8_t channel);
310 #if defined(__cplusplus)
status_t OC_SetCompareValue(const oc_instance_t *const instance, const uint8_t channel, uint32_t nextCompareMatchValue, oc_option_update_t typeOfupdate)
Update the match value on the channel.
The configuration structure of output compare parameters for each channel.
oc_callback_t channelCallbacks
void OC_StartChannel(const oc_instance_t *const instance, const uint8_t channel)
Start the counter.
const oc_output_ch_param_t * outputChConfig
void * channelCallbackParams
status_t OC_SetOutputState(const oc_instance_t *const instance, const uint8_t channel, bool outputValue)
Control the channel output by software.
ftm_clock_ps_t
FlexTimer pre-scaler factor selection for the clock source. In quadrature decoder mode set FTM_CLOCK_...
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
status_t OC_SetOutputAction(const oc_instance_t *const instance, const uint8_t channel, oc_option_mode_t channelMode)
Set the operation mode of channel output.
ftm_clock_source_t
FlexTimer clock source selection.
status_t OC_Deinit(const oc_instance_t *const instance)
De-initialize the output compare instance.
void OC_StopChannel(const oc_instance_t *const instance, const uint8_t channel)
Stop the counter.
oc_option_mode_t
The type of comparison for output compare mode Implements : oc_option_mode_t_Class.
void OC_EnableNotification(const oc_instance_t *const instance, const uint8_t channel)
Enable channel notifications.
void(* oc_callback_t)(oc_event_t event, void *userData)
status_t OC_Init(const oc_instance_t *const instance, const oc_config_t *const configPtr)
Initializes the output compare mode.
void OC_DisableNotification(const oc_instance_t *const instance, const uint8_t channel)
Disable channel notifications.
oc_option_update_t
The type of update on the channel match Implements : oc_option_mode_t_Class.
Defines the configuration structures are used in the output compare mode.
Structure storing PAL instance information.