Multi-ApplicationOnlineProfiling
2.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
Color_Scales.c
Go to the documentation of this file.
1
#include "
Color_Scales.h
"
2
3
#include <string.h>
4
5
6
7
Color_Scale_t
Color_Scale_from_name
(
char
* name )
8
{
9
int
i;
10
11
for
( i = 0 ; i <
SCALE_COUNT
; i++ )
12
{
13
if
( !strcasecmp(
Color_Scale_names
[i], name ) )
14
{
15
return
i;
16
}
17
}
18
19
20
/* By default do temperature */
21
return
SCALE_TEMPERATURE
;
22
}
SCALE_COUNT
Definition:
Color_Scales.h:15
Color_Scale_names
static const char *const Color_Scale_names[SCALE_COUNT]
Definition:
Color_Scales.h:19
SCALE_TEMPERATURE
Definition:
Color_Scales.h:7
Color_Scale_from_name
Color_Scale_t Color_Scale_from_name(char *name)
Definition:
Color_Scales.c:7
Color_Scale_t
Color_Scale_t
Definition:
Color_Scales.h:5
Color_Scales.h
src
Common
Color_Scales.c
Generated on Mon Mar 14 2016 00:01:09 for Multi-ApplicationOnlineProfiling by
1.8.6