vdr
2.2.0
Main Page
Namespaces
Classes
Files
File List
File Members
PLUGINS
src
dvbhddevice
libhdffcmd
hdffcmd_base.h
Go to the documentation of this file.
1
/**********************************************************************
2
*
3
* HDFF firmware command interface library
4
*
5
* Copyright (C) 2011 Andreas Regel
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the
19
* Free Software Foundation, Inc.,
20
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
*
22
*********************************************************************/
23
24
#ifndef HDFFCMD_BASE_H
25
#define HDFFCMD_BASE_H
26
27
#include <linux/dvb/osd.h>
28
29
#if !defined OSD_RAW_CMD
30
typedef
struct
osd_raw_cmd_s
{
31
const
void
*
cmd_data
;
32
int
cmd_len
;
33
void
*
result_data
;
34
int
result_len
;
35
}
osd_raw_cmd_t
;
36
37
typedef
struct
osd_raw_data_s
{
38
const
void
*
data_buffer
;
39
int
data_length
;
40
int
data_handle
;
41
}
osd_raw_data_t
;
42
43
#define OSD_RAW_CMD _IOWR('o', 162, osd_raw_cmd_t)
44
#define OSD_RAW_DATA _IOWR('o', 163, osd_raw_data_t)
45
#endif
46
47
#include "
bitbuffer.h
"
48
#include "
hdffcmd_defs.h
"
49
50
void
HdffCmdBuildHeader
(
BitBuffer_t
* MsgBuf,
HdffMessageType_t
MsgType,
51
HdffMessageGroup_t
MsgGroup,
HdffMessageId_t
MsgId);
52
53
uint32_t
HdffCmdSetLength
(
BitBuffer_t
* MsgBuf);
54
55
#endif
/* HDFFCMD_BASE_H */
HdffMessageId_t
HdffMessageId_t
Definition:
hdffcmd_defs.h:46
osd_raw_data_s::data_length
int data_length
Definition:
hdffcmd_base.h:39
osd_raw_cmd_s::cmd_data
const void * cmd_data
Definition:
hdffcmd_base.h:31
osd_raw_data_s::data_handle
int data_handle
Definition:
hdffcmd_base.h:40
HdffCmdBuildHeader
void HdffCmdBuildHeader(BitBuffer_t *MsgBuf, HdffMessageType_t MsgType, HdffMessageGroup_t MsgGroup, HdffMessageId_t MsgId)
Definition:
hdffcmd_base.c:26
osd_raw_cmd_s::result_data
void * result_data
Definition:
hdffcmd_base.h:33
bitbuffer.h
HdffMessageGroup_t
HdffMessageGroup_t
Definition:
hdffcmd_defs.h:35
osd_raw_cmd_s
Definition:
hdffcmd_base.h:30
osd_raw_data_s::data_buffer
const void * data_buffer
Definition:
hdffcmd_base.h:38
HdffCmdSetLength
uint32_t HdffCmdSetLength(BitBuffer_t *MsgBuf)
Definition:
hdffcmd_base.c:36
BitBuffer_t
Definition:
bitbuffer.h:29
hdffcmd_defs.h
HdffMessageType_t
HdffMessageType_t
Definition:
hdffcmd_defs.h:27
osd_raw_cmd_s::cmd_len
int cmd_len
Definition:
hdffcmd_base.h:32
osd_raw_cmd_t
struct osd_raw_cmd_s osd_raw_cmd_t
osd_raw_cmd_s::result_len
int result_len
Definition:
hdffcmd_base.h:34
osd_raw_data_s
Definition:
hdffcmd_base.h:37
osd_raw_data_t
struct osd_raw_data_s osd_raw_data_t
Generated by
1.8.11