ADISense1000 Version 2.1 code base

Fork of AdiSense1000_V21 by Sean Wilson

Committer:
danodonovan
Date:
Mon Jan 22 17:40:50 2018 +0000
Revision:
24:5a2272a25ff1
Updating example to adisense1000 v1.0.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
danodonovan 24:5a2272a25ff1 1 /*!
danodonovan 24:5a2272a25ff1 2 ******************************************************************************
danodonovan 24:5a2272a25ff1 3 * @file: adi_sense_time.h
danodonovan 24:5a2272a25ff1 4 * @brief: ADI Sense OS Dependant wrapper layer for time functions
danodonovan 24:5a2272a25ff1 5 *-----------------------------------------------------------------------------
danodonovan 24:5a2272a25ff1 6 */
danodonovan 24:5a2272a25ff1 7
danodonovan 24:5a2272a25ff1 8 /*
danodonovan 24:5a2272a25ff1 9 Copyright 2017 (c) Analog Devices, Inc.
danodonovan 24:5a2272a25ff1 10
danodonovan 24:5a2272a25ff1 11 All rights reserved.
danodonovan 24:5a2272a25ff1 12
danodonovan 24:5a2272a25ff1 13 Redistribution and use in source and binary forms, with or without
danodonovan 24:5a2272a25ff1 14 modification, are permitted provided that the following conditions are met:
danodonovan 24:5a2272a25ff1 15 - Redistributions of source code must retain the above copyright
danodonovan 24:5a2272a25ff1 16 notice, this list of conditions and the following disclaimer.
danodonovan 24:5a2272a25ff1 17 - Redistributions in binary form must reproduce the above copyright
danodonovan 24:5a2272a25ff1 18 notice, this list of conditions and the following disclaimer in
danodonovan 24:5a2272a25ff1 19 the documentation and/or other materials provided with the
danodonovan 24:5a2272a25ff1 20 distribution.
danodonovan 24:5a2272a25ff1 21 - Neither the name of Analog Devices, Inc. nor the names of its
danodonovan 24:5a2272a25ff1 22 contributors may be used to endorse or promote products derived
danodonovan 24:5a2272a25ff1 23 from this software without specific prior written permission.
danodonovan 24:5a2272a25ff1 24 - The use of this software may or may not infringe the patent rights
danodonovan 24:5a2272a25ff1 25 of one or more patent holders. This license does not release you
danodonovan 24:5a2272a25ff1 26 from the requirement that you obtain separate licenses from these
danodonovan 24:5a2272a25ff1 27 patent holders to use this software.
danodonovan 24:5a2272a25ff1 28 - Use of the software either in source or binary form, must be run
danodonovan 24:5a2272a25ff1 29 on or directly connected to an Analog Devices Inc. component.
danodonovan 24:5a2272a25ff1 30
danodonovan 24:5a2272a25ff1 31 THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
danodonovan 24:5a2272a25ff1 32 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
danodonovan 24:5a2272a25ff1 33 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
danodonovan 24:5a2272a25ff1 34 IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
danodonovan 24:5a2272a25ff1 35 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
danodonovan 24:5a2272a25ff1 36 LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
danodonovan 24:5a2272a25ff1 37 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
danodonovan 24:5a2272a25ff1 38 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
danodonovan 24:5a2272a25ff1 39 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
danodonovan 24:5a2272a25ff1 40 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
danodonovan 24:5a2272a25ff1 41 */
danodonovan 24:5a2272a25ff1 42
danodonovan 24:5a2272a25ff1 43 #ifndef __ADI_SENSE_TIME_H__
danodonovan 24:5a2272a25ff1 44 #define __ADI_SENSE_TIME_H__
danodonovan 24:5a2272a25ff1 45
danodonovan 24:5a2272a25ff1 46 #include "inc/adi_sense_types.h"
danodonovan 24:5a2272a25ff1 47
danodonovan 24:5a2272a25ff1 48 /*! @ingroup ADI_Sense_Host */
danodonovan 24:5a2272a25ff1 49
danodonovan 24:5a2272a25ff1 50 /*! @addtogroup ADI_Sense_Time ADI Sense Host Time functions
danodonovan 24:5a2272a25ff1 51 * @{
danodonovan 24:5a2272a25ff1 52 */
danodonovan 24:5a2272a25ff1 53
danodonovan 24:5a2272a25ff1 54 #ifdef __cplusplus
danodonovan 24:5a2272a25ff1 55 extern "C"
danodonovan 24:5a2272a25ff1 56 {
danodonovan 24:5a2272a25ff1 57 #endif
danodonovan 24:5a2272a25ff1 58
danodonovan 24:5a2272a25ff1 59 /*!
danodonovan 24:5a2272a25ff1 60 * @brief Wait for a specified number of microseconds
danodonovan 24:5a2272a25ff1 61 *
danodonovan 24:5a2272a25ff1 62 * @param[in] microseconds Number of microseconds to wait
danodonovan 24:5a2272a25ff1 63 */
danodonovan 24:5a2272a25ff1 64 void adi_sense_TimeDelayUsec(
danodonovan 24:5a2272a25ff1 65 const unsigned microseconds);
danodonovan 24:5a2272a25ff1 66
danodonovan 24:5a2272a25ff1 67 #ifdef __cplusplus
danodonovan 24:5a2272a25ff1 68 }
danodonovan 24:5a2272a25ff1 69 #endif
danodonovan 24:5a2272a25ff1 70
danodonovan 24:5a2272a25ff1 71 /*!
danodonovan 24:5a2272a25ff1 72 * @}
danodonovan 24:5a2272a25ff1 73 */
danodonovan 24:5a2272a25ff1 74
danodonovan 24:5a2272a25ff1 75 #endif /* __ADI_SENSE_TIME_H__ */
danodonovan 24:5a2272a25ff1 76