Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
bdrv.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) Infineon Technologies AG
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,are permitted provided that the
8  * following conditions are met:
9  *
10  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
11  * disclaimer.
12  *
13  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
14  * following disclaimer in the documentation and/or other materials provided with the distribution.
15  *
16  * Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote
17  * products derived from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
25  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  *
27  **********************************************************************************************************************/
43 /*******************************************************************************
44 ** Author(s) Identity **
45 ********************************************************************************
46 ** Initials Name **
47 ** ---------------------------------------------------------------------------**
48 ** DM Daniel Mysliwitz **
49 ** BG Blandine Guillot **
50 ** JO Julia Ott **
51 ** PS Patrik Schwarz **
52 *******************************************************************************/
53 
54 /*******************************************************************************
55 ** Revision Control History **
56 ********************************************************************************
57 ** V0.1.0: 2019-10-28, DM: Initial version **
58 ** V0.2.0: 2019-11-18, BG: Added functions **
59 ** V0.3.0: 2020-04-28, BG: Updated revision history format **
60 ** V0.4.0: 2020-07-10, BG: Added inline functions list **
61 ** V0.5.0: 2020-08-19, BG: Added BEMF functions **
62 ** V0.6.0: 2020-09-16, BG: Added interrupt enable/disable functions **
63 ** ChargePump init separated, init code enabled **
64 ** V0.6.1: 2020-10-06, BG: EP-492: Removed MISRA 2012 errors **
65 ** V0.6.2: 2020-10-16, JO: EP-523: Updated doxygen documentation **
66 ** V0.6.3: 2020-10-20, BG: EP-532: Updated cast in BDRV_getFaults() **
67 ** V0.6.4: 2020-10-21, BG: EP-539: Considered the enable checkbox in CW in **
68 ** the initialization function **
69 ** V0.6.5: 2020-11-12, JO: EP-590: Removed \param none and \return none to **
70 ** avoid doxygen warning **
71 ** Added end of group for doxygen **
72 ** V0.6.6: 2020-11-16, BG: EP-595: Updated BDRV initialisation **
73 ** V0.6.7: 2020-11-20, BG: EP-610: Corrected MISRA 2012 errors **
74 ** The following rules are globally deactivated: **
75 ** - Info 774: Boolean within 'if' always evaluates **
76 ** to False/True **
77 ** - Warning 685: Relational operator '<=' always **
78 ** evaluates to 'true' **
79 ** V0.6.8: 2020-12-18, BG: EP-652: Corrected name of error code variable **
80 ** V0.6.9: 2021-02-10, JO: EP-696: Changed from anonymous to named typedefs **
81 ** to prevent MISRA warning **
82 ** V0.7.0: 2021-04-06, BG: EP-760: Replaced if instructions to check if the **
83 ** module is enabled with preprocessor directives to**
84 ** avoid compiler warnings **
85 ** V0.7.1: 2021-04-29, JO: EP-789: Updated 3 phase handling **
86 ** V0.7.2: 2021-06-02, BG: EP-816: Added missing bitfield settings in the **
87 ** function BDRV_setBridge **
88 ** Added SCU_delay_us functions in the diagnostic **
89 ** functions BDRV_checkShortDiagnosis and **
90 ** BDRV_checkOpenLoad **
91 ** Corrected the DS threshold in BDRV_checkOpenLoad **
92 ** V0.7.3: 2021-07-21, BG: EP-871: Replaced if-condition by switch so that **
93 ** a wrong error code is returned for 3-phase device**
94 ** in the functions BDRV_set{LS/HS}{Chrg/Dischrg}...**
95 ** ...{Constant/Sequencer}Mode **
96 ** V0.7.4: 2021-07-27, BG: EP-814: Corrected the value to clear the register**
97 ** STSCLR **
98 ** V0.7.5: 2021-07-30, BG: EP-877: Corrected MISRA 2012 errors **
99 ** V0.7.6: 2021-08-04, BG: EP-879: Updated BDRV_init() with extra accessors **
100 ** for charge pump register **
101 ** Corrected the value for the CP stages number in **
102 ** while-loop condition **
103 ** Updated limits for CP voltage comparison to VSD **
104 ** V0.7.7: 2021-09-29, BG: EP-880: Updated BDRV_setBridge(..) so that the **
105 ** function does not violate HW requirements when **
106 ** called with specific arguments **
107 ** V0.7.8: 2021-11-08, BG: EP-790: Combined struct typedef for charge and **
108 ** discharge, renamed existing struct elements for **
109 ** active driver, added elements for free-wheeling **
110 ** driver **
111 ** Updated functions according to the AK design step**
112 ** BDRV_set{LS/HS}{Chrg/Dischrg}{Const/Seq}Mode **
113 ** V0.7.9: 2021-11-12, JO: EP-937: Updated copyright and branding **
114 ** V0.8.0: 2022-06-23, JO: EP-1150: Removed ARMCC V6.18 warnings **
115 ** V0.8.1: 2022-07-05, JO: EP-1188: Disabled MISRA rule 9031 locally **
116 ** V0.8.2: 2022-11-17, JO: EP-1342: Updated enum documentation to remove **
117 ** doxygen warning **
118 ** V0.8.3: 2023-04-04, PS: EP-1141: Corrected MISRA warnings **
119 ** V0.9.0: 2024-06-03, JO: EP-1388: Added functions to access single bits **
120 ** of register BDRV->PROT_CTRL **
121 *******************************************************************************/
122 
123 #ifndef BDRV_H
124 #define BDRV_H
125 
126 /*******************************************************************************
127 ** Includes **
128 *******************************************************************************/
129 
130 #include "types.h"
131 #include "tle989x.h"
132 #include "tle_variants.h"
133 #include "bdrv_defines.h"
134 
135 /*******************************************************************************
136 ** Global Constant Declarations **
137 *******************************************************************************/
138 
139 /*******************************************************************************
140 ** Global Type Declarations **
141 *******************************************************************************/
142 
147 typedef enum BDRV_chCfg
148 {
153  BDRV_chCfg_hsDcs = 4u
155 
160 typedef enum BDRV_hb
161 {
162  BDRV_hb_1 = 1u,
163  BDRV_hb_2 = 2u,
164 #if (UC_SERIES == 989)
165  BDRV_hb_3 = 3u
166 #endif
168 
173 typedef enum BDRV_offStateDiag
174 {
180 
184 typedef struct BDRV_offState
185 {
189 #if (UC_SERIES == 989)
191 #endif
193 
198 typedef enum BDRV_currentCfg
199 {
265 
266 /*=============================== CONSTANT MODE ==============================*/
267 
268 /* Remove warnings for padding structures */
269 #if defined (__CC_ARM)
270  #pragma push
271  #pragma anon_unions
272 #elif defined (__ICCARM__)
273  #pragma language=extended
274 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
275  #pragma clang diagnostic push
276  #pragma clang diagnostic ignored "-Wpadded"
277 #elif defined (__GNUC__)
278  /* anonymous unions are enabled by default */
279 #elif defined (__TMS470__)
280  /* anonymous unions are enabled by default */
281 #elif defined (__TASKING__)
282  #pragma warning 586
283 #elif defined (__CSMC__)
284  /* anonymous unions are enabled by default */
285 #else
286  #warning Not supported compiler type
287 #endif
288 
292 typedef struct
293 {
299 
300 
301 /*============================== SEQUENCER MODE ==============================*/
302 
306 typedef struct
307 {
318 } tBDRV_seqCfg;
319 
320 /*============================ ADAPTIVE SEQUENCER ============================*/
321 
325 typedef struct
326 {
331 } tBDRV_aseqCfg;
332 
333 #if defined (__CC_ARM)
334  #pragma pop
335 #elif defined (__ICCARM__)
336  /* leave anonymous unions enabled */
337 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
338  #pragma clang diagnostic pop
339 #elif defined (__GNUC__)
340  /* anonymous unions are enabled by default */
341 #elif defined (__TMS470__)
342  /* anonymous unions are enabled by default */
343 #elif defined (__TASKING__)
344  #pragma warning restore
345 #elif defined (__CSMC__)
346  /* anonymous unions are enabled by default */
347 #endif
348 
349 /*******************************************************************************
350 ** Global Function Declarations **
351 *******************************************************************************/
352 
353 /*=================================== BDRV ===================================*/
354 
355 sint8 BDRV_init(void);
356 sint8 BDRV_initCP(void);
357 #if (UC_SERIES == 988)
358  sint8 BDRV_setBridge(tBDRV_chCfg e_ls1Cfg, tBDRV_chCfg e_hs1Cfg, tBDRV_chCfg e_ls2Cfg, tBDRV_chCfg e_hs2Cfg);
359 #elif (UC_SERIES == 989)
360  sint8 BDRV_setBridge(tBDRV_chCfg e_ls1Cfg, tBDRV_chCfg e_hs1Cfg, tBDRV_chCfg e_ls2Cfg, tBDRV_chCfg e_hs2Cfg, tBDRV_chCfg e_ls3Cfg, tBDRV_chCfg e_hs3Cfg);
361 #endif
368 sint8 BDRV_setLSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg);
369 sint8 BDRV_setHSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg);
374 bool BDRV_getFaultSts(void);
375 uint8 BDRV_getFaults(void);
376 void BDRV_clrFaultSts(void);
389 INLINE void BDRV_enHB1AdaptSeqInt(void);
390 INLINE void BDRV_enHB2AdaptSeqInt(void);
391 INLINE void BDRV_enHB3AdaptSeqInt(void);
395 INLINE void BDRV_enDrvSeqErrInt(void);
409 INLINE void BDRV_disHB1AdaptSeqInt(void);
410 INLINE void BDRV_disHB2AdaptSeqInt(void);
411 INLINE void BDRV_disHB3AdaptSeqInt(void);
415 INLINE void BDRV_disDrvSeqErrInt(void);
579 
580 /*================================== BEMFC ===================================*/
581 
582 INLINE void BDRV_enPh1ZCFallInt(void);
583 INLINE void BDRV_enPh1ZCRiseInt(void);
584 INLINE void BDRV_enPh2ZCFallInt(void);
585 INLINE void BDRV_enPh2ZCRiseInt(void);
586 INLINE void BDRV_enPh3ZCFallInt(void);
587 INLINE void BDRV_enPh3ZCRiseInt(void);
588 INLINE void BDRV_disPh1ZCFallInt(void);
589 INLINE void BDRV_disPh1ZCRiseInt(void);
590 INLINE void BDRV_disPh2ZCFallInt(void);
591 INLINE void BDRV_disPh2ZCRiseInt(void);
592 INLINE void BDRV_disPh3ZCFallInt(void);
593 INLINE void BDRV_disPh3ZCRiseInt(void);
609 
610 /*******************************************************************************
611 ** Deprecated Function Declarations **
612 *******************************************************************************/
613 
614 /*=================================== BDRV ===================================*/
615 
619 void BDRV_setExternalLS1MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
620 
624 void BDRV_setExternalHS1MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
625 
629 void BDRV_setExternalLS2MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
630 
634 void BDRV_setExternalHS2MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
635 
639 void BDRV_setExternalLS3MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
640 
644 void BDRV_setExternalHS3MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
645 
649 void BDRV_setLS1DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
650 
654 void BDRV_setHS1DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
655 
659 void BDRV_setLS2DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
660 
664 void BDRV_setHS2DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
665 
669 void BDRV_setLS3DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
670 
674 void BDRV_setHS3DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
675 
679 void BDRV_setHB1AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
680 
684 void BDRV_setHB2AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
685 
689 void BDRV_setHB3AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
690 
694 void BDRV_setHB1ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
695 
699 void BDRV_setHB2ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
700 
704 void BDRV_setHB3ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
705 
709 void BDRV_setDrvSeqErrIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
710 
711 /*================================== BEMFC ===================================*/
712 
716 void BDRV_setPh1ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
717 
721 void BDRV_setPh2ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
722 
726 void BDRV_setPh3ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
727 
731 void BDRV_setPh1ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
732 
736 void BDRV_setPh2ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
737 
741 void BDRV_setPh3ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
742 
743 /*******************************************************************************
744 ** Global Inline Function Definitions **
745 *******************************************************************************/
746 
747 /*=================================== BDRV ===================================*/
748 
752 {
753  BDRV->IRQEN.bit.LS1_OC_IEN = 1u;
754 }
755 
759 {
760  BDRV->IRQEN.bit.HS1_OC_IEN = 1u;
761 }
762 
766 {
767  BDRV->IRQEN.bit.LS2_OC_IEN = 1u;
768 }
769 
773 {
774  BDRV->IRQEN.bit.HS2_OC_IEN = 1u;
775 }
776 
780 {
781  BDRV->IRQEN.bit.LS3_OC_IEN = 1u;
782 }
783 
787 {
788  BDRV->IRQEN.bit.HS3_OC_IEN = 1u;
789 }
790 
794 {
795  BDRV->IRQEN.bit.LS1_DS_IEN = 1u;
796 }
797 
801 {
802  BDRV->IRQEN.bit.HS1_DS_IEN = 1u;
803 }
804 
808 {
809  BDRV->IRQEN.bit.LS2_DS_IEN = 1u;
810 }
811 
815 {
816  BDRV->IRQEN.bit.HS2_DS_IEN = 1u;
817 }
818 
822 {
823  BDRV->IRQEN.bit.LS3_DS_IEN = 1u;
824 }
825 
829 {
830  BDRV->IRQEN.bit.HS3_DS_IEN = 1u;
831 }
832 
836 {
837  BDRV->IRQEN.bit.HB1_ASEQ_IEN = 1u;
838 }
839 
843 {
844  BDRV->IRQEN.bit.HB2_ASEQ_IEN = 1u;
845 }
846 
850 {
851  BDRV->IRQEN.bit.HB3_ASEQ_IEN = 1u;
852 }
853 
857 {
858  BDRV->IRQEN.bit.HB1_ACTDRV_IEN = 1u;
859 }
860 
864 {
865  BDRV->IRQEN.bit.HB2_ACTDRV_IEN = 1u;
866 }
867 
871 {
872  BDRV->IRQEN.bit.HB3_ACTDRV_IEN = 1u;
873 }
874 
878 {
879  BDRV->IRQEN.bit.SEQ_ERR_IEN = 1u;
880 }
881 
885 {
886  BDRV->IRQEN.bit.VCP_LOTH2_IEN = 1u;
887 }
888 
892 {
893  BDRV->IRQEN.bit.LS1_OC_IEN = 0u;
894 }
895 
899 {
900  BDRV->IRQEN.bit.HS1_OC_IEN = 0u;
901 }
902 
906 {
907  BDRV->IRQEN.bit.LS2_OC_IEN = 0u;
908 }
909 
913 {
914  BDRV->IRQEN.bit.HS2_OC_IEN = 0u;
915 }
916 
920 {
921  BDRV->IRQEN.bit.LS3_OC_IEN = 0u;
922 }
923 
927 {
928  BDRV->IRQEN.bit.HS3_OC_IEN = 0u;
929 }
930 
934 {
935  BDRV->IRQEN.bit.LS1_DS_IEN = 0u;
936 }
937 
941 {
942  BDRV->IRQEN.bit.HS1_DS_IEN = 0u;
943 }
944 
948 {
949  BDRV->IRQEN.bit.LS2_DS_IEN = 0u;
950 }
951 
955 {
956  BDRV->IRQEN.bit.HS2_DS_IEN = 0u;
957 }
958 
962 {
963  BDRV->IRQEN.bit.LS3_DS_IEN = 0u;
964 }
965 
969 {
970  BDRV->IRQEN.bit.HS3_DS_IEN = 0u;
971 }
972 
976 {
977  BDRV->IRQEN.bit.HB1_ASEQ_IEN = 0u;
978 }
979 
983 {
984  BDRV->IRQEN.bit.HB2_ASEQ_IEN = 0u;
985 }
986 
990 {
991  BDRV->IRQEN.bit.HB3_ASEQ_IEN = 0u;
992 }
993 
997 {
998  BDRV->IRQEN.bit.HB1_ACTDRV_IEN = 0u;
999 }
1000 
1004 {
1005  BDRV->IRQEN.bit.HB2_ACTDRV_IEN = 0u;
1006 }
1007 
1011 {
1012  BDRV->IRQEN.bit.HB3_ACTDRV_IEN = 0u;
1013 }
1014 
1018 {
1019  BDRV->IRQEN.bit.SEQ_ERR_IEN = 0u;
1020 }
1021 
1025 {
1026  BDRV->IRQEN.bit.VCP_LOTH2_IEN = 0u;
1027 }
1028 
1034 {
1035  return (uint8)BDRV->STS.bit.LS1_OC_STS;
1036 }
1037 
1043 {
1044  return (uint8)BDRV->STS.bit.HS1_OC_STS;
1045 }
1046 
1052 {
1053  return (uint8)BDRV->STS.bit.LS2_OC_STS;
1054 }
1055 
1061 {
1062  return (uint8)BDRV->STS.bit.HS2_OC_STS;
1063 }
1064 
1070 {
1071  return (uint8)BDRV->STS.bit.LS3_OC_STS;
1072 }
1073 
1079 {
1080  return (uint8)BDRV->STS.bit.HS3_OC_STS;
1081 }
1082 
1088 {
1089  return (uint8)BDRV->STS.bit.LS1_DS_STS;
1090 }
1091 
1097 {
1098  return (uint8)BDRV->STS.bit.HS1_DS_STS;
1099 }
1100 
1106 {
1107  return (uint8)BDRV->STS.bit.LS2_DS_STS;
1108 }
1109 
1115 {
1116  return (uint8)BDRV->STS.bit.HS2_DS_STS;
1117 }
1118 
1124 {
1125  return (uint8)BDRV->STS.bit.LS3_DS_STS;
1126 }
1127 
1133 {
1134  return (uint8)BDRV->STS.bit.HS3_DS_STS;
1135 }
1136 
1142 {
1143  return (uint8)BDRV->STS.bit.SH1_LOW_STS;
1144 }
1145 
1151 {
1152  return (uint8)BDRV->STS.bit.SH1_HIGH_STS;
1153 }
1154 
1160 {
1161  return (uint8)BDRV->STS.bit.SH2_LOW_STS;
1162 }
1163 
1169 {
1170  return (uint8)BDRV->STS.bit.SH2_HIGH_STS;
1171 }
1172 
1178 {
1179  return (uint8)BDRV->STS.bit.SH3_LOW_STS;
1180 }
1181 
1187 {
1188  return (uint8)BDRV->STS.bit.SH3_HIGH_STS;
1189 }
1190 
1196 {
1197  return (uint8)BDRV->STS.bit.CP_OTSD_STS;
1198 }
1199 
1205 {
1206  return (uint8)BDRV->STS.bit.VCP_LOTH1_STS;
1207 }
1208 
1214 {
1215  return (uint8)BDRV->STS.bit.VCP_UPTH_STS;
1216 }
1217 
1223 {
1224  return (uint8)BDRV->STS.bit.VSD_LOTH_STS;
1225 }
1226 
1232 {
1233  return (uint8)BDRV->STS.bit.VSD_UPTH_STS;
1234 }
1235 
1241 {
1242  return (uint8)BDRV->STS.bit.VCP_LOTH2_STS;
1243 }
1244 
1250 {
1251  return (uint8)BDRV->STS.bit.VSD_OV_STS;
1252 }
1253 
1257 {
1258  BDRV->STSCLR.bit.LS1_OC_SC = 1u;
1259 }
1260 
1264 {
1265  BDRV->STSCLR.bit.HS1_OC_SC = 1u;
1266 }
1267 
1271 {
1272  BDRV->STSCLR.bit.LS2_OC_SC = 1u;
1273 }
1274 
1278 {
1279  BDRV->STSCLR.bit.HS2_OC_SC = 1u;
1280 }
1281 
1285 {
1286  BDRV->STSCLR.bit.LS3_OC_SC = 1u;
1287 }
1288 
1292 {
1293  BDRV->STSCLR.bit.HS3_OC_SC = 1u;
1294 }
1295 
1299 {
1300  BDRV->STSCLR.bit.LS1_DS_SC = 1u;
1301 }
1302 
1306 {
1307  BDRV->STSCLR.bit.HS1_DS_SC = 1u;
1308 }
1309 
1313 {
1314  BDRV->STSCLR.bit.LS2_DS_SC = 1u;
1315 }
1316 
1320 {
1321  BDRV->STSCLR.bit.HS2_DS_SC = 1u;
1322 }
1323 
1327 {
1328  BDRV->STSCLR.bit.LS3_DS_SC = 1u;
1329 }
1330 
1334 {
1335  BDRV->STSCLR.bit.HS3_DS_SC = 1u;
1336 }
1337 
1341 {
1342  BDRV->STSCLR.bit.VCP_LOTH2_SC = 1u;
1343 }
1344 
1350 {
1351  return (uint8)BDRV->IRQS.bit.LS1_OC_IS;
1352 }
1353 
1359 {
1360  return (uint8)BDRV->IRQS.bit.HS1_OC_IS;
1361 }
1362 
1368 {
1369  return (uint8)BDRV->IRQS.bit.LS2_OC_IS;
1370 }
1371 
1377 {
1378  return (uint8)BDRV->IRQS.bit.HS2_OC_IS;
1379 }
1380 
1386 {
1387  return (uint8)BDRV->IRQS.bit.LS3_OC_IS;
1388 }
1389 
1395 {
1396  return (uint8)BDRV->IRQS.bit.HS3_OC_IS;
1397 }
1398 
1404 {
1405  return (uint8)BDRV->IRQS.bit.LS1_DS_IS;
1406 }
1407 
1413 {
1414  return (uint8)BDRV->IRQS.bit.HS1_DS_IS;
1415 }
1416 
1422 {
1423  return (uint8)BDRV->IRQS.bit.LS2_DS_IS;
1424 }
1425 
1431 {
1432  return (uint8)BDRV->IRQS.bit.HS2_DS_IS;
1433 }
1434 
1440 {
1441  return (uint8)BDRV->IRQS.bit.LS3_DS_IS;
1442 }
1443 
1449 {
1450  return (uint8)BDRV->IRQS.bit.HS3_DS_IS;
1451 }
1452 
1458 {
1459  return (uint8)BDRV->IRQS.bit.HB1_ASEQ_IS;
1460 }
1461 
1467 {
1468  return (uint8)BDRV->IRQS.bit.HB2_ASEQ_IS;
1469 }
1470 
1476 {
1477  return (uint8)BDRV->IRQS.bit.HB3_ASEQ_IS;
1478 }
1479 
1485 {
1486  return (uint8)BDRV->IRQS.bit.HB1_ACTDRV_IS;
1487 }
1488 
1494 {
1495  return (uint8)BDRV->IRQS.bit.HB2_ACTDRV_IS;
1496 }
1497 
1503 {
1504  return (uint8)BDRV->IRQS.bit.HB3_ACTDRV_IS;
1505 }
1506 
1512 {
1513  return (uint8)BDRV->IRQS.bit.SEQ_ERR_IS;
1514 }
1515 
1521 {
1522  return (uint8)BDRV->IRQS.bit.VCP_LOTH2_IS;
1523 }
1524 
1528 {
1529  BDRV->IRQCLR.bit.LS1_OC_ISC = 1u;
1530 }
1531 
1535 {
1536  BDRV->IRQCLR.bit.HS1_OC_ISC = 1u;
1537 }
1538 
1542 {
1543  BDRV->IRQCLR.bit.LS2_OC_ISC = 1u;
1544 }
1545 
1549 {
1550  BDRV->IRQCLR.bit.HS2_OC_ISC = 1u;
1551 }
1552 
1556 {
1557  BDRV->IRQCLR.bit.LS3_OC_ISC = 1u;
1558 }
1559 
1563 {
1564  BDRV->IRQCLR.bit.HS3_OC_ISC = 1u;
1565 }
1566 
1570 {
1571  BDRV->IRQCLR.bit.LS1_DS_ISC = 1u;
1572 }
1573 
1577 {
1578  BDRV->IRQCLR.bit.HS1_DS_ISC = 1u;
1579 }
1580 
1584 {
1585  BDRV->IRQCLR.bit.LS2_DS_ISC = 1u;
1586 }
1587 
1591 {
1592  BDRV->IRQCLR.bit.HS2_DS_ISC = 1u;
1593 }
1594 
1598 {
1599  BDRV->IRQCLR.bit.LS3_DS_ISC = 1u;
1600 }
1601 
1605 {
1606  BDRV->IRQCLR.bit.HS3_DS_ISC = 1u;
1607 }
1608 
1612 {
1613  BDRV->IRQCLR.bit.HB1_ASEQ_ISC = 1u;
1614 }
1615 
1619 {
1620  BDRV->IRQCLR.bit.HB2_ASEQ_ISC = 1u;
1621 }
1622 
1626 {
1627  BDRV->IRQCLR.bit.HB3_ASEQ_ISC = 1u;
1628 }
1629 
1633 {
1634  BDRV->IRQCLR.bit.HB1_ACTDRV_ISC = 1u;
1635 }
1636 
1640 {
1641  BDRV->IRQCLR.bit.HB2_ACTDRV_ISC = 1u;
1642 }
1643 
1647 {
1648  BDRV->IRQCLR.bit.HB3_ACTDRV_ISC = 1u;
1649 }
1650 
1654 {
1655  BDRV->IRQCLR.bit.SEQ_ERR_ISC = 1u;
1656 }
1657 
1661 {
1662  BDRV->IRQCLR.bit.VCP_LOTH2_ISC = 1u;
1663 }
1664 
1670 {
1671  return (uint8)BDRV->ASEQONSTS.bit.HB1T12ONMAX;
1672 }
1673 
1679 {
1680  return (uint8)BDRV->ASEQONSTS.bit.HB1I1ONMAX;
1681 }
1682 
1688 {
1689  return (uint8)BDRV->ASEQONSTS.bit.HB1T12ONMIN;
1690 }
1691 
1697 {
1698  return (uint8)BDRV->ASEQONSTS.bit.HB1I1ONMIN;
1699 }
1700 
1706 {
1707  return (uint8)BDRV->ASEQONSTS.bit.HB1ONMF;
1708 }
1709 
1715 {
1716  return (uint8)BDRV->ASEQONSTS.bit.HB1ONFAILDRV;
1717 }
1718 
1724 {
1725  return (uint8)BDRV->ASEQONSTS.bit.HB2T12ONMAX;
1726 }
1727 
1733 {
1734  return (uint8)BDRV->ASEQONSTS.bit.HB2I1ONMAX;
1735 }
1736 
1742 {
1743  return (uint8)BDRV->ASEQONSTS.bit.HB2T12ONMIN;
1744 }
1745 
1751 {
1752  return (uint8)BDRV->ASEQONSTS.bit.HB2I1ONMIN;
1753 }
1754 
1760 {
1761  return (uint8)BDRV->ASEQONSTS.bit.HB2ONMF;
1762 }
1763 
1769 {
1770  return (uint8)BDRV->ASEQONSTS.bit.HB2ONFAILDRV;
1771 }
1772 
1778 {
1779  return (uint8)BDRV->ASEQONSTS.bit.HB3T12ONMAX;
1780 }
1781 
1787 {
1788  return (uint8)BDRV->ASEQONSTS.bit.HB3I1ONMAX;
1789 }
1790 
1796 {
1797  return (uint8)BDRV->ASEQONSTS.bit.HB3T12ONMIN;
1798 }
1799 
1805 {
1806  return (uint8)BDRV->ASEQONSTS.bit.HB3I1ONMIN;
1807 }
1808 
1814 {
1815  return (uint8)BDRV->ASEQONSTS.bit.HB3ONMF;
1816 }
1817 
1823 {
1824  return (uint8)BDRV->ASEQONSTS.bit.HB3ONFAILDRV;
1825 }
1826 
1832 {
1833  return (uint8)BDRV->ASEQOFFSTS.bit.HB1T1OFFMAX;
1834 }
1835 
1841 {
1842  return (uint8)BDRV->ASEQOFFSTS.bit.HB1I1OFFMAX;
1843 }
1844 
1850 {
1851  return (uint8)BDRV->ASEQOFFSTS.bit.HB1T1OFFMIN;
1852 }
1853 
1859 {
1860  return (uint8)BDRV->ASEQOFFSTS.bit.HB1I1OFFMIN;
1861 }
1862 
1868 {
1869  return (uint8)BDRV->ASEQOFFSTS.bit.HB1OFFMF;
1870 }
1871 
1877 {
1878  return (uint8)BDRV->ASEQOFFSTS.bit.HB1OFFFAILDRV;
1879 }
1880 
1886 {
1887  return (uint8)BDRV->ASEQOFFSTS.bit.HB2T1OFFMAX;
1888 }
1889 
1895 {
1896  return (uint8)BDRV->ASEQOFFSTS.bit.HB2I1OFFMAX;
1897 }
1898 
1904 {
1905  return (uint8)BDRV->ASEQOFFSTS.bit.HB2T1OFFMIN;
1906 }
1907 
1913 {
1914  return (uint8)BDRV->ASEQOFFSTS.bit.HB2I1OFFMIN;
1915 }
1916 
1922 {
1923  return (uint8)BDRV->ASEQOFFSTS.bit.HB2OFFMF;
1924 }
1925 
1931 {
1932  return (uint8)BDRV->ASEQOFFSTS.bit.HB2OFFFAILDRV;
1933 }
1934 
1940 {
1941  return (uint8)BDRV->ASEQOFFSTS.bit.HB3T1OFFMAX;
1942 }
1943 
1949 {
1950  return (uint8)BDRV->ASEQOFFSTS.bit.HB3I1OFFMAX;
1951 }
1952 
1958 {
1959  return (uint8)BDRV->ASEQOFFSTS.bit.HB3T1OFFMIN;
1960 }
1961 
1967 {
1968  return (uint8)BDRV->ASEQOFFSTS.bit.HB3I1OFFMIN;
1969 }
1970 
1976 {
1977  return (uint8)BDRV->ASEQOFFSTS.bit.HB3OFFMF;
1978 }
1979 
1985 {
1986  return (uint8)BDRV->ASEQOFFSTS.bit.HB3OFFFAILDRV;
1987 }
1988 
1994 {
1995  return (uint8)BDRV->HB1ONVAL.bit.HB1_TONDLY;
1996 }
1997 
2003 {
2004  return (uint8)BDRV->HB1ONVAL.bit.HB1_I1ONVAL;
2005 }
2006 
2012 {
2013  return (uint8)BDRV->HB1ONVAL.bit.HB1_TONDUR;
2014 }
2015 
2021 {
2022  return (uint8)BDRV->HB1ONVAL.bit.HB1_TONDURMERR;
2023 }
2024 
2030 {
2031  return (uint8)BDRV->HB1ONVAL.bit.HB1_ACTDRV_ON;
2032 }
2033 
2037 {
2038  BDRV->HB1ONVAL.bit.HB1_ONVALVF_CLR = 1u;
2039 }
2040 
2046 {
2047  return (uint8)BDRV->HB1ONVAL.bit.HB1_ONVALVF;
2048 }
2049 
2055 {
2056  return (uint8)BDRV->HB1OFFVAL.bit.HB1_TOFFDLY;
2057 }
2058 
2064 {
2065  return (uint8)BDRV->HB1OFFVAL.bit.HB1_I1OFFVAL;
2066 }
2067 
2073 {
2074  return (uint8)BDRV->HB1OFFVAL.bit.HB1_TOFFDUR;
2075 }
2076 
2082 {
2083  return (uint8)BDRV->HB1OFFVAL.bit.HB1_TOFFDURMERR;
2084 }
2085 
2091 {
2092  return (uint8)BDRV->HB1OFFVAL.bit.HB1_ACTDRV_OFF;
2093 }
2094 
2098 {
2099  BDRV->HB1OFFVAL.bit.HB1_OFFVALVF_CLR = 1u;
2100 }
2101 
2107 {
2108  return (uint8)BDRV->HB1OFFVAL.bit.HB1_OFFVALVF;
2109 }
2110 
2116 {
2117  return (uint8)BDRV->HB2ONVAL.bit.HB2_TONDLY;
2118 }
2119 
2125 {
2126  return (uint8)BDRV->HB2ONVAL.bit.HB2_I1ONVAL;
2127 }
2128 
2134 {
2135  return (uint8)BDRV->HB2ONVAL.bit.HB2_TONDUR;
2136 }
2137 
2143 {
2144  return (uint8)BDRV->HB2ONVAL.bit.HB2_TONDURMERR;
2145 }
2146 
2152 {
2153  return (uint8)BDRV->HB2ONVAL.bit.HB2_ACTDRV_ON;
2154 }
2155 
2159 {
2160  BDRV->HB2ONVAL.bit.HB2_ONVALVF_CLR = 1u;
2161 }
2162 
2168 {
2169  return (uint8)BDRV->HB2ONVAL.bit.HB2_ONVALVF;
2170 }
2171 
2177 {
2178  return (uint8)BDRV->HB2OFFVAL.bit.HB2_TOFFDLY;
2179 }
2180 
2186 {
2187  return (uint8)BDRV->HB2OFFVAL.bit.HB2_I1OFFVAL;
2188 }
2189 
2195 {
2196  return (uint8)BDRV->HB2OFFVAL.bit.HB2_TOFFDUR;
2197 }
2198 
2204 {
2205  return (uint8)BDRV->HB2OFFVAL.bit.HB2_TOFFDURMERR;
2206 }
2207 
2213 {
2214  return (uint8)BDRV->HB2OFFVAL.bit.HB2_ACTDRV_OFF;
2215 }
2216 
2220 {
2221  BDRV->HB2OFFVAL.bit.HB2_OFFVALVF_CLR = 1u;
2222 }
2223 
2229 {
2230  return (uint8)BDRV->HB2OFFVAL.bit.HB2_OFFVALVF;
2231 }
2232 
2238 {
2239  return (uint8)BDRV->HB3ONVAL.bit.HB3_TONDLY;
2240 }
2241 
2247 {
2248  return (uint8)BDRV->HB3ONVAL.bit.HB3_I1ONVAL;
2249 }
2250 
2256 {
2257  return (uint8)BDRV->HB3ONVAL.bit.HB3_TONDUR;
2258 }
2259 
2265 {
2266  return (uint8)BDRV->HB3ONVAL.bit.HB3_TONDURMERR;
2267 }
2268 
2274 {
2275  return (uint8)BDRV->HB3ONVAL.bit.HB3_ACTDRV_ON;
2276 }
2277 
2281 {
2282  BDRV->HB3ONVAL.bit.HB3_ONVALVF_CLR = 1u;
2283 }
2284 
2290 {
2291  return (uint8)BDRV->HB3ONVAL.bit.HB3_ONVALVF;
2292 }
2293 
2299 {
2300  return (uint8)BDRV->HB3OFFVAL.bit.HB3_TOFFDLY;
2301 }
2302 
2308 {
2309  return (uint8)BDRV->HB3OFFVAL.bit.HB3_I1OFFVAL;
2310 }
2311 
2317 {
2318  return (uint8)BDRV->HB3OFFVAL.bit.HB3_TOFFDUR;
2319 }
2320 
2326 {
2327  return (uint8)BDRV->HB3OFFVAL.bit.HB3_TOFFDURMERR;
2328 }
2329 
2335 {
2336  return (uint8)BDRV->HB3OFFVAL.bit.HB3_ACTDRV_OFF;
2337 }
2338 
2342 {
2343  BDRV->HB3OFFVAL.bit.HB3_OFFVALVF_CLR = 1u;
2344 }
2345 
2351 {
2352  return (uint8)BDRV->HB3OFFVAL.bit.HB3_OFFVALVF;
2353 }
2354 
2358 {
2359  BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS = 0u;
2360 }
2361 
2365 {
2366  BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS = 1u;
2367 }
2368 
2372 {
2373  BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS = 0u;
2374 }
2375 
2379 {
2380  BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS = 1u;
2381 }
2382 
2386 {
2387  BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN = 1u;
2388 }
2389 
2393 {
2394  BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN = 0u;
2395 }
2396 
2397 /*================================== BEMFC ===================================*/
2398 
2402 {
2403  BDRV->BEMFC_IRQEN.bit.PH1_ZCFALL_IEN = 1u;
2404 }
2405 
2409 {
2410  BDRV->BEMFC_IRQEN.bit.PH1_ZCRISE_IEN = 1u;
2411 }
2412 
2416 {
2417  BDRV->BEMFC_IRQEN.bit.PH2_ZCFALL_IEN = 1u;
2418 }
2419 
2423 {
2424  BDRV->BEMFC_IRQEN.bit.PH2_ZCRISE_IEN = 1u;
2425 }
2426 
2430 {
2431  BDRV->BEMFC_IRQEN.bit.PH3_ZCFALL_IEN = 1u;
2432 }
2433 
2437 {
2438  BDRV->BEMFC_IRQEN.bit.PH3_ZCRISE_IEN = 1u;
2439 }
2440 
2444 {
2445  BDRV->BEMFC_IRQEN.bit.PH1_ZCFALL_IEN = 0u;
2446 }
2447 
2451 {
2452  BDRV->BEMFC_IRQEN.bit.PH1_ZCRISE_IEN = 0u;
2453 }
2454 
2458 {
2459  BDRV->BEMFC_IRQEN.bit.PH2_ZCFALL_IEN = 0u;
2460 }
2461 
2465 {
2466  BDRV->BEMFC_IRQEN.bit.PH2_ZCRISE_IEN = 0u;
2467 }
2468 
2472 {
2473  BDRV->BEMFC_IRQEN.bit.PH3_ZCFALL_IEN = 0u;
2474 }
2475 
2479 {
2480  BDRV->BEMFC_IRQEN.bit.PH3_ZCRISE_IEN = 0u;
2481 }
2482 
2488 {
2489  return (uint8)BDRV->BEMFC_CTRL.bit.PH1_ZC_STS;
2490 }
2491 
2497 {
2498  return (uint8)BDRV->BEMFC_CTRL.bit.PH2_ZC_STS;
2499 }
2500 
2506 {
2507  return (uint8)BDRV->BEMFC_CTRL.bit.PH3_ZC_STS;
2508 }
2509 
2515 {
2516  return (uint8)BDRV->BEMFC_IRQS.bit.PH1_ZCFALL_IS;
2517 }
2518 
2524 {
2525  return (uint8)BDRV->BEMFC_IRQS.bit.PH1_ZCRISE_IS;
2526 }
2527 
2533 {
2534  return (uint8)BDRV->BEMFC_IRQS.bit.PH2_ZCFALL_IS;
2535 }
2536 
2542 {
2543  return (uint8)BDRV->BEMFC_IRQS.bit.PH2_ZCRISE_IS;
2544 }
2545 
2551 {
2552  return (uint8)BDRV->BEMFC_IRQS.bit.PH3_ZCFALL_IS;
2553 }
2554 
2560 {
2561  return (uint8)BDRV->BEMFC_IRQS.bit.PH3_ZCRISE_IS;
2562 }
2563 
2567 {
2568  BDRV->BEMFC_IRQCLR.bit.PH1_ZCFALL_ISC = 1u;
2569 }
2570 
2574 {
2575  BDRV->BEMFC_IRQCLR.bit.PH1_ZCRISE_ISC = 1u;
2576 }
2577 
2581 {
2582  BDRV->BEMFC_IRQCLR.bit.PH2_ZCFALL_ISC = 1u;
2583 }
2584 
2588 {
2589  BDRV->BEMFC_IRQCLR.bit.PH2_ZCRISE_ISC = 1u;
2590 }
2591 
2595 {
2596  BDRV->BEMFC_IRQCLR.bit.PH3_ZCFALL_ISC = 1u;
2597 }
2598 
2602 {
2603  BDRV->BEMFC_IRQCLR.bit.PH3_ZCRISE_ISC = 1u;
2604 }
2605 
2608 #endif /* _BDRV_H */
INLINE uint8 BDRV_getHB2ChrgActiveDrv(void)
Get HB2 Switch-On Active Driver BDRV.HB2ONVAL.HB2_ACTDRV_ON.
Definition: bdrv.h:2151
void BDRV_setHS3DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set High Side 3 Drain-Source Monitoring Interrupt Node Pointer.
sint8 BDRV_setChrgAdaptSeqMode(tBDRV_aseqCfg s_aseqChrgCfg)
Set adaptive sequencer for charge.
Definition: bdrv.c:1227
INLINE void BDRV_disDrvSeqErrInt(void)
Disable Driver Sequence Error Interrupt.
Definition: bdrv.h:1017
INLINE uint8 BDRV_getHB2DischrgFailDrvSts(void)
Get HB2 Failed Gate Driver During Switch-Off BDRV.ASEQOFFSTS.HB2OFFFAILDRV.
Definition: bdrv.h:1930
INLINE void BDRV_enPh3ZCRiseInt(void)
Enable Phase3 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2436
INLINE uint8 BDRV_getHB3MinI1OFFReachedSts(void)
Get HB3 Min I1OFF Value Reached BDRV.ASEQOFFSTS.HB3I1OFFMIN.
Definition: bdrv.h:1966
INLINE uint8 BDRV_getHS2DrainSrcMonitoringIntSts(void)
Get HS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.HS2_DS_IS.
Definition: bdrv.h:1430
void BDRV_setHB3AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Half-bridge 3 Adaptive Sequencer Interrupt Node Pointer.
INLINE uint8 BDRV_getHB3MaxI1ONReachedSts(void)
Get HB3 Max I1ON Value Reached BDRV.ASEQONSTS.HB3I1ONMAX.
Definition: bdrv.h:1786
INLINE void BDRV_enExternalLS2MosfetOvercurrentInt(void)
Enable External LS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:765
INLINE void BDRV_disHB1AdaptSeqInt(void)
Disable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:975
INLINE void BDRV_clrHB1DischrgTimeMeasValidSts(void)
Clear HB1 Switch-Off Measurement Values Valid Flag BDRV.HB1OFFVAL.HB1_OFFVALVF_CLR.
Definition: bdrv.h:2097
INLINE uint8 BDRV_getPh2ZCFallIntSts(void)
Get Phase2 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQS.PH2_ZCFALL_IS.
Definition: bdrv.h:2532
INLINE uint8 BDRV_getHB2ChrgFailDrvSts(void)
Get HB2 Failed Gate Driver During Switch-On BDRV.ASEQONSTS.HB2ONFAILDRV.
Definition: bdrv.h:1768
INLINE uint8 BDRV_getHB1DischrgSlopeTime(void)
Get HB1 Switch-Off Voltage Slope Time Value BDRV.HB1OFFVAL.HB1_TOFFDUR.
Definition: bdrv.h:2072
INLINE uint8 BDRV_getHB1ChrgSlopeTime(void)
Get HB1 Switch-On Voltage Slope Time Value BDRV.HB1ONVAL.HB1_TONDUR.
Definition: bdrv.h:2011
INLINE void BDRV_disPh2ZCFallInt(void)
Disable Phase2 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2457
void BDRV_setLS3DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Low Side 3 Drain-Source Monitoring Interrupt Node Pointer.
INLINE void BDRV_enHB2ActDrvDetectInt(void)
Enable HB2 Active Driver Detection Interrupt.
Definition: bdrv.h:863
BDRV_chCfg
This enum lists the bridge driver channel configuration.
Definition: bdrv.h:148
INLINE void BDRV_disHS1DrainSrcMonitoringInt(void)
Disable HS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:940
INLINE uint8 BDRV_getHB1DischrgPhase1Current(void)
Get HB1 Switch-Off Phase 1 Current Value From Adaptive Sequencer BDRV.HB1OFFVAL.HB1_I1OFFVAL.
Definition: bdrv.h:2063
INLINE void BDRV_enPh3ZCFallInt(void)
Enable Phase3 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2429
INLINE void BDRV_enHB3AdaptSeqInt(void)
Enable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:849
INLINE uint8 BDRV_getHB1AdaptSeqDischrgMeasFailSts(void)
Get HB1 Adaptive Sequencer Switch-Off Measurement Failure BDRV.ASEQOFFSTS.HB1OFFMF.
Definition: bdrv.h:1867
INLINE void BDRV_enDrvSeqErrInt(void)
Enable Driver Sequence Error Interrupt.
Definition: bdrv.h:877
INLINE uint8 BDRV_getHB3DischrgDlyTime(void)
Get HB3 Switch-Off Delay Time Value Until Vsh Change BDRV.HB3OFFVAL.HB3_TOFFDLY.
Definition: bdrv.h:2298
INLINE uint8 BDRV_getHB3DischrgFailDrvSts(void)
Get HB3 Failed Gate Driver During Switch-Off BDRV.ASEQOFFSTS.HB3OFFFAILDRV.
Definition: bdrv.h:1984
INLINE void BDRV_enPh1ZCFallInt(void)
Enable Phase1 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2401
INLINE uint8 BDRV_getHS3DrainSrcMonitoringSts(void)
Get HS3 Off-State Drain Source Monitoring Status BDRV.STS.HS3_DS_STS.
Definition: bdrv.h:1132
INLINE void BDRV_disHB3AdaptSeqInt(void)
Disable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:989
INLINE uint8 BDRV_getHB1ActDrvDetectIntSts(void)
Get HB1 Active Driver Detection Interrupt Status BDRV.IRQS.HB1_ACTDRV_IS.
Definition: bdrv.h:1484
sint8 BDRV_setDischrgAdaptSeqMode(tBDRV_aseqCfg s_aseqDischrgCfg)
Set adaptive sequencer for discharge.
Definition: bdrv.c:1256
INLINE uint8 BDRV_getHB3MinT1OFFReachedSts(void)
Get HB3 Min T1OFF Value Reached BDRV.ASEQOFFSTS.HB3T1OFFMIN.
Definition: bdrv.h:1957
INLINE uint8 BDRV_getHB1ChrgDlyTime(void)
Get HB1 Switch-On Delay Time Value Until Vsh Change BDRV.HB1ONVAL.HB1_TONDLY.
Definition: bdrv.h:1993
INLINE void BDRV_disDrvxDischrgOnVcpUndervoltage(void)
Disable driver discharge on charge pump low voltage (BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN)
Definition: bdrv.h:2392
INLINE void BDRV_disDrvxDischrgOnVsdOvervoltage(void)
Disable driver discharge on VSD high voltage (BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS)
Definition: bdrv.h:2378
INLINE void BDRV_disPh3ZCRiseInt(void)
Disable Phase3 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2478
INLINE uint8 BDRV_getHB1AdaptSeqChrgMeasFailSts(void)
Get HB1 Adaptive Sequencer Switch-On Measurement Failure BDRV.ASEQONSTS.HB1ONMF.
Definition: bdrv.h:1705
INLINE uint8 BDRV_getHB2MinI1ONReachedSts(void)
Get HB2 Min I1ON Value Reached BDRV.ASEQONSTS.HB2I1ONMIN.
Definition: bdrv.h:1750
INLINE void BDRV_enHB1ActDrvDetectInt(void)
Enable HB1 Active Driver Detection Interrupt.
Definition: bdrv.h:856
INLINE void BDRV_clrDrvSeqErrIntSts(void)
Clear Driver Sequence Error Interrupt Status BDRV.IRQCLR.SEQ_ERR_ISC.
Definition: bdrv.h:1653
void BDRV_setPh3ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Phase3 Zero Crossing Fall Interrupt Node Pointer.
INLINE uint8 BDRV_getSH2OvervoltageCompSts(void)
Get SH2 Overvoltage Comparator Status BDRV.STS.SH2_HIGH_STS.
Definition: bdrv.h:1168
INLINE uint8 BDRV_getHB3MaxT1OFFReachedSts(void)
Get HB3 Max T1OFF Value Reached BDRV.ASEQOFFSTS.HB3T1OFFMAX.
Definition: bdrv.h:1939
INLINE void BDRV_disCPUndervoltageCompInt(void)
Disable Charge Pump Undervoltage Comparator Interrupt.
Definition: bdrv.h:1024
void BDRV_setPh3ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Phase3 Zero Crossing Rise Interrupt Node Pointer.
void BDRV_setHB2AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Half-bridge 2 Adaptive Sequencer Interrupt Node Pointer.
INLINE uint8 BDRV_getHS1DrainSrcMonitoringIntSts(void)
Get HS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.HS1_DS_IS.
Definition: bdrv.h:1412
void BDRV_setHB1AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Half-bridge 1 Adaptive Sequencer Interrupt Node Pointer.
INLINE void BDRV_disHB2ActDrvDetectInt(void)
Disable HB2 Active Driver Detection Interrupt.
Definition: bdrv.h:1003
INLINE uint8 BDRV_getHB2ActDrvDetectIntSts(void)
Get HB2 Active Driver Detection Interrupt Status BDRV.IRQS.HB2_ACTDRV_IS.
Definition: bdrv.h:1493
void BDRV_setExternalHS2MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set High Side 2 Overcurrent Interrupt Node Pointer.
INLINE uint8 BDRV_getHB2DischrgDlyTime(void)
Get HB2 Switch-Off Delay Time Value Until Vsh Change BDRV.HB2OFFVAL.HB2_TOFFDLY.
Definition: bdrv.h:2176
INLINE void BDRV_disPh1ZCRiseInt(void)
Disable Phase1 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2450
INLINE uint8 BDRV_getPh3ZCFallIntSts(void)
Get Phase3 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQS.PH3_ZCFALL_IS.
Definition: bdrv.h:2550
sint8 BDRV_setBridge(tBDRV_chCfg e_ls1Cfg, tBDRV_chCfg e_hs1Cfg, tBDRV_chCfg e_ls2Cfg, tBDRV_chCfg e_hs2Cfg, tBDRV_chCfg e_ls3Cfg, tBDRV_chCfg e_hs3Cfg)
INLINE uint8 BDRV_getPh1ZCFallIntSts(void)
Get Phase1 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQS.PH1_ZCFALL_IS.
Definition: bdrv.h:2514
INLINE void BDRV_clrHB2DischrgTimeMeasValidSts(void)
Clear HB2 Switch-Off Measurement Values Valid Flag BDRV.HB2OFFVAL.HB2_OFFVALVF_CLR.
Definition: bdrv.h:2219
INLINE uint8 BDRV_getHB2AdaptSeqChrgMeasFailSts(void)
Get HB2 Adaptive Sequencer Switch-On Measurement Failure BDRV.ASEQONSTS.HB2ONMF.
Definition: bdrv.h:1759
INLINE uint8 BDRV_getHS2DrainSrcMonitoringSts(void)
Get HS2 Off-State Drain Source Monitoring Status BDRV.STS.HS2_DS_STS.
Definition: bdrv.h:1114
INLINE uint8 BDRV_getHB2ChrgTimeMeasValidSts(void)
Get HB2 Switch-On Measurement Values Valid Flag BDRV.HB2ONVAL.HB2_ONVALVF.
Definition: bdrv.h:2167
INLINE void BDRV_clrExternalHS1MosfetOvercurrentSts(void)
Clear External HS1 MOSFET Overcurrent Status BDRV.STSCLR.HS1_OC_SC.
Definition: bdrv.h:1263
INLINE uint8 BDRV_getHB2MinI1OFFReachedSts(void)
Get HB2 Min I1OFF Value Reached BDRV.ASEQOFFSTS.HB2I1OFFMIN.
Definition: bdrv.h:1912
INLINE uint8 BDRV_getHB1MinI1OFFReachedSts(void)
Get HB1 Min I1OFF Value Reached BDRV.ASEQOFFSTS.HB1I1OFFMIN.
Definition: bdrv.h:1858
INLINE void BDRV_clrExternalHS3MosfetOvercurrentIntSts(void)
Clear External HS3 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.HS3_OC_ISC.
Definition: bdrv.h:1562
sint8 BDRV_setLSChrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqChrgCfg)
Set low-side charge times and currents for sequencer mode.
Definition: bdrv.c:884
INLINE void BDRV_clrLS2DrainSrcMonitoringSts(void)
Clear LS2 Off-State Drain Source Monitoring Status BDRV.STSCLR.LS2_DS_SC.
Definition: bdrv.h:1312
INLINE uint8 BDRV_getHB2AdaptSeqIntSts(void)
Get HB2 Adaptive Sequencer Interrupt Status BDRV.IRQS.HB2_ASEQ_IS.
Definition: bdrv.h:1466
INLINE uint8 BDRV_getHB2MaxT1OFFReachedSts(void)
Get HB2 Max T1OFF Value Reached BDRV.ASEQOFFSTS.HB2T1OFFMAX.
Definition: bdrv.h:1885
INLINE void BDRV_clrHB3DischrgTimeMeasValidSts(void)
Clear HB3 Switch-Off Measurement Values Valid Flag BDRV.HB3OFFVAL.HB3_OFFVALVF_CLR.
Definition: bdrv.h:2341
INLINE uint8 BDRV_getHB3ChrgFailDrvSts(void)
Get HB3 Failed Gate Driver During Switch-On BDRV.ASEQONSTS.HB3ONFAILDRV.
Definition: bdrv.h:1822
INLINE void BDRV_disPh2ZCRiseInt(void)
Disable Phase2 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2464
INLINE uint8 BDRV_getLS1DrainSrcMonitoringIntSts(void)
Get LS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.LS1_DS_IS.
Definition: bdrv.h:1403
INLINE void BDRV_enLS2DrainSrcMonitoringInt(void)
Enable LS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:807
void BDRV_setPh2ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Phase2 Zero Crossing Rise Interrupt Node Pointer.
INLINE uint8 BDRV_getHS3DrainSrcMonitoringIntSts(void)
Get HS3 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.HS3_DS_IS.
Definition: bdrv.h:1448
INLINE void BDRV_clrExternalLS3MosfetOvercurrentSts(void)
Clear External LS3 MOSFET Overcurrent Status BDRV.STSCLR.LS3_OC_SC.
Definition: bdrv.h:1284
INLINE uint8 BDRV_getHB3DischrgActiveDrv(void)
Get HB3 Switch-Off Active Driver BDRV.HB3OFFVAL.HB3_ACTDRV_OFF.
Definition: bdrv.h:2334
INLINE void BDRV_enHS3DrainSrcMonitoringInt(void)
Enable HS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:828
sint8 BDRV_setLSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg)
Set low-side discharge times and currents for sequencer mode.
Definition: bdrv.c:1062
INLINE void BDRV_clrHB3ChrgTimeMeasValidSts(void)
Clear HB3 Switch-On Measurement Values Valid Flag BDRV.HB3ONVAL.HB3_ONVALVF_CLR.
Definition: bdrv.h:2280
INLINE void BDRV_clrExternalHS3MosfetOvercurrentSts(void)
Clear External HS3 MOSFET Overcurrent Status BDRV.STSCLR.HS3_OC_SC.
Definition: bdrv.h:1291
INLINE uint8 BDRV_getHB3ChrgPhase1Current(void)
Get HB3 Switch-On Phase 1 Current Value From Adaptive Sequencer BDRV.HB3ONVAL.HB3_I1ONVAL.
Definition: bdrv.h:2246
void BDRV_setPh1ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Phase1 Zero Crossing Rise Interrupt Node Pointer.
INLINE void BDRV_clrPh2ZCRiseIntSts(void)
Clear Phase2 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQCLR.PH2_ZCRISE_ISC.
Definition: bdrv.h:2587
INLINE uint8 BDRV_getExternalLS1MosfetOvercurrentSts(void)
Get External LS1 MOSFET Overcurrent Status BDRV.STS.LS1_OC_STS.
Definition: bdrv.h:1033
INLINE void BDRV_clrExternalHS1MosfetOvercurrentIntSts(void)
Clear External HS1 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.HS1_OC_ISC.
Definition: bdrv.h:1534
INLINE uint8 BDRV_getHB2DischrgActiveDrv(void)
Get HB2 Switch-Off Active Driver BDRV.HB2OFFVAL.HB2_ACTDRV_OFF.
Definition: bdrv.h:2212
struct BDRV_offState tBDRV_offState
sint8 BDRV_setLSDischrgConstMode(tBDRV_hb e_hb, tBDRV_constCfg s_constDischrgCfg)
Set low-side discharge times and currents for constant mode.
Definition: bdrv.c:755
INLINE uint8 BDRV_getHB3MinI1ONReachedSts(void)
Get HB3 Min I1ON Value Reached BDRV.ASEQONSTS.HB3I1ONMIN.
Definition: bdrv.h:1804
INLINE void BDRV_clrPh3ZCRiseIntSts(void)
Clear Phase3 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQCLR.PH3_ZCRISE_ISC.
Definition: bdrv.h:2601
INLINE uint8 BDRV_getSH1OvervoltageCompSts(void)
Get SH1 Overvoltage Comparator Status BDRV.STS.SH1_HIGH_STS.
Definition: bdrv.h:1150
INLINE void BDRV_clrHB2AdaptSeqIntSts(void)
Clear HB2 Adaptive Sequencer Interrupt Status BDRV.IRQCLR.HB2_ASEQ_ISC.
Definition: bdrv.h:1618
INLINE void BDRV_enExternalHS1MosfetOvercurrentInt(void)
Enable External HS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:758
INLINE uint8 BDRV_getHB2DischrgPhase1Current(void)
Get HB2 Switch-Off Phase 1 Current Value From Adaptive Sequencer BDRV.HB2OFFVAL.HB2_I1OFFVAL.
Definition: bdrv.h:2185
INLINE void BDRV_clrHB1ChrgTimeMeasValidSts(void)
Clear HB1 Switch-On Measurement Values Valid Flag BDRV.HB1ONVAL.HB1_ONVALVF_CLR.
Definition: bdrv.h:2036
INLINE void BDRV_clrExternalLS1MosfetOvercurrentIntSts(void)
Clear External LS1 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.LS1_OC_ISC.
Definition: bdrv.h:1527
INLINE uint8 BDRV_getVcpUndervoltageAnalogCompSts(void)
Get Vcp Undervoltage Analog Comparator Status BDRV.STS.VCP_LOTH2_STS.
Definition: bdrv.h:1240
INLINE void BDRV_clrLS1DrainSrcMonitoringSts(void)
Clear LS1 Off-State Drain Source Monitoring Status BDRV.STSCLR.LS1_DS_SC.
Definition: bdrv.h:1298
INLINE uint8 BDRV_getCPUndervoltageCompIntSts(void)
Get Charge Pump Undervoltage Comparator Interrupt Status BDRV.IRQS.VCP_LOTH2_IS.
Definition: bdrv.h:1520
BDRV_hb
This enum lists the half-bridges.
Definition: bdrv.h:161
INLINE uint8 BDRV_getVcpUndervoltageSts(void)
Get Vcp Undervoltage Status BDRV.STS.VCP_LOTH1_STS.
Definition: bdrv.h:1204
void BDRV_setHB2ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Half-bridge 2 Active Driver Detection Interrupt Node Pointer.
INLINE void BDRV_disPh1ZCFallInt(void)
Disable Phase1 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2443
INLINE void BDRV_clrCPUndervoltageCompSts(void)
Clear Charge Pump Undervoltage Comparator Status BDRV.STSCLR.VCP_LOTH2_SC.
Definition: bdrv.h:1340
INLINE void BDRV_clrHB3AdaptSeqIntSts(void)
Clear HB3 Adaptive Sequencer Interrupt Status BDRV.IRQCLR.HB3_ASEQ_ISC.
Definition: bdrv.h:1625
INLINE uint8 BDRV_getHB2MaxI1OFFReachedSts(void)
Get HB2 Max I1OFF Value Reached BDRV.ASEQOFFSTS.HB2I1OFFMAX.
Definition: bdrv.h:1894
INLINE uint8 BDRV_getHB1AdaptSeqIntSts(void)
Get HB1 Adaptive Sequencer Interrupt Status BDRV.IRQS.HB1_ASEQ_IS.
Definition: bdrv.h:1457
sint8 BDRV_initCP(void)
Initialize the Charge Pump in the BDRV module.
Definition: bdrv.c:95
INLINE uint8 BDRV_getHB1ChrgPhase1Current(void)
Get HB1 Switch-On Phase 1 Current Value From Adaptive Sequencer BDRV.HB1ONVAL.HB1_I1ONVAL.
Definition: bdrv.h:2002
void BDRV_setExternalHS1MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set High Side 1 Overcurrent Interrupt Node Pointer.
tBDRV_offState BDRV_checkShortDiagnosis(void)
Off-State Diagnosis - Short to Ground or Short to Vbattery Detection.
Definition: bdrv.c:1284
INLINE void BDRV_enHB2AdaptSeqInt(void)
Enable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:842
INLINE uint8 BDRV_getHB2MinT1OFFReachedSts(void)
Get HB2 Min T1OFF Value Reached BDRV.ASEQOFFSTS.HB2T1OFFMIN.
Definition: bdrv.h:1903
INLINE uint8 BDRV_getExternalLS2MosfetOvercurrentSts(void)
Get External LS2 MOSFET Overcurrent Status BDRV.STS.LS2_OC_STS.
Definition: bdrv.h:1051
void BDRV_setHB3ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Half-bridge 3 Active Driver Detection Interrupt Node Pointer.
INLINE uint8 BDRV_getSH3UndervoltageCompSts(void)
Get SH3 Undervoltage Comparator Status BDRV.STS.SH3_LOW_STS.
Definition: bdrv.h:1177
INLINE void BDRV_disHS2DrainSrcMonitoringInt(void)
Disable HS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:954
void BDRV_setLS2DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Low Side 2 Drain-Source Monitoring Interrupt Node Pointer.
sint8 BDRV_setHSDischrgConstMode(tBDRV_hb e_hb, tBDRV_constCfg s_constDischrgCfg)
Set high-side discharge times and currents for constant mode.
Definition: bdrv.c:818
INLINE uint8 BDRV_getExternalLS3MosfetOvercurrentIntSts(void)
Get External LS3 MOSFET Overcurrent Interrupt Status BDRV.IRQS.LS3_OC_IS.
Definition: bdrv.h:1385
INLINE uint8 BDRV_getHB1DischrgActiveDrv(void)
Get HB1 Switch-Off Active Driver BDRV.HB1OFFVAL.HB1_ACTDRV_OFF.
Definition: bdrv.h:2090
INLINE uint8 BDRV_getHB1ChrgSlopeTimeMeasErr(void)
Get HB1 Switch-On Voltage Slope Time Measurement Value BDRV.HB1ONVAL.HB1_TONDURMERR.
Definition: bdrv.h:2020
INLINE void BDRV_enExternalLS3MosfetOvercurrentInt(void)
Enable External LS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:779
INLINE uint8 BDRV_getHB2ChrgSlopeTimeMeasErr(void)
Get HB2 Switch-On Voltage Slope Time Measurement Value BDRV.HB2ONVAL.HB2_TONDURMERR.
Definition: bdrv.h:2142
INLINE uint8 BDRV_getHB3ActDrvDetectIntSts(void)
Get HB3 Active Driver Detection Interrupt Status BDRV.IRQS.HB3_ACTDRV_IS.
Definition: bdrv.h:1502
INLINE void BDRV_disDrvxDischrgOnVcpOvervoltage(void)
Disable driver discharge on charge pump high voltage (BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS)
Definition: bdrv.h:2364
INLINE uint8 BDRV_getHB3ChrgDlyTime(void)
Get HB3 Switch-On Delay Time Value Until Vsh Change BDRV.HB3ONVAL.HB3_TONDLY.
Definition: bdrv.h:2237
INLINE uint8 BDRV_getDrvSeqErrIntSts(void)
Get Driver Sequence Error Interrupt Status BDRV.IRQS.SEQ_ERR_IS.
Definition: bdrv.h:1511
INLINE void BDRV_clrHS2DrainSrcMonitoringIntSts(void)
Clear HS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.HS2_DS_ISC.
Definition: bdrv.h:1590
INLINE void BDRV_enLS1DrainSrcMonitoringInt(void)
Enable LS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:793
INLINE uint8 BDRV_getLS2DrainSrcMonitoringIntSts(void)
Get LS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.LS2_DS_IS.
Definition: bdrv.h:1421
INLINE uint8 BDRV_getVsdOvervoltageSts(void)
Get Vsd Overvoltage Status BDRV.STS.VSD_UPTH_STS.
Definition: bdrv.h:1231
enum BDRV_offStateDiag tBDRV_offStateDiag
INLINE void BDRV_clrLS3DrainSrcMonitoringIntSts(void)
Clear LS3 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.LS3_DS_ISC.
Definition: bdrv.h:1597
void BDRV_clrFaultSts(void)
Clear all status bits related to bridge driver and charge pump.
Definition: bdrv.c:1581
BDRV_currentCfg
This enum lists the gate currents.
Definition: bdrv.h:199
INLINE void BDRV_disExternalHS3MosfetOvercurrentInt(void)
Disable External HS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:926
INLINE uint8 BDRV_getVsdUndervoltageSts(void)
Get Vsd Undervoltage Status BDRV.STS.VSD_LOTH_STS.
Definition: bdrv.h:1222
INLINE void BDRV_clrExternalHS2MosfetOvercurrentIntSts(void)
Clear External HS2 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.HS2_OC_ISC.
Definition: bdrv.h:1548
sint8 BDRV_setHSChrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqChrgCfg)
Set high-side charge times and currents for sequencer mode.
Definition: bdrv.c:973
INLINE void BDRV_disExternalLS2MosfetOvercurrentInt(void)
Disable External LS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:905
INLINE uint8 BDRV_getHB1DischrgFailDrvSts(void)
Get HB1 Failed Gate Driver During Switch-Off BDRV.ASEQOFFSTS.HB1OFFFAILDRV.
Definition: bdrv.h:1876
INLINE uint8 BDRV_getPh2ZCCompSts(void)
Get Phase2 Zero Crossing Comparator Status BDRV.BEMFC_CTRL.PH2_ZC_STS.
Definition: bdrv.h:2496
enum BDRV_hb tBDRV_hb
INLINE void BDRV_enPh2ZCRiseInt(void)
Enable Phase2 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2422
INLINE uint8 BDRV_getPh3ZCCompSts(void)
Get Phase3 Zero Crossing Comparator Status BDRV.BEMFC_CTRL.PH3_ZC_STS.
Definition: bdrv.h:2505
bool BDRV_getFaultSts(void)
Read all status flags related to bridge driver and charge pump and return true if at least one is act...
Definition: bdrv.c:1521
INLINE uint8 BDRV_getPh1ZCRiseIntSts(void)
Get Phase1 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQS.PH1_ZCRISE_IS.
Definition: bdrv.h:2523
INLINE uint8 BDRV_getHB3DischrgSlopeTime(void)
Get HB3 Switch-Off Voltage Slope Time Value BDRV.HB3OFFVAL.HB3_TOFFDUR.
Definition: bdrv.h:2316
INLINE void BDRV_clrLS2DrainSrcMonitoringIntSts(void)
Clear LS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.LS2_DS_ISC.
Definition: bdrv.h:1583
INLINE uint8 BDRV_getHB2AdaptSeqDischrgMeasFailSts(void)
Get HB2 Adaptive Sequencer Switch-Off Measurement Failure BDRV.ASEQOFFSTS.HB2OFFMF.
Definition: bdrv.h:1921
INLINE uint8 BDRV_getHB3DischrgSlopeTimeMeasErr(void)
Get HB3 Switch-Off Voltage Slope Time Measurement Value BDRV.HB3OFFVAL.HB3_TOFFDURMERR.
Definition: bdrv.h:2325
void BDRV_setExternalLS1MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Low Side 1 Overcurrent Interrupt Node Pointer.
INLINE uint8 BDRV_getHB1ChrgTimeMeasValidSts(void)
Get HB1 Switch-On Measurement Values Valid Flag BDRV.HB1ONVAL.HB1_ONVALVF.
Definition: bdrv.h:2045
INLINE void BDRV_enPh2ZCFallInt(void)
Enable Phase2 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2415
INLINE uint8 BDRV_getSH2UndervoltageCompSts(void)
Get SH2 Undervoltage Comparator Status BDRV.STS.SH2_LOW_STS.
Definition: bdrv.h:1159
INLINE uint8 BDRV_getHB1MinI1ONReachedSts(void)
Get HB1 Min I1ON Value Reached BDRV.ASEQONSTS.HB1I1ONMIN.
Definition: bdrv.h:1696
INLINE uint8 BDRV_getHB2ChrgDlyTime(void)
Get HB2 Switch-On Delay Time Value Until Vsh Change BDRV.HB2ONVAL.HB2_TONDLY.
Definition: bdrv.h:2115
INLINE void BDRV_enHB1AdaptSeqInt(void)
Enable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:835
INLINE uint8 BDRV_getHB2DischrgSlopeTime(void)
Get HB2 Switch-Off Voltage Slope Time Value BDRV.HB2OFFVAL.HB2_TOFFDUR.
Definition: bdrv.h:2194
void BDRV_setDrvSeqErrIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Driver Sequence Error Interrupt Node Pointer.
INLINE void BDRV_enCPUndervoltageCompInt(void)
Enable Charge Pump Undervoltage Comparator Interrupt.
Definition: bdrv.h:884
sint8 BDRV_setLSChrgConstMode(tBDRV_hb e_hb, tBDRV_constCfg s_constChrgCfg)
Set low-side charge times and currents for constant mode.
Definition: bdrv.c:629
INLINE uint8 BDRV_getHB3ChrgActiveDrv(void)
Get HB3 Switch-On Active Driver BDRV.HB3ONVAL.HB3_ACTDRV_ON.
Definition: bdrv.h:2273
INLINE void BDRV_enHB3ActDrvDetectInt(void)
Enable HB3 Active Driver Detection Interrupt.
Definition: bdrv.h:870
INLINE uint8 BDRV_getHB2ChrgSlopeTime(void)
Get HB2 Switch-On Voltage Slope Time Value BDRV.HB2ONVAL.HB2_TONDUR.
Definition: bdrv.h:2133
INLINE void BDRV_enHS2DrainSrcMonitoringInt(void)
Enable HS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:814
INLINE uint8 BDRV_getHB3AdaptSeqIntSts(void)
Get HB3 Adaptive Sequencer Interrupt Status BDRV.IRQS.HB3_ASEQ_IS.
Definition: bdrv.h:1475
INLINE uint8 BDRV_getHB1DischrgSlopeTimeMeasErr(void)
Get HB1 Switch-Off Voltage Slope Time Measurement Value BDRV.HB1OFFVAL.HB1_TOFFDURMERR.
Definition: bdrv.h:2081
INLINE uint8 BDRV_getHB2MaxT12ONReachedSts(void)
Get HB2 Max T12ON Value Reached BDRV.ASEQONSTS.HB2T12ONMAX.
Definition: bdrv.h:1723
void BDRV_setHB1ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Half-bridge 1 Active Driver Detection Interrupt Node Pointer.
INLINE uint8 BDRV_getHB1MaxT12ONReachedSts(void)
Get HB1 Max T12ON Value Reached BDRV.ASEQONSTS.HB1T12ONMAX.
Definition: bdrv.h:1669
INLINE void BDRV_clrExternalLS1MosfetOvercurrentSts(void)
Clear External LS1 MOSFET Overcurrent Status BDRV.STSCLR.LS1_OC_SC.
Definition: bdrv.h:1256
INLINE void BDRV_clrPh2ZCFallIntSts(void)
Clear Phase2 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQCLR.PH2_ZCFALL_ISC.
Definition: bdrv.h:2580
void BDRV_setExternalLS2MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Low Side 2 Overcurrent Interrupt Node Pointer.
INLINE void BDRV_enDrvxDischrgOnVcpOvervoltage(void)
Enable driver discharge on charge pump high voltage (BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS)
Definition: bdrv.h:2357
INLINE uint8 BDRV_getExternalHS3MosfetOvercurrentSts(void)
Get External HS3 MOSFET Overcurrent Status BDRV.STS.HS3_OC_STS.
Definition: bdrv.h:1078
INLINE uint8 BDRV_getPh2ZCRiseIntSts(void)
Get Phase2 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQS.PH2_ZCRISE_IS.
Definition: bdrv.h:2541
INLINE void BDRV_enPh1ZCRiseInt(void)
Enable Phase1 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2408
INLINE void BDRV_disLS2DrainSrcMonitoringInt(void)
Disable LS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:947
INLINE uint8 BDRV_getSH3OvervoltageCompSts(void)
Get SH3 Overvoltage Comparator Status BDRV.STS.SH3_HIGH_STS.
Definition: bdrv.h:1186
INLINE uint8 BDRV_getExternalHS3MosfetOvercurrentIntSts(void)
Get External HS3 MOSFET Overcurrent Interrupt Status BDRV.IRQS.HS3_OC_IS.
Definition: bdrv.h:1394
INLINE void BDRV_disExternalHS1MosfetOvercurrentInt(void)
Disable External HS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:898
INLINE uint8 BDRV_getExternalLS1MosfetOvercurrentIntSts(void)
Get External LS1 MOSFET Overcurrent Interrupt Status BDRV.IRQS.LS1_OC_IS.
Definition: bdrv.h:1349
INLINE void BDRV_disPh3ZCFallInt(void)
Disable Phase3 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2471
INLINE uint8 BDRV_getHB3DischrgTimeMeasValidSts(void)
Get HB3 Switch-Off Measurement Values Valid Flag BDRV.HB3OFFVAL.HB3_OFFVALVF.
Definition: bdrv.h:2350
INLINE void BDRV_disHB2AdaptSeqInt(void)
Disable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:982
INLINE uint8 BDRV_getExternalHS2MosfetOvercurrentIntSts(void)
Get External HS2 MOSFET Overcurrent Interrupt Status BDRV.IRQS.HS2_OC_IS.
Definition: bdrv.h:1376
INLINE uint8 BDRV_getHB1MinT12ONReachedSts(void)
Get HB1 Min T12ON Value Reached BDRV.ASEQONSTS.HB1T12ONMIN.
Definition: bdrv.h:1687
INLINE uint8 BDRV_getLS3DrainSrcMonitoringIntSts(void)
Get LS3 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.LS3_DS_IS.
Definition: bdrv.h:1439
INLINE void BDRV_clrHS1DrainSrcMonitoringIntSts(void)
Clear HS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.HS1_DS_ISC.
Definition: bdrv.h:1576
INLINE uint8 BDRV_getExternalHS1MosfetOvercurrentSts(void)
Get External HS1 MOSFET Overcurrent Status BDRV.STS.HS1_OC_STS.
Definition: bdrv.h:1042
INLINE uint8 BDRV_getExternalHS2MosfetOvercurrentSts(void)
Get External HS2 MOSFET Overcurrent Status BDRV.STS.HS2_OC_STS.
Definition: bdrv.h:1060
enum BDRV_chCfg tBDRV_chCfg
INLINE uint8 BDRV_getHB3ChrgSlopeTime(void)
Get HB3 Switch-On Voltage Slope Time Value BDRV.HB3ONVAL.HB3_TONDUR.
Definition: bdrv.h:2255
INLINE uint8 BDRV_getHB1MaxI1OFFReachedSts(void)
Get HB1 Max I1OFF Value Reached BDRV.ASEQOFFSTS.HB1I1OFFMAX.
Definition: bdrv.h:1840
void BDRV_setPh2ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Phase2 Zero Crossing Fall Interrupt Node Pointer.
INLINE void BDRV_disHB1ActDrvDetectInt(void)
Disable HB1 Active Driver Detection Interrupt.
Definition: bdrv.h:996
void BDRV_setLS1DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Low Side 1 Drain-Source Monitoring Interrupt Node Pointer.
enum BDRV_currentCfg tBDRV_currentCfg
INLINE uint8 BDRV_getPh1ZCCompSts(void)
Get Phase1 Zero Crossing Comparator Status BDRV.BEMFC_CTRL.PH1_ZC_STS.
Definition: bdrv.h:2487
INLINE void BDRV_clrHB1AdaptSeqIntSts(void)
Clear HB1 Adaptive Sequencer Interrupt Status BDRV.IRQCLR.HB1_ASEQ_ISC.
Definition: bdrv.h:1611
INLINE uint8 BDRV_getHB1DischrgTimeMeasValidSts(void)
Get HB1 Switch-Off Measurement Values Valid Flag BDRV.HB1OFFVAL.HB1_OFFVALVF.
Definition: bdrv.h:2106
INLINE void BDRV_enExternalHS2MosfetOvercurrentInt(void)
Enable External HS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:772
sint8 BDRV_init(void)
Initialize all CW registers of the BDRV module.
Definition: bdrv.c:111
INLINE void BDRV_clrHB2ChrgTimeMeasValidSts(void)
Clear HB2 Switch-On Measurement Values Valid Flag BDRV.HB2ONVAL.HB2_ONVALVF_CLR.
Definition: bdrv.h:2158
INLINE uint8 BDRV_getPh3ZCRiseIntSts(void)
Get Phase3 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQS.PH3_ZCRISE_IS.
Definition: bdrv.h:2559
INLINE void BDRV_enHS1DrainSrcMonitoringInt(void)
Enable HS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:800
INLINE uint8 BDRV_getHB3DischrgPhase1Current(void)
Get HB3 Switch-Off Phase 1 Current Value From Adaptive Sequencer BDRV.HB3OFFVAL.HB3_I1OFFVAL.
Definition: bdrv.h:2307
INLINE void BDRV_disExternalHS2MosfetOvercurrentInt(void)
Disable External HS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:912
INLINE uint8 BDRV_getHB3ChrgSlopeTimeMeasErr(void)
Get HB3 Switch-On Voltage Slope Time Measurement Value BDRV.HB3ONVAL.HB3_TONDURMERR.
Definition: bdrv.h:2264
INLINE void BDRV_clrPh3ZCFallIntSts(void)
Clear Phase3 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQCLR.PH3_ZCFALL_ISC.
Definition: bdrv.h:2594
void BDRV_setExternalLS3MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Low Side 3 Overcurrent Interrupt Node Pointer.
INLINE void BDRV_clrHB2ActDrvDetectIntSts(void)
Clear HB2 Active Driver Detection Interrupt Status BDRV.IRQCLR.HB2_ACTDRV_ISC.
Definition: bdrv.h:1639
INLINE uint8 BDRV_getHB1ChrgActiveDrv(void)
Get HB1 Switch-On Active Driver BDRV.HB1ONVAL.HB1_ACTDRV_ON.
Definition: bdrv.h:2029
void BDRV_setHS1DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set High Side 1 Drain-Source Monitoring Interrupt Node Pointer.
INLINE void BDRV_clrExternalLS2MosfetOvercurrentSts(void)
Clear External LS2 MOSFET Overcurrent Status BDRV.STSCLR.LS2_OC_SC.
Definition: bdrv.h:1270
INLINE uint8 BDRV_getHB2ChrgPhase1Current(void)
Get HB2 Switch-On Phase 1 Current Value From Adaptive Sequencer BDRV.HB2ONVAL.HB2_I1ONVAL.
Definition: bdrv.h:2124
tBDRV_offState BDRV_checkOpenLoad(void)
Off-State Diagnosis - Open-Load Detection.
Definition: bdrv.c:1400
uint8 BDRV_getFaults(void)
Read the fault information related to bridge driver and charge pump and provides them encoded in the ...
Definition: bdrv.c:1546
INLINE uint8 BDRV_getHS1DrainSrcMonitoringSts(void)
Get HS1 Off-State Drain Source Monitoring Status BDRV.STS.HS1_DS_STS.
Definition: bdrv.h:1096
INLINE void BDRV_enDrvxDischrgOnVcpUndervoltage(void)
Enable driver discharge on charge pump low voltage (BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN)
Definition: bdrv.h:2385
INLINE void BDRV_enDrvxDischrgOnVsdOvervoltage(void)
Enable driver discharge on VSD high voltage (BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS)
Definition: bdrv.h:2371
INLINE void BDRV_disExternalLS3MosfetOvercurrentInt(void)
Disable External LS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:919
BDRV_offStateDiag
This enum lists the states for off-state detection.
Definition: bdrv.h:174
INLINE uint8 BDRV_getHB2DischrgTimeMeasValidSts(void)
Get HB2 Switch-Off Measurement Values Valid Flag BDRV.HB2OFFVAL.HB2_OFFVALVF.
Definition: bdrv.h:2228
INLINE void BDRV_clrHS2DrainSrcMonitoringSts(void)
Clear HS2 Off-State Drain Source Monitoring Status BDRV.STSCLR.HS2_DS_SC.
Definition: bdrv.h:1319
INLINE uint8 BDRV_getHB2MaxI1ONReachedSts(void)
Get HB2 Max I1ON Value Reached BDRV.ASEQONSTS.HB2I1ONMAX.
Definition: bdrv.h:1732
void BDRV_setExternalHS3MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set High Side 3 Overcurrent Interrupt Node Pointer.
INLINE void BDRV_clrExternalHS2MosfetOvercurrentSts(void)
Clear External HS2 MOSFET Overcurrent Status BDRV.STSCLR.HS2_OC_SC.
Definition: bdrv.h:1277
INLINE uint8 BDRV_getLS2DrainSrcMonitoringSts(void)
Get LS2 Off-State Drain Source Monitoring Status BDRV.STS.LS2_DS_STS.
Definition: bdrv.h:1105
INLINE void BDRV_clrCPUndervoltageCompIntSts(void)
Clear Charge Pump Undervoltage Comparator Interrupt Status BDRV.IRQCLR.VCP_LOTH2_ISC.
Definition: bdrv.h:1660
INLINE uint8 BDRV_getVcpOvervoltageSts(void)
Get Vcp Overvoltage Status BDRV.STS.VCP_UPTH_STS.
Definition: bdrv.h:1213
sint8 BDRV_setHSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg)
Set high-side discharge times and currents for sequencer mode.
Definition: bdrv.c:1143
INLINE void BDRV_clrHS3DrainSrcMonitoringSts(void)
Clear HS3 Off-State Drain Source Monitoring Status BDRV.STSCLR.HS3_DS_SC.
Definition: bdrv.h:1333
INLINE uint8 BDRV_getHB2MinT12ONReachedSts(void)
Get HB2 Min T12ON Value Reached BDRV.ASEQONSTS.HB2T12ONMIN.
Definition: bdrv.h:1741
INLINE void BDRV_clrHS1DrainSrcMonitoringSts(void)
Clear HS1 Off-State Drain Source Monitoring Status BDRV.STSCLR.HS1_DS_SC.
Definition: bdrv.h:1305
INLINE void BDRV_enLS3DrainSrcMonitoringInt(void)
Enable LS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:821
INLINE uint8 BDRV_getVsdOvervoltageCompSts(void)
Get Vsd Overvoltage Comparator Status BDRV.STS.VSD_OV_STS.
Definition: bdrv.h:1249
void BDRV_setPh1ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set Phase1 Zero Crossing Fall Interrupt Node Pointer.
INLINE uint8 BDRV_getHB3AdaptSeqChrgMeasFailSts(void)
Get HB3 Adaptive Sequencer Switch-On Measurement Failure BDRV.ASEQONSTS.HB3ONMF.
Definition: bdrv.h:1813
INLINE uint8 BDRV_getHB3MaxT12ONReachedSts(void)
Get HB3 Max T12ON Value Reached BDRV.ASEQONSTS.HB3T12ONMAX.
Definition: bdrv.h:1777
INLINE uint8 BDRV_getHB3ChrgTimeMeasValidSts(void)
Get HB3 Switch-On Measurement Values Valid Flag BDRV.HB3ONVAL.HB3_ONVALVF.
Definition: bdrv.h:2289
INLINE uint8 BDRV_getHB1MaxI1ONReachedSts(void)
Get HB1 Max I1ON Value Reached BDRV.ASEQONSTS.HB1I1ONMAX.
Definition: bdrv.h:1678
INLINE void BDRV_disLS3DrainSrcMonitoringInt(void)
Disable LS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:961
INLINE void BDRV_clrExternalLS3MosfetOvercurrentIntSts(void)
Clear External LS3 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.LS3_OC_ISC.
Definition: bdrv.h:1555
INLINE uint8 BDRV_getHB1DischrgDlyTime(void)
Get HB1 Switch-Off Delay Time Value Until Vsh Change BDRV.HB1OFFVAL.HB1_TOFFDLY.
Definition: bdrv.h:2054
INLINE void BDRV_clrHB3ActDrvDetectIntSts(void)
Clear HB3 Active Driver Detection Interrupt Status BDRV.IRQCLR.HB3_ACTDRV_ISC.
Definition: bdrv.h:1646
INLINE void BDRV_disHB3ActDrvDetectInt(void)
Disable HB3 Active Driver Detection Interrupt.
Definition: bdrv.h:1010
INLINE void BDRV_clrHS3DrainSrcMonitoringIntSts(void)
Clear HS3 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.HS3_DS_ISC.
Definition: bdrv.h:1604
void BDRV_setHS2DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set High Side 2 Drain-Source Monitoring Interrupt Node Pointer.
INLINE uint8 BDRV_getLS1DrainSrcMonitoringSts(void)
Get LS1 Off-State Drain Source Monitoring Status BDRV.STS.LS1_DS_STS.
Definition: bdrv.h:1087
sint8 BDRV_setHSChrgConstMode(tBDRV_hb e_hb, tBDRV_constCfg s_constChrgCfg)
Set high-side charge times and currents for constant mode.
Definition: bdrv.c:692
INLINE void BDRV_disExternalLS1MosfetOvercurrentInt(void)
Disable External LS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:891
INLINE uint8 BDRV_getHB3MinT12ONReachedSts(void)
Get HB3 Min T12ON Value Reached BDRV.ASEQONSTS.HB3T12ONMIN.
Definition: bdrv.h:1795
INLINE void BDRV_enExternalHS3MosfetOvercurrentInt(void)
Enable External HS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:786
INLINE uint8 BDRV_getExternalHS1MosfetOvercurrentIntSts(void)
Get External HS1 MOSFET Overcurrent Interrupt Status BDRV.IRQS.HS1_OC_IS.
Definition: bdrv.h:1358
INLINE void BDRV_clrPh1ZCRiseIntSts(void)
Clear Phase1 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQCLR.PH1_ZCRISE_ISC.
Definition: bdrv.h:2573
INLINE uint8 BDRV_getHB1ChrgFailDrvSts(void)
Get HB1 Failed Gate Driver During Switch-On BDRV.ASEQONSTS.HB1ONFAILDRV.
Definition: bdrv.h:1714
INLINE uint8 BDRV_getHB3AdaptSeqDischrgMeasFailSts(void)
Get HB3 Adaptive Sequencer Switch-Off Measurement Failure BDRV.ASEQOFFSTS.HB3OFFMF.
Definition: bdrv.h:1975
INLINE void BDRV_clrPh1ZCFallIntSts(void)
Clear Phase1 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQCLR.PH1_ZCFALL_ISC.
Definition: bdrv.h:2566
INLINE void BDRV_clrLS1DrainSrcMonitoringIntSts(void)
Clear LS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.LS1_DS_ISC.
Definition: bdrv.h:1569
INLINE void BDRV_clrLS3DrainSrcMonitoringSts(void)
Clear LS3 Off-State Drain Source Monitoring Status BDRV.STSCLR.LS3_DS_SC.
Definition: bdrv.h:1326
INLINE void BDRV_disHS3DrainSrcMonitoringInt(void)
Disable HS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:968
INLINE void BDRV_clrExternalLS2MosfetOvercurrentIntSts(void)
Clear External LS2 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.LS2_OC_ISC.
Definition: bdrv.h:1541
INLINE void BDRV_clrHB1ActDrvDetectIntSts(void)
Clear HB1 Active Driver Detection Interrupt Status BDRV.IRQCLR.HB1_ACTDRV_ISC.
Definition: bdrv.h:1632
INLINE uint8 BDRV_getExternalLS2MosfetOvercurrentIntSts(void)
Get External LS2 MOSFET Overcurrent Interrupt Status BDRV.IRQS.LS2_OC_IS.
Definition: bdrv.h:1367
INLINE uint8 BDRV_getLS3DrainSrcMonitoringSts(void)
Get LS3 Off-State Drain Source Monitoring Status BDRV.STS.LS3_DS_STS.
Definition: bdrv.h:1123
INLINE uint8 BDRV_getHB2DischrgSlopeTimeMeasErr(void)
Get HB2 Switch-Off Voltage Slope Time Measurement Value BDRV.HB2OFFVAL.HB2_TOFFDURMERR.
Definition: bdrv.h:2203
INLINE uint8 BDRV_getHB1MaxT1OFFReachedSts(void)
Get HB1 Max T1OFF Value Reached BDRV.ASEQOFFSTS.HB1T1OFFMAX.
Definition: bdrv.h:1831
INLINE uint8 BDRV_getHB1MinT1OFFReachedSts(void)
Get HB1 Min T1OFF Value Reached BDRV.ASEQOFFSTS.HB1T1OFFMIN.
Definition: bdrv.h:1849
INLINE uint8 BDRV_getCPOverTempSts(void)
Get Charge Pump Over Temperature Status BDRV.STS.CP_OTSD_STS.
Definition: bdrv.h:1195
INLINE void BDRV_enExternalLS1MosfetOvercurrentInt(void)
Enable External LS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:751
INLINE void BDRV_disLS1DrainSrcMonitoringInt(void)
Disable LS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:933
INLINE uint8 BDRV_getExternalLS3MosfetOvercurrentSts(void)
Get External LS3 MOSFET Overcurrent Status BDRV.STS.LS3_OC_STS.
Definition: bdrv.h:1069
INLINE uint8 BDRV_getHB3MaxI1OFFReachedSts(void)
Get HB3 Max I1OFF Value Reached BDRV.ASEQOFFSTS.HB3I1OFFMAX.
Definition: bdrv.h:1948
INLINE uint8 BDRV_getSH1UndervoltageCompSts(void)
Get SH1 Undervoltage Comparator Status BDRV.STS.SH1_LOW_STS.
Definition: bdrv.h:1141
@ BDRV_chCfg_off
Definition: bdrv.h:149
@ BDRV_chCfg_en
Channel disabled.
Definition: bdrv.h:150
@ BDRV_chCfg_pwm
Channel enabled.
Definition: bdrv.h:151
@ BDRV_chCfg_hsDcs
Channel enabled and static on.
Definition: bdrv.h:153
@ BDRV_chCfg_on
Channel enabled with PWM (CCU7 connection)
Definition: bdrv.h:152
@ BDRV_hb_2
Definition: bdrv.h:163
@ BDRV_hb_1
Definition: bdrv.h:162
@ BDRV_hb_3
Definition: bdrv.h:165
@ BDRV_currentCfg_54mA
Definition: bdrv.h:217
@ BDRV_currentCfg_125mA
Definition: bdrv.h:231
@ BDRV_currentCfg_207mA
Definition: bdrv.h:244
@ BDRV_currentCfg_5mA
Definition: bdrv.h:200
@ BDRV_currentCfg_63mA
Definition: bdrv.h:219
@ BDRV_currentCfg_228mA
Definition: bdrv.h:247
@ BDRV_currentCfg_7mA
Definition: bdrv.h:202
@ BDRV_currentCfg_214mA
Definition: bdrv.h:245
@ BDRV_currentCfg_167mA
Definition: bdrv.h:238
@ BDRV_currentCfg_9mA
Definition: bdrv.h:203
@ BDRV_currentCfg_174mA
Definition: bdrv.h:239
@ BDRV_currentCfg_310mA
Definition: bdrv.h:258
@ BDRV_currentCfg_42mA
Definition: bdrv.h:214
@ BDRV_currentCfg_15mA
Definition: bdrv.h:206
@ BDRV_currentCfg_200mA
Definition: bdrv.h:243
@ BDRV_currentCfg_257mA
Definition: bdrv.h:251
@ BDRV_currentCfg_279mA
Definition: bdrv.h:254
@ BDRV_currentCfg_6mA
Definition: bdrv.h:201
@ BDRV_currentCfg_194mA
Definition: bdrv.h:242
@ BDRV_currentCfg_97mA
Definition: bdrv.h:226
@ BDRV_currentCfg_13mA
Definition: bdrv.h:205
@ BDRV_currentCfg_87mA
Definition: bdrv.h:224
@ BDRV_currentCfg_108mA
Definition: bdrv.h:228
@ BDRV_currentCfg_11mA
Definition: bdrv.h:204
@ BDRV_currentCfg_155mA
Definition: bdrv.h:236
@ BDRV_currentCfg_137mA
Definition: bdrv.h:233
@ BDRV_currentCfg_58mA
Definition: bdrv.h:218
@ BDRV_currentCfg_350mA
Definition: bdrv.h:263
@ BDRV_currentCfg_242mA
Definition: bdrv.h:249
@ BDRV_currentCfg_249mA
Definition: bdrv.h:250
@ BDRV_currentCfg_342mA
Definition: bdrv.h:262
@ BDRV_currentCfg_27mA
Definition: bdrv.h:210
@ BDRV_currentCfg_119mA
Definition: bdrv.h:230
@ BDRV_currentCfg_103mA
Definition: bdrv.h:227
@ BDRV_currentCfg_272mA
Definition: bdrv.h:253
@ BDRV_currentCfg_334mA
Definition: bdrv.h:261
@ BDRV_currentCfg_114mA
Definition: bdrv.h:229
@ BDRV_currentCfg_72mA
Definition: bdrv.h:221
@ BDRV_currentCfg_326mA
Definition: bdrv.h:260
@ BDRV_currentCfg_287mA
Definition: bdrv.h:255
@ BDRV_currentCfg_264mA
Definition: bdrv.h:252
@ BDRV_currentCfg_67mA
Definition: bdrv.h:220
@ BDRV_currentCfg_235mA
Definition: bdrv.h:248
@ BDRV_currentCfg_34mA
Definition: bdrv.h:212
@ BDRV_currentCfg_50mA
Definition: bdrv.h:216
@ BDRV_currentCfg_82mA
Definition: bdrv.h:223
@ BDRV_currentCfg_221mA
Definition: bdrv.h:246
@ BDRV_currentCfg_294mA
Definition: bdrv.h:256
@ BDRV_currentCfg_38mA
Definition: bdrv.h:213
@ BDRV_currentCfg_46mA
Definition: bdrv.h:215
@ BDRV_currentCfg_92mA
Definition: bdrv.h:225
@ BDRV_currentCfg_24mA
Definition: bdrv.h:209
@ BDRV_currentCfg_77mA
Definition: bdrv.h:222
@ BDRV_currentCfg_180mA
Definition: bdrv.h:240
@ BDRV_currentCfg_31mA
Definition: bdrv.h:211
@ BDRV_currentCfg_143mA
Definition: bdrv.h:234
@ BDRV_currentCfg_149mA
Definition: bdrv.h:235
@ BDRV_currentCfg_187mA
Definition: bdrv.h:241
@ BDRV_currentCfg_318mA
Definition: bdrv.h:259
@ BDRV_currentCfg_161mA
Definition: bdrv.h:237
@ BDRV_currentCfg_302mA
Definition: bdrv.h:257
@ BDRV_currentCfg_131mA
Definition: bdrv.h:232
@ BDRV_currentCfg_21mA
Definition: bdrv.h:208
@ BDRV_currentCfg_18mA
Definition: bdrv.h:207
@ BDRV_offStateDiag_short2bat
Definition: bdrv.h:177
@ BDRV_offStateDiag_short2gnd
Definition: bdrv.h:176
@ BDRV_offStateDiag_openload
Definition: bdrv.h:178
@ BDRV_offStateDiag_ok
Definition: bdrv.h:175
#define BDRV
Definition: tle989x.h:24058
__attribute__((noreturn))
Definition: startup_tle989x.c:208
Definition: bdrv.h:185
tBDRV_offStateDiag e_offStateDiagPhase3
Definition: bdrv.h:190
tBDRV_offStateDiag e_offStateDiagPhase2
Definition: bdrv.h:188
tBDRV_offStateDiag e_offStateDiagPhase1
Definition: bdrv.h:187
bool b_globFailSts
Definition: bdrv.h:186
This struct lists the configuration for adaptive sequencer for one half-bridge.
Definition: bdrv.h:326
tBDRV_currentCfg e_aseqMinCurrent
Definition: bdrv.h:327
tBDRV_currentCfg e_aseqMaxCurrent
Definition: bdrv.h:329
uint16 u16_aseqMaxTime_ns
Definition: bdrv.h:330
uint16 u16_aseqMinTime_ns
Definition: bdrv.h:328
This struct lists the configuration in constant mode for one half-bridge.
Definition: bdrv.h:293
tBDRV_currentCfg e_constCurrentFW
Constant time of the active driver.
Definition: bdrv.h:296
uint16 u16_constTimeAct_ns
Constant current of the active driver.
Definition: bdrv.h:295
uint16 u16_constTimeFW_ns
Constant current of the free-wheeling driver.
Definition: bdrv.h:297
tBDRV_currentCfg e_constCurrentAct
Definition: bdrv.h:294
This struct lists the off-state diagnosis status for every phase.
This struct lists the configuration in sequencer mode for one half-bridge.
Definition: bdrv.h:307
tBDRV_currentCfg e_constCurrentFW
Sequencer time, phase 4 of the active driver.
Definition: bdrv.h:316
uint16 u16_seqPhase1TimeAct_ns
Sequencer current, phase 4 of the active driver.
Definition: bdrv.h:312
tBDRV_currentCfg e_seqPhase4CurrentAct
Sequencer current, phase 3 of the active driver.
Definition: bdrv.h:311
uint16 u16_constTimeFW_ns
Constant current of the free-wheeling driver.
Definition: bdrv.h:317
uint16 u16_seqPhase3TimeAct_ns
Sequencer time, phase 2 of the active driver.
Definition: bdrv.h:314
tBDRV_currentCfg e_seqPhase1CurrentAct
Definition: bdrv.h:308
tBDRV_currentCfg e_seqPhase2CurrentAct
Sequencer current, phase 1 of the active driver.
Definition: bdrv.h:309
uint16 u16_seqPhase2TimeAct_ns
Sequencer time, phase 1 of the active driver.
Definition: bdrv.h:313
uint16 u16_seqPhase4TimeAct_ns
Sequencer time, phase 3 of the active driver.
Definition: bdrv.h:315
tBDRV_currentCfg e_seqPhase3CurrentAct
Sequencer current, phase 2 of the active driver.
Definition: bdrv.h:310
Device specific memory layout defines and features.
General type declarations.
#define INLINE
Definition: types.h:167
uint8_t uint8
8 bit unsigned value
Definition: types.h:220
int8_t sint8
8 bit signed value
Definition: types.h:225
uint16_t uint16
16 bit unsigned value
Definition: types.h:221