first commit for opensource
first commit for opensource
This commit is contained in:
49
components/connectivity/LoraWAN/boards_common/adc-board.h
Normal file
49
components/connectivity/LoraWAN/boards_common/adc-board.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*!
|
||||
* \file adc-board.h
|
||||
*
|
||||
* \brief Target board ADC driver implementation
|
||||
*
|
||||
* \copyright Revised BSD License, see section \ref LICENSE.
|
||||
*
|
||||
* \code
|
||||
* ______ _
|
||||
* / _____) _ | |
|
||||
* ( (____ _____ ____ _| |_ _____ ____| |__
|
||||
* \____ \| ___ | (_ _) ___ |/ ___) _ \
|
||||
* _____) ) ____| | | || |_| ____( (___| | | |
|
||||
* (______/|_____)_|_|_| \__)_____)\____)_| |_|
|
||||
* (C)2013-2017 Semtech
|
||||
*
|
||||
* \endcode
|
||||
*
|
||||
* \author Miguel Luis ( Semtech )
|
||||
*
|
||||
* \author Gregory Cristian ( Semtech )
|
||||
*/
|
||||
#ifndef __ADC_BOARD_H__
|
||||
#define __ADC_BOARD_H__
|
||||
|
||||
#include "adc.h"
|
||||
|
||||
/*!
|
||||
* \brief Initializes the ADC object and MCU peripheral
|
||||
*
|
||||
* \param [IN] obj ADC object
|
||||
* \param [IN] adcInput ADC input pin
|
||||
*/
|
||||
void AdcMcuInit( Adc_t *obj, PinNames adcInput );
|
||||
|
||||
/*!
|
||||
* \brief Initializes the ADC internal parameters
|
||||
*/
|
||||
void AdcMcuConfig( void );
|
||||
|
||||
/*!
|
||||
* \brief Reads the value of the given channel
|
||||
*
|
||||
* \param [IN] obj ADC object
|
||||
* \param [IN] channel ADC input channel
|
||||
*/
|
||||
uint16_t AdcMcuReadChannel( Adc_t *obj, uint32_t channel );
|
||||
|
||||
#endif // __ADC_BOARD_H__
|
Reference in New Issue
Block a user