Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hvac_private.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <fsl_os_abstraction.h>

Go to the source code of this file.

Data Structures

struct  HVAC_PARAMS
 
struct  HVAC_STATE
 

Macros

#define HVAC_CONTROL_CYCLE_IN_SECONDS
 
#define HVAC_CONTROL_CYCLE_IN_TICKS
 
#define HVAC_DEFAULT_TEMP
 
#define HVAC_PARAMS_CHANGED
 
#define ENABLE_ADC
 
#define LED_1
 
#define LED_2
 
#define LED_3
 
#define LED_4
 

Typedefs

typedef struct HVAC_PARAMSHVAC_PARAMS_PTR
 
typedef struct HVAC_STATEHVAC_STATE_PTR
 

Functions

void HVAC_InitializeParameters (void)
 Initialize parameters for HVAC. 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, bool)
 Set output. 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

HVAC_STATE HVAC_State
 
HVAC_PARAMS HVAC_Params
 

Data Structure Documentation

struct HVAC_PARAMS
Data Fields
uint32_t DesiredTemperature
event_flags_t Event
FAN_Mode_t FanMode
HVAC_Mode_t HVACMode
Temperature_Scale_t TemperatureScale
struct HVAC_STATE
Data Fields
uint32_t ActualTemperature
bool FanOn
HVAC_Mode_t HVACState

Macro Definition Documentation

#define ENABLE_ADC
#define HVAC_CONTROL_CYCLE_IN_SECONDS
#define HVAC_CONTROL_CYCLE_IN_TICKS
#define HVAC_DEFAULT_TEMP
#define HVAC_PARAMS_CHANGED
#define LED_1
#define LED_2
#define LED_3
#define LED_4

Typedef Documentation

typedef struct HVAC_PARAMS * HVAC_PARAMS_PTR
typedef struct HVAC_STATE * HVAC_STATE_PTR

Function Documentation

void HVAC_InitializeADC ( void  )
bool HVAC_InitializeIO ( void  )
void HVAC_InitializeParameters ( void  )
void HVAC_ResetOutputs ( void  )
void HVAC_SetOutput ( HVAC_Output_t  ,
bool   
)
int32_t ReadADC ( void  )

Variable Documentation

HVAC_PARAMS HVAC_Params
HVAC_STATE HVAC_State