Files
bacnet_stack/ports/atmega328/adc.h
T
Steve Karg 4781582204 Changed ATmega168 port to ATmega328 on Uno R3 with DFR0259 RS485 shield (#784)
* Changed ATmega168 example for ATmega328 on Arduino Uno R3 with DFR0259 RS485 shield. Added ADC interface from BDK port and mapped to some AV objects. Removed MS/TP MAC address DIP switch GPIO and moved MS/TP configuration to AV objects. Added AV units property. Added some Uno R3 Digital Inputs and outputs mapped to some BV. Added AVR EEPROM from BDK port and mapped some non-volatile data including MAC address and max manager and baud rate, device ID and names and description and location.
2024-09-27 14:42:47 -05:00

26 lines
522 B
C

/**
* @brief This module manages the Analog to Digital Converter (ADC)
* @author Steve Karg <skarg@users.sourceforge.net>
* @date 2007
* @copyright SPDX-License-Identifier: MIT
*/
#ifndef ADC_H
#define ADC_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void adc_enable(uint8_t index);
uint8_t adc_result_8bit(uint8_t index);
uint16_t adc_result_10bit(uint8_t index);
uint16_t adc_millivolts(uint8_t index);
void adc_init(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif