# hal_Allegro_ACS710_current_sensor.c File Reference

Hardware Abstraction Layer (HAL) support file for Allegro ACS710 current sensor. More...

`#include "../HAL/hal.h"`
`#include "../HAL/hal_cc2530znp_target_board.H"`
`#include "../HAL/hal.h"`
`#include <stdlib.h>`

## Defines
#define | DELAY_TICKS_BETWEEN_SAMPLES 70
#define | MIDPOINT 2646
#define | PERIOD_US 260
#define | MAX_RANGE (COUNTS_PER_AMPERE * 20)
#define | NUM_RESULTS 64
#define | COUNTS_PER_AMPERE 82
#define | MILLIAMPERE_PER_COUNT 12.091
#define | ADC_COUNT_TO_MILLIVOLT_MULTIPLIER 1.220703125
unsigned int | getAverage (unsigned int *values, unsigned char numValues)
unsigned int | roundInteger (unsigned int number, unsigned int place)
unsigned int | max (unsigned int values[], unsigned int numValues)
unsigned int | min (unsigned int values[], unsigned int numValues)
void | getCurrentValues (unsigned int results[])
unsigned int | getCurrent ()

## Detailed Description

Hardware Abstraction Layer (HAL) support file for Allegro ACS710 current sensor.

Rev
  697

Author
  dsmith

Date
  2010-08-11 18:16:58 -0700 (Wed, 11 Aug 2010)

## Function Documentation

void getCurrentValues | ( | unsigned int | results[] | ) |

reads the values into memory

Precondition:
  results is large enough for 64 unsigned ints

All Files Functions Variables