Jens Schmelkus / find_number
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers find_number.h Source File

find_number.h

00001 #ifndef find_number_h
00002 #define find_number_h
00003 
00004 /**
00005  * Includes
00006  */
00007 #include "mbed.h"
00008 
00009 /**
00010  * Defines
00011  */
00012 
00013 
00014 
00015 class find_number
00016 {
00017 public:
00018 
00019         
00020     //Constructor:
00021     
00022     find_number(int32_t  *selectable_values,int32_t cells_in_array);
00023     
00024     find_number(); // = default;
00025     
00026     //Class Objects:
00027     
00028     int32_t find_closest(int32_t target_value);
00029 
00030     int32_t find_larger(int32_t target_value);
00031 
00032     int32_t find_smaller(int32_t target_value);
00033 
00034 private:
00035 
00036     int32_t searched_array_size;
00037     
00038     int32_t *selectable_values_array;
00039     
00040 };
00041 
00042 #endif