oc_pal.h File Reference
#include "oc_pal_mapping.h"
#include "status.h"
#include "callbacks.h"

Go to the source code of this file.

Data Structures

struct  oc_output_ch_param_t
 The configuration structure of output compare parameters for each channel. More...
 
struct  oc_config_t
 Defines the configuration structures are used in the output compare mode. More...
 

Enumerations

enum  oc_option_mode_t { OC_DISABLE_OUTPUT = 0x00U, OC_TOGGLE_ON_MATCH = 0x01U, OC_CLEAR_ON_MATCH = 0x02U, OC_SET_ON_MATCH = 0x03U }
 The type of comparison for output compare mode Implements : oc_option_mode_t_Class. More...
 
enum  oc_option_update_t { OC_RELATIVE_VALUE = 0x00U, OC_ABSOLUTE_VALUE = 0x01U }
 The type of update on the channel match Implements : oc_option_mode_t_Class. More...
 

Functions

status_t OC_Init (const oc_instance_t *const instance, const oc_config_t *const configPtr)
 Initializes the output compare mode. More...
 
status_t OC_Deinit (const oc_instance_t *const instance)
 De-initialize the output compare instance. More...
 
void OC_StartChannel (const oc_instance_t *const instance, const uint8_t channel)
 Start the counter. More...
 
void OC_StopChannel (const oc_instance_t *const instance, const uint8_t channel)
 Stop the counter. More...
 
status_t OC_SetOutputState (const oc_instance_t *const instance, const uint8_t channel, bool outputValue)
 Control the channel output by software. More...
 
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. More...
 
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. More...
 
void OC_EnableNotification (const oc_instance_t *const instance, const uint8_t channel)
 Enable channel notifications. More...
 
void OC_DisableNotification (const oc_instance_t *const instance, const uint8_t channel)
 Disable channel notifications. More...