MotorWare f2806x Driver API Documentation

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

pwmdac.h
Go to the documentation of this file.
1 /* --COPYRIGHT--,BSD
2 * Copyright (c) 2015, Texas Instruments Incorporated
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 * --/COPYRIGHT--*/
32 #ifndef _PWMDAC_H_
33 #define _PWMDAC_H_
34
41
42
43 // **************************************************************************
44 // the includes
45
46 #include "sw/drivers/pwm/src/32b/f28x/f2806x/pwm.h"
47
48
53
54
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59
60
61 // **************************************************************************
62 // the defines
63
66 #define PWMDAC_Handle PWM_Handle
67
70 #define PWMDAC_disableDeadBand PWM_disableDeadBand
71
74 #define PWMDAC_disableChopping PWM_disableChopping
75
78 #define PWMDAC_disableTripZones PWM_disableTripZones
79
82 #define PWMDAC_disableCounterLoad PWM_disableCounterLoad
83
86 #define PWMDAC_init PWM_init
87
90 #define PWMDAC_setActionQual_CntDown_CmpA_PwmA PWM_setActionQual_CntDown_CmpA_PwmA
91
94 #define PWMDAC_setActionQual_CntDown_CmpB_PwmB PWM_setActionQual_CntDown_CmpB_PwmB
95
98 #define PWMDAC_setActionQual_CntUp_CmpA_PwmA PWM_setActionQual_CntUp_CmpA_PwmA
99
102 #define PWMDAC_setActionQual_CntUp_CmpB_PwmB PWM_setActionQual_CntUp_CmpB_PwmB
103
106 #define PWMDAC_setClkDiv PWM_setClkDiv
107
110 #define PWMDAC_setCount PWM_setCount
111
114 #define PWMDAC_setCounterMode PWM_setCounterMode
115
118 #define PWMDAC_setHighSpeedClkDiv PWM_setHighSpeedClkDiv
119
122 #define PWMDAC_setLoadMode_CmpA PWM_setLoadMode_CmpA
123
126 #define PWMDAC_setLoadMode_CmpB PWM_setLoadMode_CmpB
127
130 #define PWMDAC_setPeriod PWM_setPeriod
131
134 #define PWMDAC_setPeriodLoad PWM_setPeriodLoad
135
138 #define PWMDAC_setPhase PWM_setPhase
139
142 #define PWMDAC_setPhaseDir PWM_setPhaseDir
143
146 #define PWMDAC_setRunMode PWM_setRunMode
147
150 #define PWMDAC_setShadowMode_CmpA PWM_setShadowMode_CmpA
151
154 #define PWMDAC_setShadowMode_CmpB PWM_setShadowMode_CmpB
155
158 #define PWMDAC_setSyncMode PWM_setSyncMode
159
162 #define PWMDAC_setTripZoneState_TZA PWM_setTripZoneState_TZA
163
166 #define PWMDAC_setTripZoneState_TZB PWM_setTripZoneState_TZB
167
170 #define PWMDAC_setTripZoneState_DCAEVT1 PWM_setTripZoneState_DCAEVT1
171
174 #define PWMDAC_setTripZoneState_DCAEVT2 PWM_setTripZoneState_DCAEVT2
175
178 #define PWMDAC_setTripZoneState_DCBEVT1 PWM_setTripZoneState_DCBEVT1
179
182 #define PWMDAC_write_CmpA PWM_write_CmpA
183
186 #define PWMDAC_write_CmpB PWM_write_CmpB
187
188
189 // **************************************************************************
190 // the typedefs
191
194 typedef enum
195 {
196 PWMDAC_Number_1=0,
197 PWMDAC_Number_2,
198 PWMDAC_Number_3,
199 PWMDAC_Number_4,
200 PWMDAC_Number_5,
201 PWMDAC_Number_6,
202 PWMDAC_Number_7
203 } PWMDAC_Number_e;
204
205
206 // **************************************************************************
207 // the globals
208
209
210 // **************************************************************************
211 // the function prototypes
212
213
214 #ifdef __cplusplus
215 }
216 #endif // extern "C"
217
219 #endif // end of _PWMDAC_H_ definition
220
pwm.h
Contains public interface to various functions related to the pulse width modulation (PWM) object...
PWMDAC_Number_e
PWMDAC_Number_e
Enumeration to define the pulse width modulation digital-to-analog (PWM) numbers. ...
Definition: pwmdac.h:194
PWMDAC_Number_4
Definition: pwmdac.h:199
PWMDAC_Number_6
Definition: pwmdac.h:201
PWMDAC_Number_5
Definition: pwmdac.h:200
PWMDAC_Number_1
Definition: pwmdac.h:196
PWMDAC_Number_3
Definition: pwmdac.h:198
PWMDAC_Number_7
Definition: pwmdac.h:202
PWMDAC_Number_2
Definition: pwmdac.h:197