MSPM0G3507SensorlessFOCMotorControlLibrary  1.0
gateDriver.h
Go to the documentation of this file.
1 /* --COPYRIGHT--,TI
2  * MSP Source and Object Code Software License Agreement
3  *
4  *
5  * IMPORTANT - PLEASE CAREFULLY READ THE FOLLOWING LICENSE AGREEMENT, WHICH IS LEGALLY BINDING. AFTER YOU READ IT, YOU WILL BE ASKED WHETHER YOU ACCEPT AND AGREE TO ITS TERMS. DO NOT CLICK "I ACCEPT" UNLESS: (1) YOU WILL USE THE LICENSED MATERIALS FOR YOUR OWN BENEFIT AND PERSONALLY ACCEPT, AGREE TO AND INTEND TO BE BOUND BY THESE TERMS; OR (2) YOU ARE AUTHORIZED TO, AND INTEND TO BE BOUND BY, THESE TERMS ON BEHALF OF YOUR COMPANY.
6  *
7  *
8  * Important - Read carefully: This Source and Object Code Software License Agreement ("Agreement") is a legal agreement between you and Texas Instruments Incorporated ("TI"). In this Agreement "you" means you personally if you will exercise the rights granted for your own benefit, but it means your company (or you on behalf of your company) if you will exercise the rights granted for your company's benefit. The "Licensed Materials" subject to this Agreement include the software programs and any associated electronic documentation (in each case, in whole or in part) that accompany this Agreement, are set forth in the applicable software manifest and you access "on-line", as well as any updates or upgrades to such software programs or documentation, if any, provided to you at TI's sole discretion. The Licensed Materials are specifically designed and licensed for use solely and exclusively with MSP microcontroller devices manufactured by or for TI ("TI Devices"). By installing, copying or otherwise using the Licensed Materials you agree to abide by the provisions set forth herein. This Agreement is displayed for you to read prior to using the Licensed Materials. If you choose not to accept or agree with these provisions, do not download or install the Licensed Materials.
9  *
10  * Note Regarding Possible Access to Other Licensed Materials: The Licensed Materials may be bundled with software and associated electronic documentation, if any, licensed under terms other than the terms of this Agreement (in whole or in part, "Other Licensed Materials"), including, for example Open Source Software and/or TI-owned or third party Proprietary Software licensed under such other terms. "Open Source Software" means any software licensed under terms requiring that (A) other software ("Proprietary Software") incorporated, combined or distributed with such software or developed using such software: (i) be disclosed or distributed in source code form; or (ii) otherwise be licensed on terms inconsistent with the terms of this Agreement, including but not limited to permitting use of the Proprietary Software on or with devices other than TI Devices, or (B) require the owner of Proprietary Software to license any of its patents to users of the Open Source Software and/or Proprietary Software incorporated, combined or distributed with such Open Source Software or developed using such Open Source Software.
11  *
12  * If by accepting this Agreement, you gain access to Other Licensed Materials, they will be listed in the applicable software manifest. Your use of the Other Licensed Materials is subject to the applicable other licensing terms acknowledgements and disclaimers as specified in the applicable software manifest and/or identified or included with the Other Licensed Materials in the software bundle. For clarification, this Agreement does not limit your rights under, or grant you rights that supersede, the terms of any applicable Other Licensed Materials license agreement. If any of the Other Licensed Materials is Open Source Software that has been provided to you in object code only under terms that obligate TI to provide to you or show you where you can access the source code versions of such Open Source Software, TI will provide to you, or show you where you can access, such source code if you contact TI at Texas Instruments Incorporated, 12500 TI Boulevard, Mail Station 8638, Dallas, Texas 75243, Attention: Contracts Manager, Embedded Processing. In the event you choose not to accept or agree with the terms in any applicable Other Licensed Materials license agreement, you must terminate this Agreement.
13  *
14  * 1. License Grant and Use Restrictions.
15  *
16  * a. Licensed Materials License Grant. Subject to the terms of this Agreement, TI hereby grants to you a limited, non-transferable, non-exclusive, non-assignable, non-sublicensable, fully paid-up and royalty-free license to:
17  *
18  * i. Limited Source Code License: make copies, prepare derivative works, display internally and use internally the Licensed Materials provided to you in source code for the sole purpose of developing object and executable versions of such Licensed Materials, or any derivative thereof, that execute solely and exclusively on TI Devices, for end use in Licensee Products, and maintaining and supporting such Licensed Materials, or any derivative thereof, and Licensee Products. For purposes of this Agreement, "Licensee Product" means a product that consists of both hardware, including one or more TI Devices, and software components, including only executable versions of the Licensed Materials that execute solely and exclusively on such TI Devices.
19  *
20  * ii. Object Code Evaluation, Testing and Use License: make copies, display internally, distribute internally and use internally the Licensed Materials in object code for the sole purposes of evaluating and testing the Licensed Materials and designing and developing Licensee Products, and maintaining and supporting the Licensee Products;
21  *
22  * iii. Demonstration License: demonstrate to third parties the Licensed Materials executing solely and exclusively on TI Devices as they are used in Licensee Products, provided that such Licensed Materials are demonstrated in object or executable versions only and
23  *
24  * iv. Production and Distribution License: make, use, import, export and otherwise distribute the Licensed Materials as part of a Licensee Product, provided that such Licensee Products include only embedded executable copies of such Licensed Materials that execute solely and exclusively on TI Devices.
25  *
26  * b. Contractors. The licenses granted to you hereunder shall include your on-site and off-site contractors (either an individual or entity), while such contractors are performing work for or providing services to you, provided that such contractors have executed work-for-hire agreements with you containing applicable terms and conditions consistent with the terms and conditions set forth in this Agreement and provided further that you shall be liable to TI for any breach by your contractors of this Agreement to the same extent as you would be if you had breached the Agreement yourself.
27  *
28  * c. No Other License. Nothing in this Agreement shall be construed as a license to any intellectual property rights of TI other than those rights embodied in the Licensed Materials provided to you by TI. EXCEPT AS PROVIDED HEREIN, NO OTHER LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY OTHER TI INTELLECTUAL PROPERTY RIGHTS IS GRANTED HEREIN.
29  *
30  * d. Covenant not to Sue. During the term of this Agreement, you agree not to assert a claim against TI or its licensees that the Licensed Materials infringe your intellectual property rights.
31  *
32  * e. Restrictions. You shall maintain the source code versions of the Licensed Materials under password control protection and shall not disclose such source code versions of the Licensed Materials, to any person other than your employees and contractors whose job performance requires access. You shall not use the Licensed Materials with a processing device other than a TI Device, and you agree that any such unauthorized use of the Licensed Materials is a material breach of this Agreement. You shall not use the Licensed Materials for the purpose of analyzing or proving infringement of any of your patents by either TI or TI's customers. Except as expressly provided in this Agreement, you shall not copy, publish, disclose, display, provide, transfer or make available the Licensed Materials to any third party and you shall not sublicense, transfer, or assign the Licensed Materials or your rights under this Agreement to any third party. You shall not mortgage, pledge or encumber the Licensed Materials in any way. You may use the Licensed Materials with Open Source Software or with software developed using Open Source Software tools provided you do not incorporate, combine or distribute the Licensed Materials in a manner that subjects the Licensed Materials to any license obligations or any other intellectual property related terms of any license governing such Open Source Software.
33  *
34  * f. Termination. This Agreement is effective on the date the Licensed Materials are delivered to you together with this Agreement and will remain in full force and effect until terminated. You may terminate this Agreement at any time by written notice to TI. Without prejudice to any other rights, if you fail to comply with the terms of this Agreement or you are acquired, TI may terminate your right to use the Licensed Materials upon written notice to you. Upon termination of this Agreement, you will destroy any and all copies of the Licensed Materials in your possession, custody or control and provide to TI a written statement signed by your authorized representative certifying such destruction. Except for Sections 1(a), 1(b) and 1(d), all provisions of this Agreement shall survive termination of this Agreement.
35  *
36  * 2. Licensed Materials Ownership. The Licensed Materials are licensed, not sold to you, and can only be used in accordance with the terms of this Agreement. Subject to the licenses granted to you pursuant to this Agreement, TI and its licensors own and shall continue to own all right, title and interest in and to the Licensed Materials, including all copies thereof. You agree that all fixes, modifications and improvements to the Licensed Materials conceived of or made by TI that are based, either in whole or in part, on your feedback, suggestions or recommendations are the exclusive property of TI and all right, title and interest in and to such fixes, modifications or improvements to the Licensed Materials will vest solely in TI. Moreover, you acknowledge and agree that when your independently developed software or hardware components are combined, in whole or in part, with the Licensed Materials, your right to use the combined work that includes the Licensed Materials remains subject to the terms and conditions of this Agreement.
37  *
38  * 3. Intellectual Property Rights.
39  *
40  * a. The Licensed Materials contain copyrighted material, trade secrets and other proprietary information of TI and its licensors and are protected by copyright laws, international copyright treaties, and trade secret laws, as well as other intellectual property laws. To protect TI's and its licensors' rights in the Licensed Materials, you agree, except as specifically permitted by statute by a provision that cannot be waived by contract, not to "unlock", decompile, reverse engineer, disassemble or otherwise translate to a human-perceivable form any portions of the Licensed Materials provided to you in object code format only, nor permit any person or entity to do so. You shall not remove, alter, cover, or obscure any confidentiality, trade secret, trade mark, patent, copyright or other proprietary notice or other identifying marks or designs from any component of the Licensed Materials and you shall reproduce and include in all copies of the Licensed Materials the copyright notice(s) and proprietary legend(s) of TI and its licensors as they appear in the Licensed Materials. TI reserves all rights not specifically granted under this Agreement.
41  *
42  * b. Certain Licensed Materials may be based on industry recognized standards or software programs published by industry recognized standards bodies and certain third parties may claim to own patents, copyrights, and other intellectual property rights that cover implementation of those standards. You acknowledge and agree that this Agreement does not convey a license to any such third party patents, copyrights, and other intellectual property rights and that you are solely responsible for any patent, copyright, or other intellectual property right claim that relates to your use or distribution of the Licensed Materials or your use or distribution of your products that include or incorporate the Licensed Materials. Moreover, you acknowledge that you are responsible for any fees or royalties that may be payable to any third party based on such third party's interests in the Licensed Materials or any intellectual property rights that cover implementation of any industry recognized standard, any software program published by any industry recognized standards bodies or any other proprietary technology.
43  *
44  * 4. Confidential Information. You acknowledge and agree that the Licensed Materials contain trade secrets and other confidential information of TI and its licensors. You agree to use the Licensed Materials solely within the scope of the licenses set forth herein, to maintain the Licensed Materials in strict confidence, to use at least the same procedures and degree of care that you use to prevent disclosure of your own confidential information of like importance but in no instance less than reasonable care, and to prevent disclosure of the Licensed Materials to any third party, except as may be necessary and required in connection with your rights and obligations hereunder; provided, however, that you may not provide the Licensed Materials to any business organization or group within your company or to customers or contractors that design or manufacture semiconductors unless TI gives written consent. You agree to obtain executed confidentiality agreements with your employees and contractors having access to the Licensed Materials and to diligently take steps to enforce such agreements in this respect. TI may disclose your contact information to TI's licensors.
45  *
46  * 5. Warranties and Limitations. THE LICENSED MATERIALS ARE PROVIDED "AS IS". FURTHERMORE, YOU ACKNOWLEDGE AND AGREE THAT THE LICENSED MATERIALS HAVE NOT BEEN TESTED OR CERTIFIED BY ANY GOVERNMENT AGENCY OR INDUSTRY REGULATORY ORGANIZATION OR ANY OTHER THIRD PARTY ORGANIZATION. YOU AGREE THAT PRIOR TO USING, INCORPORATING OR DISTRIBUTING THE LICENSED MATERIALS IN OR WITH ANY COMMERCIAL PRODUCT THAT YOU WILL THOROUGHLY TEST THE PRODUCT AND THE FUNCTIONALITY OF THE LICENSED MATERIALS IN OR WITH THAT PRODUCT AND BE SOLELY RESPONSIBLE FOR ANY PROBLEMS OR FAILURES.
47  *
48  * TI AND ITS LICENSORS MAKE NO WARRANTY OR REPRESENTATION, EITHER EXPRESS, IMPLIED OR STATUTORY, REGARDING THE LICENSED MATERIALS, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADE SECRETS OR OTHER INTELLECTUAL PROPERTY RIGHTS. YOU AGREE TO USE YOUR INDEPENDENT JUDGMENT IN DEVELOPING YOUR PRODUCTS. NOTHING CONTAINED IN THIS AGREEMENT WILL BE CONSTRUED AS A WARRANTY OR REPRESENTATION BY TI TO MAINTAIN PRODUCTION OF ANY TI SEMICONDUCTOR DEVICE OR OTHER HARDWARE OR SOFTWARE WITH WHICH THE LICENSED MATERIALS MAY BE USED.
49  *
50  * IN NO EVENT SHALL TI OR ITS LICENSORS, BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED, ON ANY THEORY OF LIABILITY, IN CONNECTION WITH OR ARISING OUT OF THIS AGREEMENT OR THE USE OF THE LICENSED MATERIALS REGARDLESS OF WHETHER TI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF REMOVAL OR REINSTALLATION, OUTSIDE COMPUTER TIME, LABOR COSTS, LOSS OF DATA, LOSS OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR LOSS OF USE OR INTERRUPTION OF BUSINESS. IN NO EVENT WILL TI'S OR ITS LICENSORS' AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF YOUR USE OF THE LICENSED MATERIALS EXCEED FIVE HUNDRED U.S. DOLLARS (US$500).
51  *
52  * Because some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages or limitation on how long an implied warranty lasts, the above limitations or exclusions may not apply to you.
53  *
54  * 6. Indemnification Disclaimer. YOU ACKNOWLEDGE AND AGREE THAT TI SHALL NOT BE LIABLE FOR AND SHALL NOT DEFEND OR INDEMNIFY YOU AGAINST ANY THIRD PARTY INFRINGEMENT CLAIM THAT RELATES TO OR IS BASED ON YOUR MANUFACTURE, USE, OR DISTRIBUTION OF THE LICENSED MATERIALS OR YOUR MANUFACTURE, USE, OFFER FOR SALE, SALE, IMPORTATION OR DISTRIBUTION OF YOUR PRODUCTS THAT INCLUDE OR INCORPORATE THE LICENSED MATERIALS.
55  *
56  * 7. No Technical Support. TI and its licensors are under no obligation to install, maintain or support the Licensed Materials.
57  *
58  * 8. Notices. All notices to TI hereunder shall be delivered to Texas Instruments Incorporated, 12500 TI Boulevard, Mail Station 8638, Dallas, Texas 75243, Attention: Contracts Manager - Embedded Processing, with a copy to Texas Instruments Incorporated, 13588 N. Central Expressway, Mail Station 3999, Dallas, Texas 75243, Attention: Law Department - Embedded Processing. All notices shall be deemed served when received by TI.
59  *
60  * 9. Export Control. The Licensed Materials are subject to export control under the U.S. Commerce Department's Export Administration Regulations ("EAR"). Unless prior authorization is obtained from the U.S. Commerce Department, neither you nor your subsidiaries shall export, re-export, or release, directly or indirectly (including, without limitation, by permitting the Licensed Materials to be downloaded), any technology, software, or software source code, received from TI, or export, directly or indirectly, any direct product of such technology, software, or software source code, to any person, destination or country to which the export, re-export, or release of the technology, software, or software source code, or direct product is prohibited by the EAR. You represent and warrant that you (i) are not located in, or under the control of, a national or resident of Cuba, Iran, North Korea, Sudan and Syria or any other country subject to a U.S. goods embargo; (ii) are not on the U.S. Treasury Department's List of Specially Designated Nationals or the U.S. Commerce Department's Denied Persons List or Entity List; and (iii) will not use the Licensed Materials or transfer the Licensed Materials for use in any military, nuclear, chemical or biological weapons, or missile technology end-uses. Any software export classification made by TI shall not be construed as a representation or warranty regarding the proper export classification for such software or whether an export license or other documentation is required for the exportation of such software.
61  *
62  * 10. Governing Law and Severability; Waiver. This Agreement will be governed by and interpreted in accordance with the laws of the State of Texas, without reference to conflict of laws principles. If for any reason a court of competent jurisdiction finds any provision of the Agreement to be unenforceable, that provision will be enforced to the maximum extent possible to effectuate the intent of the parties, and the remainder of the Agreement shall continue in full force and effect. This Agreement shall not be governed by the United Nations Convention on Contracts for the International Sale of Goods, or by the Uniform Computer Information Transactions Act (UCITA). The parties agree that non-exclusive jurisdiction for any dispute arising out of or relating to this Agreement lies within the courts located in the State of Texas. Notwithstanding the foregoing, any judgment may be enforced in any United States or foreign court, and either party may seek injunctive relief in any United States or foreign court. Failure by TI to enforce any provision of this Agreement shall not be deemed a waiver of future enforcement of that or any other provision in this Agreement or any other agreement that may be in place between the parties.
63  *
64  * 11. PRC Provisions. If you are located in the People's Republic of China ("PRC") or if the Licensed Materials will be sent to the PRC, the following provisions shall apply:
65  *
66  * a. Registration Requirements. You shall be solely responsible for performing all acts and obtaining all approvals that may be required in connection with this Agreement by the government of the PRC, including but not limited to registering pursuant to, and otherwise complying with, the PRC Measures on the Administration of Software Products, Management Regulations on Technology Import-Export, and Technology Import and Export Contract Registration Management Rules. Upon receipt of such approvals from the government authorities, you shall forward evidence of all such approvals to TI for its records. In the event that you fail to obtain any such approval or registration, you shall be solely responsible for any and all losses, damages or costs resulting therefrom, and shall indemnify TI for all such losses, damages or costs.
67  *
68  * b. Governing Language. This Agreement is written and executed in the English language and shall be authoritative and controlling, whether or not translated into a language other than English to comply with law or for reference purposes. If a translation of this Agreement is required for any purpose, including but not limited to registration of the Agreement pursuant to any governmental laws, regulations or rules, you shall be solely responsible for creating such translation.
69  *
70  * 12. Contingencies. TI shall not be in breach of this Agreement and shall not be liable for any non-performance or delay in performance if such non-performance or delay is due to a force majeure event or other circumstances beyond TI's reasonable control.
71  *
72  * 13. Entire Agreement. This is the entire agreement between you and TI and this Agreement supersedes any prior agreement between the parties related to the subject matter of this Agreement. Notwithstanding the foregoing, any signed and effective software license agreement relating to the subject matter hereof and stating expressly that such agreement shall control regardless of any subsequent click-wrap, shrink-wrap or web-wrap, shall supersede the terms of this Agreement. No amendment or modification of this Agreement will be effective unless in writing and signed by a duly authorized representative of TI. You hereby warrant and represent that you have obtained all authorizations and other applicable consents required empowering you to enter into this Agreement.
73  *
74  * --/COPYRIGHT--*/
75 /*!****************************************************************************
76  * @file gateDriver.h
77  * @brief Gate Driver Module
78  *
79  *
80  * @anchor gateDriver_h
81  * # Overview
82  *
83  * defines gateDriver APIs
84  *
85  * <hr>
86  ******************************************************************************/
87 
88 #ifndef GATEDRIVER_H
89 #define GATEDRIVER_H
90 
91 #include "measure.h"
92 #include "ti_msp_dl_config.h"
93 #include "appInputCtrlInterface.h"
94 
95 #ifdef __cplusplus
96 extern "C" {
97 #endif
98 
100 #define FOC_CURR_ADC0_INST (ADC0_INST)
101 
102 #define FOC_CURR_ADC1_INST (ADC1_INST)
103 
105 #define FOC_ADC0_INST (ADC0_INST)
106 
107 #define FOC_ADC1_INST (ADC1_INST)
108 
110 #define ADC0_IDX_0 (ADC0_ADCMEM_0)
111 
112 #define ADC0_IDX_1 (ADC0_ADCMEM_1)
113 
114 #define ADC0_IDX_2 (ADC0_ADCMEM_2)
115 
116 #define ADC1_IDX_0 (ADC1_ADCMEM_0)
117 
118 #define ADC1_IDX_1 (ADC1_ADCMEM_1)
119 
120 #define ADC1_IDX_2 (ADC1_ADCMEM_2)
121 
123 #define FOC_CURR_ADC0_IDX_0 (ADC0_ADCMEM_0)
124 
125 #define FOC_CURR_ADC0_IDX_1 (ADC0_ADCMEM_1)
126 
127 #define FOC_CURR_ADC0_IDX_2 (ADC0_ADCMEM_2)
128 
129 #define FOC_CURR_ADC1_IDX_0 (ADC1_ADCMEM_0)
130 
131 #define FOC_CURR_ADC1_IDX_1 (ADC1_ADCMEM_1)
132 
133 #define FOC_CURR_ADC1_IDX_2 (ADC1_ADCMEM_2)
134 
135 #ifdef DRV8329
136 #include "drv8329.h"
137 
139 #define FOC_CAPTURE_IPD_INST (CAPTURE_INST)
140 
141 #define FOC_CAPTURE_IPD_IDX (DL_TIMER_CC_0_INDEX)
142 
143 #define FOC_CAPTURE_IPD_LOAD_VALUE (CAPTURE_INST_LOAD_VALUE)
144 
145 #define FOC_CAPTURE_IRQN (CAPTURE_INST_INT_IRQN)
146 
147 #define FOC_IPD_EVENT_CH (CAPTURE_INST_SUB_0_CH)
148 
150 #define FG_OUTPUT_ENABLE
151 
152 #ifdef FOC_GPIO_OUT_PORT
153 
154 #define DRV8329_NSLEEP_PORT FOC_GPIO_OUT_PORT
155 #else
156 
157 #define DRV8329_NSLEEP_PORT FOC_GPIO_OUT_NSLEEP_PORT
158 #endif
159 
161 #define DRV8329_NSLEEP_PIN FOC_GPIO_OUT_NSLEEP_PIN
162 
164 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C2_IDX)
165 
166 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
167 
168 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
169 
171 #define FOC_PWMA0_U_B_IDX (DL_TIMER_CC_0_INDEX)
172 
173 #define FOC_PWMA0_V_B_IDX (DL_TIMER_CC_4_INDEX)
174 
175 #define FOC_PWMA0_W_B_IDX (DL_TIMER_CC_5_INDEX)
176 
177 #define FOC_ADC_TRIG_0_IDX (DL_TIMER_CC_0_INDEX)
178 
179 #define FOC_ADC_TRIG_1_IDX (DL_TIMER_CC_1_INDEX)
180 
182 #define FOC_ADC_ISR_INST (ADC0_INST)
183 
184 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM0_RESULT_LOADED
185 
187 #define ADC_FIRST_IDX (DL_ADC12_MEM_IDX_0)
188 
189 #define ADC_SECOND_IDX (DL_ADC12_MEM_IDX_1)
190 
192 #define FOC_CURR_ADC_INSTANCE (ADC1_INST)
193 
195 #define ADC_DC_CURRENT_CH (DL_ADC12_INPUT_CHAN_2)
196 
198 #define FOC_ADC_VOLT_DC_INST (ADC1_INST)
199 
200 #define ADC_VOLT_DC_IDX (ADC1_ADCMEM_2)
201 
203 #define ADC_VOLTAGE_U_INST (ADC1_INST)
204 
205 #define ADC_VOLTAGE_V_INST (ADC0_INST)
206 
207 #define ADC_VOLTAGE_W_INST (ADC1_INST)
208 
210 #define ADC_VOLTAGE_U_IDX (ADC1_ADCMEM_0)
211 
212 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_0)
213 
214 #define ADC_VOLTAGE_W_IDX (ADC1_ADCMEM_1)
215 
217 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_6)
218 
219 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_7)
220 
221 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_5)
222 #endif
223 
224 #ifdef DRV8323
225 #include "drv8323_spi_hal.h"
226 #include "drv8323.h"
227 
229 #define FOC_CAPTURE_IPD_INST (CAPTURE_INST)
230 
231 #define FOC_CAPTURE_IPD_IDX (DL_TIMER_CC_0_INDEX)
232 
233 #define FOC_CAPTURE_IPD_LOAD_VALUE (CAPTURE_INST_LOAD_VALUE)
234 
235 #define FOC_CAPTURE_IRQN (CAPTURE_INST_INT_IRQN)
236 
237 #define FOC_IPD_EVENT_CH (CAPTURE_INST_SUB_0_CH)
238 
239 #ifndef __CURRENT_SINGLE_SHUNT
240 
242 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C2_IDX)
243 
244 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
245 
246 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
247 
248 #define FOC_PWMA0_ADC_TRIG_IDX (GPIO_PWMA0_C0_IDX)
249 
251 #define FOC_PWMA0_ADC_TRIG_UP_EVENT (DL_TIMERA_EVENT_CC0_UP_EVENT)
252 
253 #define FOC_PWMA0_ADC_TRIG_DN_EVENT (DL_TIMERA_EVENT_CC0_DN_EVENT)
254 
256 #define FOC_ADC_ISR_INST (ADC0_INST)
257 
258 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM1_RESULT_LOADED
259 
261 #define ADC1_CURRENT_U_CH (DL_ADC12_INPUT_CHAN_2)
262 
263 #define ADC0_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_3)
264 
265 #define ADC1_CURRENT_W_CH (DL_ADC12_INPUT_CHAN_3)
266 
267 #else
268 
270 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C2_IDX)
271 
272 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
273 
274 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
275 
277 #define FOC_PWMA0_U_B_IDX (DL_TIMER_CC_5_INDEX)
278 
279 #define FOC_PWMA0_V_B_IDX (DL_TIMER_CC_0_INDEX)
280 
281 #define FOC_PWMA0_W_B_IDX (DL_TIMER_CC_4_INDEX)
282 
283 #define FOC_ADC_TRIG_0_IDX (DL_TIMER_CC_0_INDEX)
284 
285 #define FOC_ADC_TRIG_1_IDX (DL_TIMER_CC_1_INDEX)
286 
288 #define FOC_ADC_ISR_INST ADC0_INST
289 
290 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM0_RESULT_LOADED
291 
293 #define ADC0_DC_CURRENT_CH (DL_ADC12_INPUT_CHAN_3)
294 
295 #define ADC1_DC_CURRENT_CH (DL_ADC12_INPUT_CHAN_3)
296 #endif
297 
299 #define FOC_ADC_VOLT_DC_INST (ADC0_INST)
300 
301 #define ADC_VOLT_DC_IDX (ADC0_ADCMEM_1)
302 
304 #define ADC_VOLTAGE_U_INST (ADC1_INST)
305 
306 #define ADC_VOLTAGE_V_INST (ADC0_INST)
307 
308 #define ADC_VOLTAGE_W_INST (ADC1_INST)
309 
311 #define ADC_VOLTAGE_U_IDX (ADC1_ADCMEM_0)
312 
313 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_0)
314 
315 #define ADC_VOLTAGE_W_IDX (ADC1_ADCMEM_1)
316 
318 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_6)
319 
320 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_7)
321 
322 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_5)
323 #endif
324 
325 #ifdef DRV8316
326 #include "drv8316_spi_hal.h"
327 #include "drv8316.h"
328 
329 #ifdef FOC_GPIO_OUT_PORT
330 
331 #define DRV8316_SPI_NSCS_PORT FOC_GPIO_OUT_PORT
332 #else
333 
334 #define DRV8316_SPI_NSCS_PORT FOC_GPIO_OUT_NSCS_PORT
335 #endif
336 
338 #define DRV8316_SPI_NSCS_PIN FOC_GPIO_OUT_NSCS_PIN
339 
341 #define FOC_CAPTURE_IPD_INST (CAPTURE_INST)
342 
343 #define FOC_CAPTURE_IPD_IDX (DL_TIMER_CC_0_INDEX)
344 
345 #define FOC_CAPTURE_IPD_LOAD_VALUE (CAPTURE_INST_LOAD_VALUE)
346 
347 #define FOC_CAPTURE_IRQN (CAPTURE_INST_INT_IRQN)
348 
349 #define FOC_IPD_EVENT_CH (CAPTURE_INST_SUB_0_CH)
350 
352 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C2_IDX)
353 
354 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
355 
356 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
357 
358 #define FOC_PWMA0_ADC_TRIG_IDX (GPIO_PWMA0_C0_IDX)
359 
361 #define FOC_PWMA0_ADC_TRIG_UP_EVENT (DL_TIMERA_EVENT_CC0_UP_EVENT)
362 
363 #define FOC_PWMA0_ADC_TRIG_DN_EVENT (DL_TIMERA_EVENT_CC0_DN_EVENT)
364 
366 #define FOC_ADC_ISR_INST (ADC0_INST)
367 
368 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM1_RESULT_LOADED
369 
371 #define FOC_ADC_VOLT_DC_INST (ADC1_INST)
372 
373 #define ADC_VOLT_DC_IDX (ADC1_ADCMEM_2)
374 
376 #define ADC0_CURRENT_U_CH (DL_ADC12_INPUT_CHAN_3)
377 
378 #define ADC0_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_2)
379 
380 #define ADC1_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_2)
381 
382 #define ADC1_CURRENT_W_CH (DL_ADC12_INPUT_CHAN_1)
383 
385 #define ADC_VOLTAGE_U_INST (ADC1_INST)
386 
387 #define ADC_VOLTAGE_V_INST (ADC0_INST)
388 
389 #define ADC_VOLTAGE_W_INST (ADC1_INST)
390 
392 #define ADC_VOLTAGE_U_IDX (ADC1_ADCMEM_0)
393 
394 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_0)
395 
396 #define ADC_VOLTAGE_W_IDX (ADC1_ADCMEM_1)
397 
399 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_6)
400 
401 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_7)
402 
403 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_5)
404 
405 #endif
406 
407 #ifdef TIDA010950
408 #include "drv8316_spi_hal.h"
409 #include "drv8316.h"
410 
411 #define ISD_DISABLE
412 #define NO_DIRECTION_PIN_SUPPORT
413 #define NO_BRAKE_PIN_SUPPORT
414 
415 #define FOC_ISR_ADC1
416 #ifdef FOC_GPIO_OUT_PORT
417 
418 #define DRV8316_SPI_NSCS_PORT FOC_GPIO_OUT_PORT
419 #else
420 
421 #define DRV8316_SPI_NSCS_PORT FOC_GPIO_OUT_NSCS_PORT
422 #endif
423 
425 #define DRV8316_SPI_NSCS_PIN FOC_GPIO_OUT_NSCS_PIN
426 
428 #define __NO_DRV_FAULT
429 
431 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C2_IDX)
432 
433 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
434 
435 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
436 
437 #define FOC_PWMA0_ADC_TRIG_IDX (GPIO_PWMA0_C0_IDX)
438 
440 #define FOC_PWMA0_ADC_TRIG_UP_EVENT (DL_TIMERA_EVENT_CC0_UP_EVENT)
441 
442 #define FOC_PWMA0_ADC_TRIG_DN_EVENT (DL_TIMERA_EVENT_CC0_DN_EVENT)
443 
445 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM2_RESULT_LOADED
446 
448 #define FOC_ADC_VOLT_DC_INST (ADC0_INST)
449 
450 #define ADC_VOLT_DC_IDX (ADC0_ADCMEM_0)
451 
453 #define ADC1_CURRENT_U_CH (DL_ADC12_INPUT_CHAN_4)
454 
455 #define ADC1_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_5)
456 
457 #define ADC1_CURRENT_W_CH (DL_ADC12_INPUT_CHAN_6)
458 
459 
460 #endif
461 
462 #ifdef TIDA010250
463 #include "tida010250.h"
464 
466 #define FOC_CAPTURE_IPD_INST (CAPTURE_INST)
467 
468 #define FOC_CAPTURE_IPD_IDX (DL_TIMER_CC_0_INDEX)
469 
470 #define FOC_CAPTURE_IPD_LOAD_VALUE (CAPTURE_INST_LOAD_VALUE)
471 
472 #define FOC_CAPTURE_IRQN (CAPTURE_INST_INT_IRQN)
473 
474 #define FOC_IPD_EVENT_CH (CAPTURE_INST_SUB_0_CH)
475 
476 #ifdef FOC_GPIO_OUT_PORT
477 
478 #define FOC_RELAY_PORT FOC_GPIO_OUT_PORT
479 #else
480 
481 #define FOC_RELAY_PORT FOC_GPIO_OUT_RELAY_PORT
482 #endif
483 
484 #define FOC_RELAY_PIN FOC_GPIO_OUT_RELAY_PIN
485 
487 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C0_IDX)
488 
489 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
490 
491 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
492 
493 #define FOC_PWMA0_ADC_TRIG_IDX (GPIO_PWMA0_C2_IDX)
494 
496 #define FOC_PWMA0_ADC_TRIG_UP_EVENT (DL_TIMERA_EVENT_CC2_UP_EVENT)
497 
498 #define FOC_PWMA0_ADC_TRIG_DN_EVENT (DL_TIMERA_EVENT_CC2_DN_EVENT)
499 
501 #define FOC_ADC_ISR_INST (ADC0_INST)
502 
503 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM2_RESULT_LOADED
504 
506 #define ADC1_CURRENT_U_CH (DL_ADC12_INPUT_CHAN_6)
507 
508 #define ADC1_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_5)
509 
510 #define ADC1_CURRENT_W_CH (DL_ADC12_INPUT_CHAN_4)
511 
513 #define FOC_ADC_VOLT_DC_INST (ADC0_INST)
514 
515 #define ADC_VOLT_DC_IDX (ADC0_ADCMEM_3)
516 
518 #define ADC_VOLTAGE_U_INST (ADC0_INST)
519 
520 #define ADC_VOLTAGE_V_INST (ADC0_INST)
521 
522 #define ADC_VOLTAGE_W_INST (ADC0_INST)
523 
525 #define PHASE_VOLTAGE_SENSE_DISABLED
526 
528 #define ADC_VOLTAGE_U_IDX (ADC0_ADCMEM_0)
529 
530 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_1)
531 
532 #define ADC_VOLTAGE_W_IDX (ADC0_ADCMEM_2)
533 
535 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_2)
536 
537 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_3)
538 
539 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_5)
540 
541 #endif
542 
543 #ifdef TIDA010265
544 #include "tida010265.h"
545 
547 #define FOC_CAPTURE_IPD_INST (CAPTURE_INST)
548 
549 #define FOC_CAPTURE_IPD_IDX (DL_TIMER_CC_0_INDEX)
550 
551 #define FOC_CAPTURE_IPD_LOAD_VALUE (CAPTURE_INST_LOAD_VALUE)
552 
553 #define FOC_CAPTURE_IRQN (CAPTURE_INST_INT_IRQN)
554 
555 #define FOC_IPD_EVENT_CH (CAPTURE_INST_SUB_0_CH)
556 
557 #ifdef FOC_GPIO_OUT_PORT
558 
559 #define FOC_RELAY_PORT FOC_GPIO_OUT_PORT
560 #else
561 
562 #define FOC_RELAY_PORT FOC_GPIO_OUT_RELAY_PORT
563 #endif
564 
565 #define FOC_RELAY_PIN FOC_GPIO_OUT_RELAY_PIN
566 
567 #ifndef __CURRENT_SINGLE_SHUNT
568 
570 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C0_IDX)
571 
572 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
573 
574 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
575 
576 #define FOC_PWMA0_ADC_TRIG_IDX (GPIO_PWMA0_C2_IDX)
577 
579 #define FOC_PWMA0_ADC_TRIG_UP_EVENT (DL_TIMERA_EVENT_CC2_UP_EVENT)
580 
581 #define FOC_PWMA0_ADC_TRIG_DN_EVENT (DL_TIMERA_EVENT_CC2_DN_EVENT)
582 
584 #define FOC_ADC_ISR_INST (ADC0_INST)
585 
586 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM1_RESULT_LOADED
587 
589 #define ADC0_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_13)
590 
591 #define ADC1_CURRENT_W_CH (DL_ADC12_INPUT_CHAN_13)
592 
593 #else
594 
596 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C0_IDX)
597 
598 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
599 
600 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
601 
603 #define FOC_PWMA0_U_B_IDX (DL_TIMER_CC_2_INDEX)
604 
605 #define FOC_PWMA0_V_B_IDX (DL_TIMER_CC_4_INDEX)
606 
607 #define FOC_PWMA0_W_B_IDX (DL_TIMER_CC_5_INDEX)
608 
609 #define FOC_ADC_TRIG_0_IDX (DL_TIMER_CC_0_INDEX)
610 
611 #define FOC_ADC_TRIG_1_IDX (DL_TIMER_CC_1_INDEX)
612 
614 #define FOC_ADC_ISR_INST (ADC0_INST)
615 
616 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM1_RESULT_LOADED
617 
619 #define ADC0_DC_CURRENT_CH (DL_ADC12_INPUT_CHAN_7)
620 
621 #define ADC1_DC_CURRENT_CH (DL_ADC12_INPUT_CHAN_13)
622 #endif
623 
625 #define FOC_ADC_VOLT_DC_INST (ADC1_INST)
626 
627 #define ADC_VOLT_DC_IDX (ADC1_ADCMEM_2)
628 
630 #define ADC_VOLTAGE_U_INST (ADC1_INST)
631 
632 #define ADC_VOLTAGE_V_INST (ADC0_INST)
633 
634 #define ADC_VOLTAGE_W_INST (ADC1_INST)
635 
637 #define ADC_VOLTAGE_U_IDX (ADC1_ADCMEM_0)
638 
639 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_0)
640 
641 #define ADC_VOLTAGE_W_IDX (ADC1_ADCMEM_1)
642 
644 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_5)
645 
646 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_6)
647 
648 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_7)
649 
650 #endif
651 
652 #ifdef CUSTOM
653 #include "custom.h"
654 
656 #define FOC_CAPTURE_IPD_INST (CAPTURE_INST)
657 
658 #define FOC_CAPTURE_IPD_IDX (DL_TIMER_CC_0_INDEX)
659 
660 #define FOC_CAPTURE_IPD_LOAD_VALUE (CAPTURE_INST_LOAD_VALUE)
661 
662 #define FOC_CAPTURE_IRQN (CAPTURE_INST_INT_IRQN)
663 
664 #define FOC_IPD_EVENT_CH (CAPTURE_INST_SUB_0_CH)
665 
667 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C2_IDX)
668 
669 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C3_IDX)
670 
671 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C1_IDX)
672 
673 #define FOC_PWMA0_ADC_TRIG_IDX (GPIO_PWMA0_C0_IDX)
674 
676 #define FOC_PWMA0_ADC_TRIG_UP_EVENT (DL_TIMERA_EVENT_CC0_UP_EVENT)
677 
678 #define FOC_PWMA0_ADC_TRIG_DN_EVENT (DL_TIMERA_EVENT_CC0_DN_EVENT)
679 
681 #define FOC_ADC_ISR_INST (ADC0_INST)
682 
683 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM1_RESULT_LOADED
684 
686 #define FOC_ADC_VOLT_DC_INST (ADC1_INST)
687 
688 #define ADC_VOLT_DC_IDX (ADC1_ADCMEM_2)
689 
691 #define ADC0_CURRENT_U_CH (DL_ADC12_INPUT_CHAN_3)
692 
693 #define ADC0_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_1)
694 
695 #define ADC1_CURRENT_V_CH (DL_ADC12_INPUT_CHAN_2)
696 
697 #define ADC1_CURRENT_W_CH (DL_ADC12_INPUT_CHAN_1)
698 
700 #define ADC_VOLTAGE_U_INST (ADC1_INST)
701 
702 #define ADC_VOLTAGE_V_INST (ADC0_INST)
703 
704 #define ADC_VOLTAGE_W_INST (ADC1_INST)
705 
707 #define ADC_VOLTAGE_U_IDX (ADC1_ADCMEM_0)
708 
709 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_0)
710 
711 #define ADC_VOLTAGE_W_IDX (ADC1_ADCMEM_1)
712 
714 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_6)
715 
716 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_7)
717 
718 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_5)
719 #endif
720 
721 #ifdef TIDA010251
722 #include "tida010251.h"
723 
725 #define NO_BRAKE_PIN_SUPPORT
726 
728 #define NO_DIRECTION_PIN_SUPPORT
729 
730 #define FOC_PWMA0_U_IDX (GPIO_PWMA0_C0_IDX)
731 
732 #define FOC_PWMA0_V_IDX (GPIO_PWMA0_C2_IDX)
733 
734 #define FOC_PWMA0_W_IDX (GPIO_PWMA0_C3_IDX)
735 
737 #define FOC_PWMA0_U_B_IDX (DL_TIMER_CC_1_INDEX)
738 
739 #define FOC_PWMA0_V_B_IDX (DL_TIMER_CC_4_INDEX)
740 
741 #define FOC_PWMA0_W_B_IDX (DL_TIMER_CC_5_INDEX)
742 
743 #define FOC_ADC_TRIG_0_IDX (DL_TIMER_CC_0_INDEX)
744 
745 #define FOC_ADC_TRIG_1_IDX (DL_TIMER_CC_1_INDEX)
746 
748 #define FOC_ADC_MEM_RES_LOAD DL_ADC12_IIDX_MEM1_RESULT_LOADED
749 
751 #define FOC_CURR_ADC_INSTANCE (ADC1_INST)
752 
754 #define ADC_DC_CURRENT_CH (DL_ADC12_INPUT_CHAN_13)
755 
757 #define ADC_FIRST_IDX (DL_ADC12_MEM_IDX_0)
758 
759 #define ADC_SECOND_IDX (DL_ADC12_MEM_IDX_1)
760 
762 #define FOC_ADC_VOLT_DC_INST (ADC0_INST)
763 
764 #define ADC_VOLT_DC_IDX (ADC0_ADCMEM_1)
765 
767 #define ADC_VOLTAGE_U_INST (ADC1_INST)
768 
769 #define ADC_VOLTAGE_V_INST (ADC0_INST)
770 
771 #define ADC_VOLTAGE_W_INST (ADC1_INST)
772 
774 #define ADC_VOLTAGE_U_IDX (ADC1_ADCMEM_0)
775 
776 #define ADC_VOLTAGE_V_IDX (ADC0_ADCMEM_0)
777 
778 #define ADC_VOLTAGE_W_IDX (ADC1_ADCMEM_1)
779 
781 #define ADC_VOLTAGE_U_CH (DL_ADC12_INPUT_CHAN_5)
782 
783 #define ADC_VOLTAGE_V_CH (DL_ADC12_INPUT_CHAN_6)
784 
785 #define ADC_VOLTAGE_W_CH (DL_ADC12_INPUT_CHAN_7)
786 
787 #endif
788 
790 extern uint32_t gateDrivernFaultReport;
792 extern uint32_t gateDriverFaultAction;
793 
799 
805 
810 
817 
823 
829 
833 void gateDriverConfig(void);
834 
838 void gateDriverClearFault(void);
839 
844 uint32_t gateDriverGetFaultStatus(void);
845 
850 void gateDriverFaultResponse(HV_DIE_EEPROM_INTERFACE_T *pGateDriverConfig);
851 
856 void gateDriverParamsUpdate(HV_DIE_EEPROM_INTERFACE_T *pGateDriverConfig);
857 
861 void gateDriverCSACalib(void);
862 
866 void gateDriverOffsetCalibSet(void);
867 
871 void gateDriverOffsetCalibReset(void);
872 
876 void gateDriverInit(void);
877 
883 uint16_t gateDriverRegRead(int16_t regAddr);
884 
885 #ifdef __cplusplus
886 }
887 #endif
888 #endif /* GATEDRIVER_H */
Measure voltage structure.
Definition: measure.h:310
uint32_t gateDriverGetFaultStatus(void)
Gets gate driver fault status.
void HAL_GD_ReadDCVBusVoltage(HAL_MEASURE_VOLTAGE_T *pVoltage)
Reads DC bus voltage.
custom gate driver Module
uint32_t gateDrivernFaultReport
Extern gate driver fault report.
DRV8329_H gate driver Module.
DRV8323 gate driver Module.
void HAL_currentReconstruction(HAL_MEASURE_CURRENT_T *pCurrent, MC_SECTOR_TYPES sector)
Reconstruct phase current from bus current.
void gateDriverCSACalib(void)
Calibrates gate driver CSA.
Application Defines Module.
TIDA010265 gate driver Module.
void HAL_GD_ReadVoltages(HAL_MEASURE_VOLTAGE_T *pVoltage)
Read phase voltage from gate driver.
Measure current structure.
Definition: measure.h:237
uint16_t gateDriverRegRead(int16_t regAddr)
Reads any gate driver register, used for testing spi communication.
DRV8323 SPI HAL Module.
void gateDriverFaultResponse(HV_DIE_EEPROM_INTERFACE_T *pGateDriverConfig)
Response to any occurred fault.
HAL interface for FOC Module.
void gateDriverClearFault(void)
Clears gate driver fault.
MC_SECTOR_TYPES
Sector types.
Definition: mcLib.h:183
void gateDriverOffsetCalibReset(void)
Calibrates gate driver CSA offset reset.
DRV8316 SPI HAL Module.
DRV8316 gate driver Module.
CURRENT_SHUNT_TYPES
HAL measurement types.
Definition: measure.h:125
uint32_t gateDriverFaultAction
Extern gate driver fault action.
void gateDriverInit(void)
Initializes gate drive module.
void gateDriverParamsUpdate(HV_DIE_EEPROM_INTERFACE_T *pGateDriverConfig)
Updates gate driver parameters.
void HAL_GD_ReadCurrents(HAL_MEASURE_CURRENT_T *pCurrent)
Read Current from gate driver.
void gateDriverOffsetCalibSet(void)
Calibrates gate driver CSA offset.
TIDA010250 gate driver Module.
TIDA010251 gate driver Module.
void HAL_GD_ConfigureVoltageChannels(void)
Configure phase voltage channels.
void gateDriverConfig(void)
Initializes gat driver register configuration.
void HAL_GD_ConfigureCurrentChannels(CURRENT_SHUNT_TYPES currentShunt)
Configure phase current channels.
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale