| Kinetis SDK API Reference Manual 1.0.0-beta Freescale Semiconductor, Inc.

- Introduction
- Related Pages
- API Usage

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Typedefs | Functions
fsl_adc_driver.h File Reference
ADC Peripheral Driver
`#include "stdint.h"`
`#include "stdbool.h"`
`#include "string.h"`
`#include "fsl_port_hal.h"`
`#include "fsl_adc_hal.h"`

## Data Structures
struct | adc_calibration_param_t
| Defines the calibration parameter structure. More...
struct | adc_user_config_t
| Defines the ADC basic configuration structure. More...
struct | adc_extend_config_t
| Defines the ADC extended configuration structure. More...
struct | adc_channel_config_t
| Defines the channel configuration structure. More...

## Typedefs
typedef void(* | adc_isr_callback_t )(void)
| Defines the ADC ISR callback function. More...

## Functions
adc_status_t | adc_get_calibration_param (uint32_t instance, adc_calibration_param_t *paramPtr)
| Gets the parameters for calibration. More...
adc_status_t | adc_set_calibration_param (uint32_t instance, adc_calibration_param_t *paramPtr)
| Sets the parameters for calibration. More...
adc_status_t | adc_auto_calibration (uint32_t instance, adc_calibration_param_t *paramPtr)
| Executes the auto calibration. More...
adc_status_t | adc_init (uint32_t instance, adc_user_config_t *cfgPtr)
| Initializes the ADC with the basic configuration. More...
adc_status_t | adc_init_extend (uint32_t instance, adc_extend_config_t *extendCfgPtr)
| Initializes the ADC with the extended configurations when necessary. More...
void | adc_shutdown (uint32_t instance)
| Shuts down the ADC. More...
adc_status_t | adc_start_conversion (uint32_t instance, adc_channel_config_t *channelCfgPtr)
| Starts the conversion from the indicated channel. More...
adc_status_t | adc_stop_conversion (uint32_t instance, adc_channel_config_t *channelCfgPtr)
| Stops the conversion. More...
bool | adc_is_conversion_completed (uint32_t instance, adc_channel_config_t *channelCfgPtr)
| Checks whether the conversion is completed. More...
uint32_t | adc_get_conversion_value (uint32_t instance, adc_channel_config_t *channelCfgPtr)
| Gets the value after the conversion. More...
void | adc_register_user_callback_isr (uint32_t instance, adc_isr_callback_t func)
| Registers the custom callback function of the ADC ISR. More...