test code for hdc1080 humidity sensor

Dependencies:   hdc1080 mbed

Fork of Nucleo-F303K8-SSD1306_OLED by Joseph Ellsworth

Committer:
joeata2wh
Date:
Wed Sep 14 02:37:29 2016 +0000
Revision:
6:c5430cdc9861
Parent:
4:53d68b18bd43
working version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joeata2wh 4:53d68b18bd43 1 /* mbed Microcontroller Library - Helper
joeata2wh 4:53d68b18bd43 2 * Copyright (c) 2007-2008, sford
joeata2wh 4:53d68b18bd43 3 */
joeata2wh 4:53d68b18bd43 4
joeata2wh 4:53d68b18bd43 5 #ifndef MBED_HELPER_H
joeata2wh 4:53d68b18bd43 6 #define MBED_HELPER_H
joeata2wh 4:53d68b18bd43 7
joeata2wh 4:53d68b18bd43 8 /* Section: helper
joeata2wh 4:53d68b18bd43 9 * A collection of useful functions not found in the standard C libraries
joeata2wh 4:53d68b18bd43 10 */
joeata2wh 4:53d68b18bd43 11
joeata2wh 4:53d68b18bd43 12 namespace mbed {
joeata2wh 4:53d68b18bd43 13
joeata2wh 4:53d68b18bd43 14 /* Function: min
joeata2wh 4:53d68b18bd43 15 * Return the minimum of two integers
joeata2wh 4:53d68b18bd43 16 */
joeata2wh 4:53d68b18bd43 17 int min(int a, int b);
joeata2wh 4:53d68b18bd43 18
joeata2wh 4:53d68b18bd43 19 /* Function: min
joeata2wh 4:53d68b18bd43 20 * Return the minimum of two floating-point numbers
joeata2wh 4:53d68b18bd43 21 */
joeata2wh 4:53d68b18bd43 22 float min(float a, float b);
joeata2wh 4:53d68b18bd43 23
joeata2wh 4:53d68b18bd43 24 /* Function: max
joeata2wh 4:53d68b18bd43 25 * Return the maximum of two integers
joeata2wh 4:53d68b18bd43 26 */
joeata2wh 4:53d68b18bd43 27 int max(int a, int b);
joeata2wh 4:53d68b18bd43 28
joeata2wh 4:53d68b18bd43 29 /* Function: max
joeata2wh 4:53d68b18bd43 30 * Return the maximum of two floating-point numbers
joeata2wh 4:53d68b18bd43 31 */
joeata2wh 4:53d68b18bd43 32 float max(float a, float b);
joeata2wh 4:53d68b18bd43 33
joeata2wh 4:53d68b18bd43 34 /* Function: clamp
joeata2wh 4:53d68b18bd43 35 * Return the value, clamped between a minimum and maximum integer value
joeata2wh 4:53d68b18bd43 36 */
joeata2wh 4:53d68b18bd43 37 int clamp(int value, int minimum, int maximum);
joeata2wh 4:53d68b18bd43 38
joeata2wh 4:53d68b18bd43 39 /* Function: clamp
joeata2wh 4:53d68b18bd43 40 * Return the value, clamped between a minimum and maximum floating-point value
joeata2wh 4:53d68b18bd43 41 */
joeata2wh 4:53d68b18bd43 42 float clamp(float value, float minimum, float maximum);
joeata2wh 4:53d68b18bd43 43
joeata2wh 4:53d68b18bd43 44 } // namespace mbed
joeata2wh 4:53d68b18bd43 45
joeata2wh 4:53d68b18bd43 46 #endif