OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rdm_frame.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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15  *
16  * rdm_frame.h
17  * Copyright (C) 2015 Simon Newton
18  */
19 
27 #ifndef FIRMWARE_SRC_RDM_FRAME_H_
28 #define FIRMWARE_SRC_RDM_FRAME_H_
29 
30 #include <stdint.h>
31 #include "rdm.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
40 typedef struct {
41  uint8_t start_code;
42  uint8_t sub_start_code;
43  uint8_t message_length;
44  uint8_t dest_uid[UID_LENGTH];
45  uint8_t src_uid[UID_LENGTH];
46  uint8_t transaction_number;
47  uint8_t port_id;
48  uint8_t message_count;
49  uint16_t sub_device;
50  uint8_t command_class;
51  uint16_t param_id;
52  uint8_t param_data_length;
53  // optional param data
54  // checksum [2];
55 } __attribute__((packed)) RDMHeader;
56 
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
66 #endif // FIRMWARE_SRC_RDM_FRAME_H_
Remote Device Management.
__attribute__
RDM Product Category codes from E1.20.
Definition: rdm.h:420