VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
hal
driver
Allwinner
F1CX00S
common
rtp
rtp.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright(C)2009-2022 by VSF Team *
3
* *
4
* Licensed under the Apache License, Version 2.0 (the "License"); *
5
* you may not use this file except in compliance with the License. *
6
* You may obtain a copy of the License at *
7
* *
8
* http://www.apache.org/licenses/LICENSE-2.0 *
9
* *
10
* Unless required by applicable law or agreed to in writing, software *
11
* distributed under the License is distributed on an "AS IS" BASIS, *
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13
* See the License for the specific language governing permissions and *
14
* limitations under the License. *
15
* *
16
****************************************************************************/
17
18
#ifndef __HAL_DRIVER_ALLWINNER_F1CX00S_RTP_H__
19
#define __HAL_DRIVER_ALLWINNER_F1CX00S_RTP_H__
20
21
/*============================ INCLUDES ======================================*/
22
23
#include "
hal/vsf_hal.h
"
24
25
#if defined(__VSF_RTP_CLASS_IMPLEMENT)
26
# define __VSF_CLASS_IMPLEMENT__
27
# undef __VSF_RTP_CLASS_IMPLEMENT
28
#endif
29
30
#include "
utilities/ooc_class.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
/*============================ MACROS ========================================*/
37
/*============================ MACROFIED FUNCTIONS ===========================*/
38
/*============================ TYPES =========================================*/
39
40
vsf_class
(
vsf_rtp_t
) {
41
public_member(
42
// todo: inherit vsf_rtp_common_t, which include bitlen
43
uint8_t
bitlen;
44
)
45
private_member(
46
struct
tsfilter_t
* filter;
47
int
x, y;
48
bool
is_down;
49
)
50
};
51
52
/*============================ GLOBAL VARIABLES ==============================*/
53
54
extern
vsf_rtp_t
VSF_RTP0
;
55
56
/*============================ PROTOTYPES ====================================*/
57
58
// todo: remove cal, calibration is not done in driver layer
59
extern
void
vsf_rtp_init
(
vsf_rtp_t
*rtp,
void
*cal);
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
66
/* EOF */
vsf_rtp_t
Definition
rtp.h:40
uint8_t
unsigned char uint8_t
Definition
lvgl.h:40
ooc_class.h
vsf_class
#define vsf_class(__name)
Definition
ooc_class.h:48
VSF_RTP0
vsf_rtp_t VSF_RTP0
Definition
rtp.c:29
vsf_rtp_init
void vsf_rtp_init(vsf_rtp_t *rtp, void *cal)
Definition
rtp.c:75
tsfilter_t
Definition
tsfilter.h:11
vsf_hal.h
Generated by
1.9.8