![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
#include <stdio.h>
#include <string.h>
#include "board.h"
#include "hvac.h"
#include "hvac_public.h"
#include "hvac_private.h"
#include "adc_inf.h"
#include "fsl_debug_console.h"
Macros | |
#define | ADC_0 |
#define | CHANNEL_0 |
#define | ADCR_VDD |
#define | V_BG |
#define | V_TEMP25 |
#define | M |
#define | STANDARD_TEMP |
#define | UPPER_VALUE_LIMIT |
#define | LOWER_VALUE_LIMIT |
#define | UPDATE_BOUNDARIES_TIME |
#define | kAdcChannelTemperature |
#define | kAdcChannelBandgap |
Functions | |
void | init_trigger_source (uint32_t instance) |
Enable the trigger source of LPTimer. More... | |
void | sw_irq_callback (void) |
SWs Interrupt service fuction. More... | |
bool | HVAC_InitializeIO (void) |
Initialize LEDs and SWs for HVAC simulation. More... | |
void | HVAC_ResetOutputs (void) |
Reset output. More... | |
void | HVAC_SetOutput (HVAC_Output_t signal, bool state) |
Set output. More... | |
bool | HVAC_GetOutput (HVAC_Output_t signal) |
Get the output state. More... | |
char * | HVAC_GetOutputName (HVAC_Output_t signal) |
Get output name. More... | |
uint32_t | HVAC_GetAmbientTemperature (void) |
Get ambient temperature. More... | |
void | HVAC_ReadAmbientTemperature (void) |
Get ambient temperature. More... | |
void | HVAC_InitializeADC (void) |
Setup ADC module to read in accelerometer and potentiometer values. More... | |
int32_t | ReadADC (void) |
Read in ADC value on the channel given. More... | |
Variables | |
char * | HVAC_OutputName [] |
bool | HVAC_OutputState [HVAC_MAX_OUTPUTS] |
static uint32_t | AmbientTemperature |
gpio_input_pin_user_config_t * | swConfigs |
volatile bool | conversionCompleted |
#define ADC_0 |
#define ADCR_VDD |
#define CHANNEL_0 |
#define kAdcChannelBandgap |
#define kAdcChannelTemperature |
#define LOWER_VALUE_LIMIT |
#define M |
#define STANDARD_TEMP |
#define UPDATE_BOUNDARIES_TIME |
#define UPPER_VALUE_LIMIT |
#define V_BG |
#define V_TEMP25 |
uint32_t HVAC_GetAmbientTemperature | ( | void | ) |
bool HVAC_GetOutput | ( | HVAC_Output_t | signal | ) |
char* HVAC_GetOutputName | ( | HVAC_Output_t | signal | ) |
void HVAC_InitializeADC | ( | void | ) |
bool HVAC_InitializeIO | ( | void | ) |
void HVAC_ReadAmbientTemperature | ( | void | ) |
void HVAC_ResetOutputs | ( | void | ) |
void HVAC_SetOutput | ( | HVAC_Output_t | signal, |
bool | state | ||
) |
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 LPTimer
enable the trigger source
enable the trigger source of PIT0, chn0
enable the trigger source of PWM
enable the trigger source of LPTimer
enable the trigger source
enable the trigger source of PIT0, chn0
enable the trigger source of PWM
int32_t ReadADC | ( | void | ) |
void sw_irq_callback | ( | void | ) |
|
static |
volatile bool conversionCompleted |
char* HVAC_OutputName[] |
bool HVAC_OutputState[HVAC_MAX_OUTPUTS] |
gpio_input_pin_user_config_t* swConfigs |