PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
Main Page
Modules
Data Structures
Files
File List
Globals
lvd.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2013 Spansion LLC. All Rights Reserved.
3
*
4
* This software is owned and published by:
5
* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion").
6
*
7
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
8
* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
9
*
10
* This software contains source code for use with Spansion
11
* components. This software is licensed by Spansion to be adapted only
12
* for use in systems utilizing Spansion components. Spansion shall not be
13
* responsible for misuse or illegal use of this software for devices not
14
* supported herein. Spansion is providing this software "AS IS" and will
15
* not be responsible for issues arising from incorrect user implementation
16
* of the software.
17
*
18
* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE,
19
* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS),
20
* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING,
21
* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED
22
* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED
23
* WARRANTY OF NONINFRINGEMENT.
24
* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT,
25
* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT
26
* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
27
* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR
28
* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT,
29
* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA,
30
* SAVINGS OR PROFITS,
31
* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32
* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR
33
* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED
34
* FROM, THE SOFTWARE.
35
*
36
* This software may be replicated in part or whole for the licensed use,
37
* with the restriction that this Disclaimer and Copyright notice must be
38
* included with each copy of this software, whether used in part or whole,
39
* at all times.
40
*/
41
/******************************************************************************/
51
#ifndef __LVD_H__
52
#define __LVD_H__
53
54
/******************************************************************************/
55
/* Include files */
56
/******************************************************************************/
57
#include "
pdl.h
"
58
59
#if (defined(PDL_PERIPHERAL_LVD_ACTIVE))
60
61
/* C binding of definitions if building with C++ compiler */
62
#ifdef __cplusplus
63
extern
"C"
64
{
65
#endif
66
88
89
/******************************************************************************/
90
/* Global pre-processor symbols/macros ('#define') */
91
/******************************************************************************/
92
93
/******************************************************************************
94
* Global type definitions
95
******************************************************************************/
96
104
typedef
enum
en_lvd_irq_voltage
105
{
106
LvdIrqVoltage220
= 0,
107
LvdIrqVoltage240
= 1,
108
LvdIrqVoltage245
= 2,
109
LvdIrqVoltage260
= 3,
110
LvdIrqVoltage270
= 4,
111
LvdIrqVoltage280
= 5,
112
LvdIrqVoltage290
= 6,
113
LvdIrqVoltage300
= 7,
114
LvdIrqVoltage320
= 8,
115
LvdIrqVoltage350
= 9,
116
LvdIrqVoltage360
= 10,
117
LvdIrqVoltage370
= 11,
118
LvdIrqVoltage380
= 12,
119
LvdIrqVoltage390
= 13,
120
LvdIrqVoltage400
= 14,
121
LvdIrqVoltage410
= 15,
122
LvdIrqVoltage420
= 16,
123
LvdIrqVoltage430
= 17,
124
LvdIrqVoltage452
= 18
125
}
en_lvd_irq_voltage_t
;
126
131
typedef
struct
stc_lvd_intern_data
132
{
133
func_ptr_t
pfnCallback
;
134
}
stc_lvd_intern_data_t
;
135
142
typedef
struct
stc_lvd_config
143
{
144
en_lvd_irq_voltage_t
enIrqVoltage
;
145
func_ptr_t
pfnCallback
;
146
}
stc_lvd_config_t
;
147
148
/******************************************************************************/
149
/* Global variable definitions ('extern') */
150
/******************************************************************************/
151
152
/******************************************************************************/
153
/* Global function prototypes (definition in C source) */
154
/******************************************************************************/
155
extern
void
LvdIrqHandler
(
void
);
156
157
extern
en_result_t
Lvd_Init
(
stc_lvd_config_t
* pstcConfig);
158
159
extern
en_result_t
Lvd_DeInit
(
void
);
160
161
extern
boolean_t
Lvd_GetIntStatus
(
void
);
162
163
extern
void
Lvd_ClearIntStatus
(
void
);
164
165
extern
boolean_t
Lvd_GetIntOperationStatus
(
void
);
166
168
169
#ifdef __cplusplus
170
}
171
#endif
172
173
#endif
/* #if (defined(PDL_PERIPHERAL_LVD_ACTIVE)) */
174
175
#endif
/* __LVD_H__ */
176
/******************************************************************************/
177
/* EOF (not truncated) */
178
/******************************************************************************/
PDL_1_2
library
driver
lvd
lvd.h
Generated on Wed May 28 2014 09:28:10 for PDL for FM4 by
1.8.3.1