| Kinetis SDK Demo Applications User Guide 1.0.0-beta Freescale Semiconductor, Inc.

- Main Page
- Related Pages
- Demos

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
low_power_adc.h File Reference
`#include <stdint.h>`

Go to the source code of this file.

## Data Structures
struct | lowPowerAdcBoundaries_t
| Boundaries struct. More...

## Functions
void | init_hardware (void)
| Initialize Clock Manager for PORT, ADC, and LPTIMER. More...
void | LowPowerTimerIRQHandler (void)
| Low Power Timer Interrupt handler. Clear LPT Compare flag. More...
void | ADC1IRQHandler (void)
| ADC Interrupt handler. Get current ADC value and set conversionCompleted flag. More...
void | InitLowPowerTmr (void)
| Initialize Low Power Timer. Use 1 kHz LPO with no preescaler and enable LPT interrupt. More...
uint32_t | GetCurrentTempValue (void)
| Calculate current temperature. More...
lowPowerAdcBoundaries_t | TempSensorCalibration (uint32_t updateBoundariesCounter, uint32_t *tempArray)
| Calculate current temperature. More...

## Data Structure Documentation

struct lowPowerAdcBoundaries_t

Data Fields
uint32_t | lowerBoundary |
uint32_t | upperBoundary |

## Function Documentation

void ADC1IRQHandler | ( | void |  | ) |

uint32_t GetCurrentTempValue | ( | void |  | ) |

Returns
  uint32_t Returns current temperature.

void init_hardware | ( | void |  | ) |

Conversion is completed Flag

void InitLowPowerTmr | ( | void |  | ) |

void LowPowerTimerIRQHandler | ( | void |  | ) |

lowPowerAdcBoundaries_t TempSensorCalibration | ( | uint32_t | updateBoundariesCounter,
|  | uint32_t * | tempArray
| ) |  |

Parameters

  updateBoundariesCounter | Indicate number of values into tempArray.
  tempArray | Store temperature value.

Returns
  lowPowerAdcBoundaries_t Returns upper and lower temperature boundaries.