Go to the source code of this file.
Data Structures | |
struct | ic_input_ch_param_t |
The configuration structure of input capture parameters for each channel. More... | |
struct | ic_config_t |
Defines the configuration structures are used in the input capture mode. More... | |
struct | ic_pal_state_t |
The internal context structure. More... | |
Enumerations | |
enum | ic_option_mode_t { IC_DISABLE_OPERATION = 0x00U, IC_TIMESTAMP_RISING_EDGE = 0x01U, IC_TIMESTAMP_FALLING_EDGE = 0x02U, IC_TIMESTAMP_BOTH_EDGES = 0x03U, IC_MEASURE_RISING_EDGE_PERIOD = 0x04U, IC_MEASURE_FALLING_EDGE_PERIOD = 0x05U, IC_MEASURE_PULSE_HIGH = 0x06U, IC_MEASURE_PULSE_LOW = 0x07U } |
The measurement type for input capture mode Implements : ic_option_mode_t_Class. More... | |
Functions | |
status_t | IC_Init (const ic_instance_t *const instance, const ic_config_t *configPtr) |
Initializes the input capture mode. More... | |
status_t | IC_Deinit (const ic_instance_t *const instance) |
De-initialize a input capture instance. More... | |
void | IC_StartChannel (const ic_instance_t *const instance, uint8_t channel) |
Start the counter. More... | |
void | IC_StopChannel (const ic_instance_t *const instance, uint8_t channel) |
Stop the counter. More... | |
status_t | IC_SetChannelMode (const ic_instance_t *const instance, uint8_t channel, ic_option_mode_t channelMode) |
Get the measured value. More... | |
uint16_t | IC_GetMeasurement (const ic_instance_t *const instance, uint8_t channel) |
Get the measured value. More... | |
void | IC_EnableNotification (const ic_instance_t *const instance, uint8_t channel) |
Enable channel notifications. More... | |
void | IC_DisableNotification (const ic_instance_t *const instance, uint8_t channel) |
Disable channel notifications. More... | |