Contiki 3.x
|
Helper functions for reading Mulle platform board voltages.More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
uint16_t | voltage_from_raw_adc (uint16_t adc_raw) |
Scale a raw ADC reading from 0..65535 to millivolts depending on the board's VREFH, VREFL reference voltages. More... | |
uint16_t | voltage_read_vbat () |
Helper functions for reading Mulle platform board voltages.
Definition in file voltage.h.
uint16_t voltage_from_raw_adc | ( | uint16_t | adc_raw | ) |
Scale a raw ADC reading from 0..65535 to millivolts depending on the board's VREFH, VREFL reference voltages.
Definition at line 67 of file voltage.c.
References MULLE_ADC_VREFHL_SCALE_MILLIVOLTS, and MULLE_ADC_VREFL_MILLIVOLTS.
Referenced by voltage_read_vbat().
uint16_t voltage_read_vbat | ( | ) |
Definition at line 80 of file voltage.c.
References MULLE_ADC_VBAT_ADC_NUM, and voltage_from_raw_adc().