![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <string.h>
#include <stdio.h>
#include "fsl_debug_console.h"
#include "adc_hw_trigger.h"
#include "fsl_adc16_driver.h"
Data Structures | |
struct | sparse_node_ptr |
Define the sparse matrix node for display wave. More... | |
Macros | |
#define | ADC_12BIT_MAXVALUE |
#define | RATIO |
Functions | |
void | init_trigger_source (uint32_t instance) |
Enable the trigger source of LPTimer. More... | |
void | deinit_trigger_source (uint32_t instance) |
Disable the trigger source. More... | |
void | ADC_TEST_InstallCallback (uint32_t instance, uint32_t chnGroup, void(*callbackFunc)(void)) |
uint16_t | ADC_TEST_GetConvValueRAWInt (uint32_t instance, uint32_t chnGroup) |
static void | adc_chn0_isr_callback (void) |
ADC channel0 callback for fetching sample data. More... | |
static void | adc_chn1_isr_callback (void) |
ADC channel1 callback for fetching sample data. More... | |
static int32_t | init_adc (uint32_t instance) |
Initialize the ADCx for HW trigger. More... | |
void | sparse_reset (void) |
Reset the sparse matrix. More... | |
void | sparse_insert (uint32_t index, uint8_t value) |
insert a node into the sparse matrix More... | |
int | main (void) |
Main demo function. More... | |
Variables | |
SIM_Type * | gSimBase [] |
static volatile bool | gAdcDone |
static sparse_node_ptr | gChartHead [CHART_ROWS] |
static sparse_node_t | gChartNodes [NR_SAMPLES] |
static uint32_t | gFreeNode |
static volatile uint8_t | gCurChan |
#define ADC_12BIT_MAXVALUE |
#define RATIO |
|
static |
|
static |
uint16_t ADC_TEST_GetConvValueRAWInt | ( | uint32_t | instance, |
uint32_t | chnGroup | ||
) |
void ADC_TEST_InstallCallback | ( | uint32_t | instance, |
uint32_t | chnGroup, | ||
void(*)(void) | callbackFunc | ||
) |
void deinit_trigger_source | ( | uint32_t | adcInstance | ) |
disable the trigger source
|
static |
instance | The ADC instance number |
void init_trigger_source | ( | uint32_t | adcInstance | ) |
enable the trigger source of LPTimer
enable the trigger source
enable the trigger source of PIT0, chn0
enable the trigger source of PWM
int main | ( | void | ) |
Function prototype for main function.
void sparse_insert | ( | uint32_t | index, |
uint8_t | value | ||
) |
index | The amplitude index |
value | The sample count value |
void sparse_reset | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
SIM_Type* gSimBase[] |