Open Lighting Architecture
Main Page
Modules
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
ola
rdm
RDMHelper.h
Go to the documentation of this file.
1
/*
2
* This library is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU Lesser General Public
4
* License as published by the Free Software Foundation; either
5
* version 2.1 of the License, or (at your option) any later version.
6
*
7
* This library is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
* Lesser General Public License for more details.
11
*
12
* You should have received a copy of the GNU Lesser General Public
13
* License along with this library; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*
16
* RDMHelper.h
17
* Various misc RDM functions.
18
* Copyright (C) 2005-2010 Simon Newton
19
*/
20
29
#ifndef INCLUDE_OLA_RDM_RDMHELPER_H_
30
#define INCLUDE_OLA_RDM_RDMHELPER_H_
31
32
#include <stdint.h>
33
#include <
ola/rdm/RDMEnums.h
>
34
#include <ola/rdm/RDMResponseCodes.h>
35
#include <string>
36
37
namespace
ola {
38
namespace
rdm {
39
40
using
std::string;
41
42
string
ResponseCodeToString
(rdm_response_code status);
43
44
string
DataTypeToString
(uint8_t type);
45
string
LampModeToString
(uint8_t lamp_mode);
46
string
LampStateToString
(uint8_t lamp_state);
47
string
NackReasonToString
(uint16_t reason);
48
string
PowerStateToString
(uint8_t power_state);
49
bool
UIntToPowerState
(uint8_t state, rdm_power_state *power_state);
50
string
PrefixToString
(uint8_t prefix);
51
string
ProductCategoryToString
(uint16_t category);
52
string
ProductDetailToString
(uint16_t detail);
53
string
ResetDeviceToString
(uint8_t reset_device);
54
bool
UIntToResetDevice
(uint8_t state, rdm_reset_device_mode *reset_device);
55
string
SensorTypeToString
(uint8_t type);
56
string
SlotInfoToString
(uint8_t slot_type, uint16_t slot_label);
57
string
StatusMessageIdToString
(uint16_t message_id,
58
int16_t data1,
59
int16_t data2);
60
string
StatusTypeToString
(uint8_t status_type);
61
string
UnitToString
(uint8_t unit);
62
}
// namespace rdm
63
}
// namespace ola
64
#endif // INCLUDE_OLA_RDM_RDMHELPER_H_
Generated on Fri Apr 4 2014 11:54:22 for Open Lighting Architecture by
1.8.1.2