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  * The applicable license agreement can be found at this pack's installation directory in the file
8  * license/IFX_SW_Licence_MOTIX_LITIX.txt
9  *
10  **********************************************************************************************************************/
26 /*******************************************************************************
27 ** Author(s) Identity **
28 ********************************************************************************
29 ** Initials Name **
30 ** ---------------------------------------------------------------------------**
31 ** DM Daniel Mysliwitz **
32 ** BG Blandine Guillot **
33 ** JO Julia Ott **
34 ** PS Patrik Schwarz **
35 ** VO Vanessa Ongaro **
36 *******************************************************************************/
37 
38 /*******************************************************************************
39 ** Revision Control History **
40 ********************************************************************************
41 ** V0.1.0: 2019-10-28, DM: Initial version **
42 ** V0.2.0: 2019-11-18, BG: Added functions **
43 ** V0.3.0: 2020-04-28, BG: Updated revision history format **
44 ** V0.4.0: 2020-07-10, BG: Added inline functions list **
45 ** V0.5.0: 2020-08-19, BG: Added BEMF functions **
46 ** V0.6.0: 2020-09-16, BG: Added interrupt enable/disable functions **
47 ** ChargePump init separated, init code enabled **
48 ** V0.6.1: 2020-10-06, BG: EP-492: Removed MISRA 2012 errors **
49 ** V0.6.2: 2020-10-16, JO: EP-523: Updated doxygen documentation **
50 ** V0.6.3: 2020-10-20, BG: EP-532: Updated cast in BDRV_getFaults() **
51 ** V0.6.4: 2020-10-21, BG: EP-539: Considered the enable checkbox in CW in **
52 ** the initialization function **
53 ** V0.6.5: 2020-11-12, JO: EP-590: Removed \param none and \return none to **
54 ** avoid doxygen warning **
55 ** Added end of group for doxygen **
56 ** V0.6.6: 2020-11-16, BG: EP-595: Updated BDRV initialisation **
57 ** V0.6.7: 2020-11-20, BG: EP-610: Corrected MISRA 2012 errors **
58 ** The following rules are globally deactivated: **
59 ** - Info 774: Boolean within 'if' always evaluates **
60 ** to False/True **
61 ** - Warning 685: Relational operator '<=' always **
62 ** evaluates to 'true' **
63 ** V0.6.8: 2020-12-18, BG: EP-652: Corrected name of error code variable **
64 ** V0.6.9: 2021-02-10, JO: EP-696: Changed from anonymous to named typedefs **
65 ** to prevent MISRA warning **
66 ** V0.7.0: 2021-04-06, BG: EP-760: Replaced if instructions to check if the **
67 ** module is enabled with preprocessor directives to**
68 ** avoid compiler warnings **
69 ** V0.7.1: 2021-04-29, JO: EP-789: Updated 3 phase handling **
70 ** V0.7.2: 2021-06-02, BG: EP-816: Added missing bitfield settings in the **
71 ** function BDRV_setBridge **
72 ** Added SCU_delay_us functions in the diagnostic **
73 ** functions BDRV_checkShortDiagnosis and **
74 ** BDRV_checkOpenLoad **
75 ** Corrected the DS threshold in BDRV_checkOpenLoad **
76 ** V0.7.3: 2021-07-21, BG: EP-871: Replaced if-condition by switch so that **
77 ** a wrong error code is returned for 3-phase device**
78 ** in the functions BDRV_set{LS/HS}{Chrg/Dischrg}...**
79 ** ...{Constant/Sequencer}Mode **
80 ** V0.7.4: 2021-07-27, BG: EP-814: Corrected the value to clear the register**
81 ** STSCLR **
82 ** V0.7.5: 2021-07-30, BG: EP-877: Corrected MISRA 2012 errors **
83 ** V0.7.6: 2021-08-04, BG: EP-879: Updated BDRV_init() with extra accessors **
84 ** for charge pump register **
85 ** Corrected the value for the CP stages number in **
86 ** while-loop condition **
87 ** Updated limits for CP voltage comparison to VSD **
88 ** V0.7.7: 2021-09-29, BG: EP-880: Updated BDRV_setBridge(..) so that the **
89 ** function does not violate HW requirements when **
90 ** called with specific arguments **
91 ** V0.7.8: 2021-11-08, BG: EP-790: Combined struct typedef for charge and **
92 ** discharge, renamed existing struct elements for **
93 ** active driver, added elements for free-wheeling **
94 ** driver **
95 ** Updated functions according to the AK design step**
96 ** BDRV_set{LS/HS}{Chrg/Dischrg}{Const/Seq}Mode **
97 ** V0.7.9: 2021-11-12, JO: EP-937: Updated copyright and branding **
98 ** V0.8.0: 2022-06-23, JO: EP-1150: Removed ARMCC V6.18 warnings **
99 ** V0.8.1: 2022-07-05, JO: EP-1188: Disabled MISRA rule 9031 locally **
100 ** V0.8.2: 2022-11-17, JO: EP-1342: Updated enum documentation to remove **
101 ** doxygen warning **
102 ** V0.8.3: 2023-04-04, PS: EP-1141: Corrected MISRA warnings **
103 ** V0.9.0: 2024-06-03, JO: EP-1388: Added functions to access single bits **
104 ** of register BDRV->PROT_CTRL **
105 ** V0.9.1: 2024-11-05, JO: EP-1494: Updated license **
106 ** V0.9.2: 2024-11-18, VO: EP-1543: Correct min VCP voltage in BDRV init **
107 *******************************************************************************/
108 
109 #ifndef BDRV_H
110 #define BDRV_H
111 
112 /*******************************************************************************
113 ** Includes **
114 *******************************************************************************/
115 
116 #include "types.h"
117 #include "tle989x.h"
118 #include "tle_variants.h"
119 #include "bdrv_defines.h"
120 
121 /*******************************************************************************
122 ** Global Constant Declarations **
123 *******************************************************************************/
124 
125 /*******************************************************************************
126 ** Global Type Declarations **
127 *******************************************************************************/
128 
133 typedef enum BDRV_chCfg
134 {
139  BDRV_chCfg_hsDcs = 4u
141 
146 typedef enum BDRV_hb
147 {
148  BDRV_hb_1 = 1u,
149  BDRV_hb_2 = 2u,
150 #if (UC_SERIES == 989)
151  BDRV_hb_3 = 3u
152 #endif
154 
159 typedef enum BDRV_offStateDiag
160 {
166 
170 typedef struct BDRV_offState
171 {
175 #if (UC_SERIES == 989)
177 #endif
179 
184 typedef enum BDRV_currentCfg
185 {
251 
252 /*=============================== CONSTANT MODE ==============================*/
253 
254 /* Remove warnings for padding structures */
255 #if defined (__CC_ARM)
256  #pragma push
257  #pragma anon_unions
258 #elif defined (__ICCARM__)
259  #pragma language=extended
260 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
261  #pragma clang diagnostic push
262  #pragma clang diagnostic ignored "-Wpadded"
263 #elif defined (__GNUC__)
264  /* anonymous unions are enabled by default */
265 #elif defined (__TMS470__)
266  /* anonymous unions are enabled by default */
267 #elif defined (__TASKING__)
268  #pragma warning 586
269 #elif defined (__CSMC__)
270  /* anonymous unions are enabled by default */
271 #else
272  #warning Not supported compiler type
273 #endif
274 
278 typedef struct
279 {
285 
286 
287 /*============================== SEQUENCER MODE ==============================*/
288 
292 typedef struct
293 {
304 } tBDRV_seqCfg;
305 
306 /*============================ ADAPTIVE SEQUENCER ============================*/
307 
311 typedef struct
312 {
317 } tBDRV_aseqCfg;
318 
319 #if defined (__CC_ARM)
320  #pragma pop
321 #elif defined (__ICCARM__)
322  /* leave anonymous unions enabled */
323 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
324  #pragma clang diagnostic pop
325 #elif defined (__GNUC__)
326  /* anonymous unions are enabled by default */
327 #elif defined (__TMS470__)
328  /* anonymous unions are enabled by default */
329 #elif defined (__TASKING__)
330  #pragma warning restore
331 #elif defined (__CSMC__)
332  /* anonymous unions are enabled by default */
333 #endif
334 
335 /*******************************************************************************
336 ** Global Function Declarations **
337 *******************************************************************************/
338 
339 /*=================================== BDRV ===================================*/
340 
341 sint8 BDRV_init(void);
342 sint8 BDRV_initCP(void);
343 #if (UC_SERIES == 988)
344  sint8 BDRV_setBridge(tBDRV_chCfg e_ls1Cfg, tBDRV_chCfg e_hs1Cfg, tBDRV_chCfg e_ls2Cfg, tBDRV_chCfg e_hs2Cfg);
345 #elif (UC_SERIES == 989)
346  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);
347 #endif
354 sint8 BDRV_setLSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg);
355 sint8 BDRV_setHSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg);
360 bool BDRV_getFaultSts(void);
361 uint8 BDRV_getFaults(void);
362 void BDRV_clrFaultSts(void);
375 INLINE void BDRV_enHB1AdaptSeqInt(void);
376 INLINE void BDRV_enHB2AdaptSeqInt(void);
377 INLINE void BDRV_enHB3AdaptSeqInt(void);
381 INLINE void BDRV_enDrvSeqErrInt(void);
395 INLINE void BDRV_disHB1AdaptSeqInt(void);
396 INLINE void BDRV_disHB2AdaptSeqInt(void);
397 INLINE void BDRV_disHB3AdaptSeqInt(void);
401 INLINE void BDRV_disDrvSeqErrInt(void);
565 
566 /*================================== BEMFC ===================================*/
567 
568 INLINE void BDRV_enPh1ZCFallInt(void);
569 INLINE void BDRV_enPh1ZCRiseInt(void);
570 INLINE void BDRV_enPh2ZCFallInt(void);
571 INLINE void BDRV_enPh2ZCRiseInt(void);
572 INLINE void BDRV_enPh3ZCFallInt(void);
573 INLINE void BDRV_enPh3ZCRiseInt(void);
574 INLINE void BDRV_disPh1ZCFallInt(void);
575 INLINE void BDRV_disPh1ZCRiseInt(void);
576 INLINE void BDRV_disPh2ZCFallInt(void);
577 INLINE void BDRV_disPh2ZCRiseInt(void);
578 INLINE void BDRV_disPh3ZCFallInt(void);
579 INLINE void BDRV_disPh3ZCRiseInt(void);
595 
596 /*******************************************************************************
597 ** Deprecated Function Declarations **
598 *******************************************************************************/
599 
600 /*=================================== BDRV ===================================*/
601 
605 void BDRV_setExternalLS1MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
606 
610 void BDRV_setExternalHS1MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
611 
615 void BDRV_setExternalLS2MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
616 
620 void BDRV_setExternalHS2MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
621 
625 void BDRV_setExternalLS3MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
626 
630 void BDRV_setExternalHS3MosfetOvercurrentIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
631 
635 void BDRV_setLS1DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
636 
640 void BDRV_setHS1DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
641 
645 void BDRV_setLS2DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
646 
650 void BDRV_setHS2DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
651 
655 void BDRV_setLS3DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
656 
660 void BDRV_setHS3DrainSrcMonitoringIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
661 
665 void BDRV_setHB1AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
666 
670 void BDRV_setHB2AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
671 
675 void BDRV_setHB3AdaptSeqIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
676 
680 void BDRV_setHB1ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
681 
685 void BDRV_setHB2ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
686 
690 void BDRV_setHB3ActDrvDetectIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
691 
695 void BDRV_setDrvSeqErrIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
696 
697 /*================================== BEMFC ===================================*/
698 
702 void BDRV_setPh1ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
703 
707 void BDRV_setPh2ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
708 
712 void BDRV_setPh3ZCFallIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
713 
717 void BDRV_setPh1ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
718 
722 void BDRV_setPh2ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
723 
727 void BDRV_setPh3ZCRiseIntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
728 
729 /*******************************************************************************
730 ** Global Inline Function Definitions **
731 *******************************************************************************/
732 
733 /*=================================== BDRV ===================================*/
734 
738 {
739  BDRV->IRQEN.bit.LS1_OC_IEN = 1u;
740 }
741 
745 {
746  BDRV->IRQEN.bit.HS1_OC_IEN = 1u;
747 }
748 
752 {
753  BDRV->IRQEN.bit.LS2_OC_IEN = 1u;
754 }
755 
759 {
760  BDRV->IRQEN.bit.HS2_OC_IEN = 1u;
761 }
762 
766 {
767  BDRV->IRQEN.bit.LS3_OC_IEN = 1u;
768 }
769 
773 {
774  BDRV->IRQEN.bit.HS3_OC_IEN = 1u;
775 }
776 
780 {
781  BDRV->IRQEN.bit.LS1_DS_IEN = 1u;
782 }
783 
787 {
788  BDRV->IRQEN.bit.HS1_DS_IEN = 1u;
789 }
790 
794 {
795  BDRV->IRQEN.bit.LS2_DS_IEN = 1u;
796 }
797 
801 {
802  BDRV->IRQEN.bit.HS2_DS_IEN = 1u;
803 }
804 
808 {
809  BDRV->IRQEN.bit.LS3_DS_IEN = 1u;
810 }
811 
815 {
816  BDRV->IRQEN.bit.HS3_DS_IEN = 1u;
817 }
818 
822 {
823  BDRV->IRQEN.bit.HB1_ASEQ_IEN = 1u;
824 }
825 
829 {
830  BDRV->IRQEN.bit.HB2_ASEQ_IEN = 1u;
831 }
832 
836 {
837  BDRV->IRQEN.bit.HB3_ASEQ_IEN = 1u;
838 }
839 
843 {
844  BDRV->IRQEN.bit.HB1_ACTDRV_IEN = 1u;
845 }
846 
850 {
851  BDRV->IRQEN.bit.HB2_ACTDRV_IEN = 1u;
852 }
853 
857 {
858  BDRV->IRQEN.bit.HB3_ACTDRV_IEN = 1u;
859 }
860 
864 {
865  BDRV->IRQEN.bit.SEQ_ERR_IEN = 1u;
866 }
867 
871 {
872  BDRV->IRQEN.bit.VCP_LOTH2_IEN = 1u;
873 }
874 
878 {
879  BDRV->IRQEN.bit.LS1_OC_IEN = 0u;
880 }
881 
885 {
886  BDRV->IRQEN.bit.HS1_OC_IEN = 0u;
887 }
888 
892 {
893  BDRV->IRQEN.bit.LS2_OC_IEN = 0u;
894 }
895 
899 {
900  BDRV->IRQEN.bit.HS2_OC_IEN = 0u;
901 }
902 
906 {
907  BDRV->IRQEN.bit.LS3_OC_IEN = 0u;
908 }
909 
913 {
914  BDRV->IRQEN.bit.HS3_OC_IEN = 0u;
915 }
916 
920 {
921  BDRV->IRQEN.bit.LS1_DS_IEN = 0u;
922 }
923 
927 {
928  BDRV->IRQEN.bit.HS1_DS_IEN = 0u;
929 }
930 
934 {
935  BDRV->IRQEN.bit.LS2_DS_IEN = 0u;
936 }
937 
941 {
942  BDRV->IRQEN.bit.HS2_DS_IEN = 0u;
943 }
944 
948 {
949  BDRV->IRQEN.bit.LS3_DS_IEN = 0u;
950 }
951 
955 {
956  BDRV->IRQEN.bit.HS3_DS_IEN = 0u;
957 }
958 
962 {
963  BDRV->IRQEN.bit.HB1_ASEQ_IEN = 0u;
964 }
965 
969 {
970  BDRV->IRQEN.bit.HB2_ASEQ_IEN = 0u;
971 }
972 
976 {
977  BDRV->IRQEN.bit.HB3_ASEQ_IEN = 0u;
978 }
979 
983 {
984  BDRV->IRQEN.bit.HB1_ACTDRV_IEN = 0u;
985 }
986 
990 {
991  BDRV->IRQEN.bit.HB2_ACTDRV_IEN = 0u;
992 }
993 
997 {
998  BDRV->IRQEN.bit.HB3_ACTDRV_IEN = 0u;
999 }
1000 
1004 {
1005  BDRV->IRQEN.bit.SEQ_ERR_IEN = 0u;
1006 }
1007 
1011 {
1012  BDRV->IRQEN.bit.VCP_LOTH2_IEN = 0u;
1013 }
1014 
1020 {
1021  return (uint8)BDRV->STS.bit.LS1_OC_STS;
1022 }
1023 
1029 {
1030  return (uint8)BDRV->STS.bit.HS1_OC_STS;
1031 }
1032 
1038 {
1039  return (uint8)BDRV->STS.bit.LS2_OC_STS;
1040 }
1041 
1047 {
1048  return (uint8)BDRV->STS.bit.HS2_OC_STS;
1049 }
1050 
1056 {
1057  return (uint8)BDRV->STS.bit.LS3_OC_STS;
1058 }
1059 
1065 {
1066  return (uint8)BDRV->STS.bit.HS3_OC_STS;
1067 }
1068 
1074 {
1075  return (uint8)BDRV->STS.bit.LS1_DS_STS;
1076 }
1077 
1083 {
1084  return (uint8)BDRV->STS.bit.HS1_DS_STS;
1085 }
1086 
1092 {
1093  return (uint8)BDRV->STS.bit.LS2_DS_STS;
1094 }
1095 
1101 {
1102  return (uint8)BDRV->STS.bit.HS2_DS_STS;
1103 }
1104 
1110 {
1111  return (uint8)BDRV->STS.bit.LS3_DS_STS;
1112 }
1113 
1119 {
1120  return (uint8)BDRV->STS.bit.HS3_DS_STS;
1121 }
1122 
1128 {
1129  return (uint8)BDRV->STS.bit.SH1_LOW_STS;
1130 }
1131 
1137 {
1138  return (uint8)BDRV->STS.bit.SH1_HIGH_STS;
1139 }
1140 
1146 {
1147  return (uint8)BDRV->STS.bit.SH2_LOW_STS;
1148 }
1149 
1155 {
1156  return (uint8)BDRV->STS.bit.SH2_HIGH_STS;
1157 }
1158 
1164 {
1165  return (uint8)BDRV->STS.bit.SH3_LOW_STS;
1166 }
1167 
1173 {
1174  return (uint8)BDRV->STS.bit.SH3_HIGH_STS;
1175 }
1176 
1182 {
1183  return (uint8)BDRV->STS.bit.CP_OTSD_STS;
1184 }
1185 
1191 {
1192  return (uint8)BDRV->STS.bit.VCP_LOTH1_STS;
1193 }
1194 
1200 {
1201  return (uint8)BDRV->STS.bit.VCP_UPTH_STS;
1202 }
1203 
1209 {
1210  return (uint8)BDRV->STS.bit.VSD_LOTH_STS;
1211 }
1212 
1218 {
1219  return (uint8)BDRV->STS.bit.VSD_UPTH_STS;
1220 }
1221 
1227 {
1228  return (uint8)BDRV->STS.bit.VCP_LOTH2_STS;
1229 }
1230 
1236 {
1237  return (uint8)BDRV->STS.bit.VSD_OV_STS;
1238 }
1239 
1243 {
1244  BDRV->STSCLR.bit.LS1_OC_SC = 1u;
1245 }
1246 
1250 {
1251  BDRV->STSCLR.bit.HS1_OC_SC = 1u;
1252 }
1253 
1257 {
1258  BDRV->STSCLR.bit.LS2_OC_SC = 1u;
1259 }
1260 
1264 {
1265  BDRV->STSCLR.bit.HS2_OC_SC = 1u;
1266 }
1267 
1271 {
1272  BDRV->STSCLR.bit.LS3_OC_SC = 1u;
1273 }
1274 
1278 {
1279  BDRV->STSCLR.bit.HS3_OC_SC = 1u;
1280 }
1281 
1285 {
1286  BDRV->STSCLR.bit.LS1_DS_SC = 1u;
1287 }
1288 
1292 {
1293  BDRV->STSCLR.bit.HS1_DS_SC = 1u;
1294 }
1295 
1299 {
1300  BDRV->STSCLR.bit.LS2_DS_SC = 1u;
1301 }
1302 
1306 {
1307  BDRV->STSCLR.bit.HS2_DS_SC = 1u;
1308 }
1309 
1313 {
1314  BDRV->STSCLR.bit.LS3_DS_SC = 1u;
1315 }
1316 
1320 {
1321  BDRV->STSCLR.bit.HS3_DS_SC = 1u;
1322 }
1323 
1327 {
1328  BDRV->STSCLR.bit.VCP_LOTH2_SC = 1u;
1329 }
1330 
1336 {
1337  return (uint8)BDRV->IRQS.bit.LS1_OC_IS;
1338 }
1339 
1345 {
1346  return (uint8)BDRV->IRQS.bit.HS1_OC_IS;
1347 }
1348 
1354 {
1355  return (uint8)BDRV->IRQS.bit.LS2_OC_IS;
1356 }
1357 
1363 {
1364  return (uint8)BDRV->IRQS.bit.HS2_OC_IS;
1365 }
1366 
1372 {
1373  return (uint8)BDRV->IRQS.bit.LS3_OC_IS;
1374 }
1375 
1381 {
1382  return (uint8)BDRV->IRQS.bit.HS3_OC_IS;
1383 }
1384 
1390 {
1391  return (uint8)BDRV->IRQS.bit.LS1_DS_IS;
1392 }
1393 
1399 {
1400  return (uint8)BDRV->IRQS.bit.HS1_DS_IS;
1401 }
1402 
1408 {
1409  return (uint8)BDRV->IRQS.bit.LS2_DS_IS;
1410 }
1411 
1417 {
1418  return (uint8)BDRV->IRQS.bit.HS2_DS_IS;
1419 }
1420 
1426 {
1427  return (uint8)BDRV->IRQS.bit.LS3_DS_IS;
1428 }
1429 
1435 {
1436  return (uint8)BDRV->IRQS.bit.HS3_DS_IS;
1437 }
1438 
1444 {
1445  return (uint8)BDRV->IRQS.bit.HB1_ASEQ_IS;
1446 }
1447 
1453 {
1454  return (uint8)BDRV->IRQS.bit.HB2_ASEQ_IS;
1455 }
1456 
1462 {
1463  return (uint8)BDRV->IRQS.bit.HB3_ASEQ_IS;
1464 }
1465 
1471 {
1472  return (uint8)BDRV->IRQS.bit.HB1_ACTDRV_IS;
1473 }
1474 
1480 {
1481  return (uint8)BDRV->IRQS.bit.HB2_ACTDRV_IS;
1482 }
1483 
1489 {
1490  return (uint8)BDRV->IRQS.bit.HB3_ACTDRV_IS;
1491 }
1492 
1498 {
1499  return (uint8)BDRV->IRQS.bit.SEQ_ERR_IS;
1500 }
1501 
1507 {
1508  return (uint8)BDRV->IRQS.bit.VCP_LOTH2_IS;
1509 }
1510 
1514 {
1515  BDRV->IRQCLR.bit.LS1_OC_ISC = 1u;
1516 }
1517 
1521 {
1522  BDRV->IRQCLR.bit.HS1_OC_ISC = 1u;
1523 }
1524 
1528 {
1529  BDRV->IRQCLR.bit.LS2_OC_ISC = 1u;
1530 }
1531 
1535 {
1536  BDRV->IRQCLR.bit.HS2_OC_ISC = 1u;
1537 }
1538 
1542 {
1543  BDRV->IRQCLR.bit.LS3_OC_ISC = 1u;
1544 }
1545 
1549 {
1550  BDRV->IRQCLR.bit.HS3_OC_ISC = 1u;
1551 }
1552 
1556 {
1557  BDRV->IRQCLR.bit.LS1_DS_ISC = 1u;
1558 }
1559 
1563 {
1564  BDRV->IRQCLR.bit.HS1_DS_ISC = 1u;
1565 }
1566 
1570 {
1571  BDRV->IRQCLR.bit.LS2_DS_ISC = 1u;
1572 }
1573 
1577 {
1578  BDRV->IRQCLR.bit.HS2_DS_ISC = 1u;
1579 }
1580 
1584 {
1585  BDRV->IRQCLR.bit.LS3_DS_ISC = 1u;
1586 }
1587 
1591 {
1592  BDRV->IRQCLR.bit.HS3_DS_ISC = 1u;
1593 }
1594 
1598 {
1599  BDRV->IRQCLR.bit.HB1_ASEQ_ISC = 1u;
1600 }
1601 
1605 {
1606  BDRV->IRQCLR.bit.HB2_ASEQ_ISC = 1u;
1607 }
1608 
1612 {
1613  BDRV->IRQCLR.bit.HB3_ASEQ_ISC = 1u;
1614 }
1615 
1619 {
1620  BDRV->IRQCLR.bit.HB1_ACTDRV_ISC = 1u;
1621 }
1622 
1626 {
1627  BDRV->IRQCLR.bit.HB2_ACTDRV_ISC = 1u;
1628 }
1629 
1633 {
1634  BDRV->IRQCLR.bit.HB3_ACTDRV_ISC = 1u;
1635 }
1636 
1640 {
1641  BDRV->IRQCLR.bit.SEQ_ERR_ISC = 1u;
1642 }
1643 
1647 {
1648  BDRV->IRQCLR.bit.VCP_LOTH2_ISC = 1u;
1649 }
1650 
1656 {
1657  return (uint8)BDRV->ASEQONSTS.bit.HB1T12ONMAX;
1658 }
1659 
1665 {
1666  return (uint8)BDRV->ASEQONSTS.bit.HB1I1ONMAX;
1667 }
1668 
1674 {
1675  return (uint8)BDRV->ASEQONSTS.bit.HB1T12ONMIN;
1676 }
1677 
1683 {
1684  return (uint8)BDRV->ASEQONSTS.bit.HB1I1ONMIN;
1685 }
1686 
1692 {
1693  return (uint8)BDRV->ASEQONSTS.bit.HB1ONMF;
1694 }
1695 
1701 {
1702  return (uint8)BDRV->ASEQONSTS.bit.HB1ONFAILDRV;
1703 }
1704 
1710 {
1711  return (uint8)BDRV->ASEQONSTS.bit.HB2T12ONMAX;
1712 }
1713 
1719 {
1720  return (uint8)BDRV->ASEQONSTS.bit.HB2I1ONMAX;
1721 }
1722 
1728 {
1729  return (uint8)BDRV->ASEQONSTS.bit.HB2T12ONMIN;
1730 }
1731 
1737 {
1738  return (uint8)BDRV->ASEQONSTS.bit.HB2I1ONMIN;
1739 }
1740 
1746 {
1747  return (uint8)BDRV->ASEQONSTS.bit.HB2ONMF;
1748 }
1749 
1755 {
1756  return (uint8)BDRV->ASEQONSTS.bit.HB2ONFAILDRV;
1757 }
1758 
1764 {
1765  return (uint8)BDRV->ASEQONSTS.bit.HB3T12ONMAX;
1766 }
1767 
1773 {
1774  return (uint8)BDRV->ASEQONSTS.bit.HB3I1ONMAX;
1775 }
1776 
1782 {
1783  return (uint8)BDRV->ASEQONSTS.bit.HB3T12ONMIN;
1784 }
1785 
1791 {
1792  return (uint8)BDRV->ASEQONSTS.bit.HB3I1ONMIN;
1793 }
1794 
1800 {
1801  return (uint8)BDRV->ASEQONSTS.bit.HB3ONMF;
1802 }
1803 
1809 {
1810  return (uint8)BDRV->ASEQONSTS.bit.HB3ONFAILDRV;
1811 }
1812 
1818 {
1819  return (uint8)BDRV->ASEQOFFSTS.bit.HB1T1OFFMAX;
1820 }
1821 
1827 {
1828  return (uint8)BDRV->ASEQOFFSTS.bit.HB1I1OFFMAX;
1829 }
1830 
1836 {
1837  return (uint8)BDRV->ASEQOFFSTS.bit.HB1T1OFFMIN;
1838 }
1839 
1845 {
1846  return (uint8)BDRV->ASEQOFFSTS.bit.HB1I1OFFMIN;
1847 }
1848 
1854 {
1855  return (uint8)BDRV->ASEQOFFSTS.bit.HB1OFFMF;
1856 }
1857 
1863 {
1864  return (uint8)BDRV->ASEQOFFSTS.bit.HB1OFFFAILDRV;
1865 }
1866 
1872 {
1873  return (uint8)BDRV->ASEQOFFSTS.bit.HB2T1OFFMAX;
1874 }
1875 
1881 {
1882  return (uint8)BDRV->ASEQOFFSTS.bit.HB2I1OFFMAX;
1883 }
1884 
1890 {
1891  return (uint8)BDRV->ASEQOFFSTS.bit.HB2T1OFFMIN;
1892 }
1893 
1899 {
1900  return (uint8)BDRV->ASEQOFFSTS.bit.HB2I1OFFMIN;
1901 }
1902 
1908 {
1909  return (uint8)BDRV->ASEQOFFSTS.bit.HB2OFFMF;
1910 }
1911 
1917 {
1918  return (uint8)BDRV->ASEQOFFSTS.bit.HB2OFFFAILDRV;
1919 }
1920 
1926 {
1927  return (uint8)BDRV->ASEQOFFSTS.bit.HB3T1OFFMAX;
1928 }
1929 
1935 {
1936  return (uint8)BDRV->ASEQOFFSTS.bit.HB3I1OFFMAX;
1937 }
1938 
1944 {
1945  return (uint8)BDRV->ASEQOFFSTS.bit.HB3T1OFFMIN;
1946 }
1947 
1953 {
1954  return (uint8)BDRV->ASEQOFFSTS.bit.HB3I1OFFMIN;
1955 }
1956 
1962 {
1963  return (uint8)BDRV->ASEQOFFSTS.bit.HB3OFFMF;
1964 }
1965 
1971 {
1972  return (uint8)BDRV->ASEQOFFSTS.bit.HB3OFFFAILDRV;
1973 }
1974 
1980 {
1981  return (uint8)BDRV->HB1ONVAL.bit.HB1_TONDLY;
1982 }
1983 
1989 {
1990  return (uint8)BDRV->HB1ONVAL.bit.HB1_I1ONVAL;
1991 }
1992 
1998 {
1999  return (uint8)BDRV->HB1ONVAL.bit.HB1_TONDUR;
2000 }
2001 
2007 {
2008  return (uint8)BDRV->HB1ONVAL.bit.HB1_TONDURMERR;
2009 }
2010 
2016 {
2017  return (uint8)BDRV->HB1ONVAL.bit.HB1_ACTDRV_ON;
2018 }
2019 
2023 {
2024  BDRV->HB1ONVAL.bit.HB1_ONVALVF_CLR = 1u;
2025 }
2026 
2032 {
2033  return (uint8)BDRV->HB1ONVAL.bit.HB1_ONVALVF;
2034 }
2035 
2041 {
2042  return (uint8)BDRV->HB1OFFVAL.bit.HB1_TOFFDLY;
2043 }
2044 
2050 {
2051  return (uint8)BDRV->HB1OFFVAL.bit.HB1_I1OFFVAL;
2052 }
2053 
2059 {
2060  return (uint8)BDRV->HB1OFFVAL.bit.HB1_TOFFDUR;
2061 }
2062 
2068 {
2069  return (uint8)BDRV->HB1OFFVAL.bit.HB1_TOFFDURMERR;
2070 }
2071 
2077 {
2078  return (uint8)BDRV->HB1OFFVAL.bit.HB1_ACTDRV_OFF;
2079 }
2080 
2084 {
2085  BDRV->HB1OFFVAL.bit.HB1_OFFVALVF_CLR = 1u;
2086 }
2087 
2093 {
2094  return (uint8)BDRV->HB1OFFVAL.bit.HB1_OFFVALVF;
2095 }
2096 
2102 {
2103  return (uint8)BDRV->HB2ONVAL.bit.HB2_TONDLY;
2104 }
2105 
2111 {
2112  return (uint8)BDRV->HB2ONVAL.bit.HB2_I1ONVAL;
2113 }
2114 
2120 {
2121  return (uint8)BDRV->HB2ONVAL.bit.HB2_TONDUR;
2122 }
2123 
2129 {
2130  return (uint8)BDRV->HB2ONVAL.bit.HB2_TONDURMERR;
2131 }
2132 
2138 {
2139  return (uint8)BDRV->HB2ONVAL.bit.HB2_ACTDRV_ON;
2140 }
2141 
2145 {
2146  BDRV->HB2ONVAL.bit.HB2_ONVALVF_CLR = 1u;
2147 }
2148 
2154 {
2155  return (uint8)BDRV->HB2ONVAL.bit.HB2_ONVALVF;
2156 }
2157 
2163 {
2164  return (uint8)BDRV->HB2OFFVAL.bit.HB2_TOFFDLY;
2165 }
2166 
2172 {
2173  return (uint8)BDRV->HB2OFFVAL.bit.HB2_I1OFFVAL;
2174 }
2175 
2181 {
2182  return (uint8)BDRV->HB2OFFVAL.bit.HB2_TOFFDUR;
2183 }
2184 
2190 {
2191  return (uint8)BDRV->HB2OFFVAL.bit.HB2_TOFFDURMERR;
2192 }
2193 
2199 {
2200  return (uint8)BDRV->HB2OFFVAL.bit.HB2_ACTDRV_OFF;
2201 }
2202 
2206 {
2207  BDRV->HB2OFFVAL.bit.HB2_OFFVALVF_CLR = 1u;
2208 }
2209 
2215 {
2216  return (uint8)BDRV->HB2OFFVAL.bit.HB2_OFFVALVF;
2217 }
2218 
2224 {
2225  return (uint8)BDRV->HB3ONVAL.bit.HB3_TONDLY;
2226 }
2227 
2233 {
2234  return (uint8)BDRV->HB3ONVAL.bit.HB3_I1ONVAL;
2235 }
2236 
2242 {
2243  return (uint8)BDRV->HB3ONVAL.bit.HB3_TONDUR;
2244 }
2245 
2251 {
2252  return (uint8)BDRV->HB3ONVAL.bit.HB3_TONDURMERR;
2253 }
2254 
2260 {
2261  return (uint8)BDRV->HB3ONVAL.bit.HB3_ACTDRV_ON;
2262 }
2263 
2267 {
2268  BDRV->HB3ONVAL.bit.HB3_ONVALVF_CLR = 1u;
2269 }
2270 
2276 {
2277  return (uint8)BDRV->HB3ONVAL.bit.HB3_ONVALVF;
2278 }
2279 
2285 {
2286  return (uint8)BDRV->HB3OFFVAL.bit.HB3_TOFFDLY;
2287 }
2288 
2294 {
2295  return (uint8)BDRV->HB3OFFVAL.bit.HB3_I1OFFVAL;
2296 }
2297 
2303 {
2304  return (uint8)BDRV->HB3OFFVAL.bit.HB3_TOFFDUR;
2305 }
2306 
2312 {
2313  return (uint8)BDRV->HB3OFFVAL.bit.HB3_TOFFDURMERR;
2314 }
2315 
2321 {
2322  return (uint8)BDRV->HB3OFFVAL.bit.HB3_ACTDRV_OFF;
2323 }
2324 
2328 {
2329  BDRV->HB3OFFVAL.bit.HB3_OFFVALVF_CLR = 1u;
2330 }
2331 
2337 {
2338  return (uint8)BDRV->HB3OFFVAL.bit.HB3_OFFVALVF;
2339 }
2340 
2344 {
2345  BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS = 0u;
2346 }
2347 
2351 {
2352  BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS = 1u;
2353 }
2354 
2358 {
2359  BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS = 0u;
2360 }
2361 
2365 {
2366  BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS = 1u;
2367 }
2368 
2372 {
2373  BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN = 1u;
2374 }
2375 
2379 {
2380  BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN = 0u;
2381 }
2382 
2383 /*================================== BEMFC ===================================*/
2384 
2388 {
2389  BDRV->BEMFC_IRQEN.bit.PH1_ZCFALL_IEN = 1u;
2390 }
2391 
2395 {
2396  BDRV->BEMFC_IRQEN.bit.PH1_ZCRISE_IEN = 1u;
2397 }
2398 
2402 {
2403  BDRV->BEMFC_IRQEN.bit.PH2_ZCFALL_IEN = 1u;
2404 }
2405 
2409 {
2410  BDRV->BEMFC_IRQEN.bit.PH2_ZCRISE_IEN = 1u;
2411 }
2412 
2416 {
2417  BDRV->BEMFC_IRQEN.bit.PH3_ZCFALL_IEN = 1u;
2418 }
2419 
2423 {
2424  BDRV->BEMFC_IRQEN.bit.PH3_ZCRISE_IEN = 1u;
2425 }
2426 
2430 {
2431  BDRV->BEMFC_IRQEN.bit.PH1_ZCFALL_IEN = 0u;
2432 }
2433 
2437 {
2438  BDRV->BEMFC_IRQEN.bit.PH1_ZCRISE_IEN = 0u;
2439 }
2440 
2444 {
2445  BDRV->BEMFC_IRQEN.bit.PH2_ZCFALL_IEN = 0u;
2446 }
2447 
2451 {
2452  BDRV->BEMFC_IRQEN.bit.PH2_ZCRISE_IEN = 0u;
2453 }
2454 
2458 {
2459  BDRV->BEMFC_IRQEN.bit.PH3_ZCFALL_IEN = 0u;
2460 }
2461 
2465 {
2466  BDRV->BEMFC_IRQEN.bit.PH3_ZCRISE_IEN = 0u;
2467 }
2468 
2474 {
2475  return (uint8)BDRV->BEMFC_CTRL.bit.PH1_ZC_STS;
2476 }
2477 
2483 {
2484  return (uint8)BDRV->BEMFC_CTRL.bit.PH2_ZC_STS;
2485 }
2486 
2492 {
2493  return (uint8)BDRV->BEMFC_CTRL.bit.PH3_ZC_STS;
2494 }
2495 
2501 {
2502  return (uint8)BDRV->BEMFC_IRQS.bit.PH1_ZCFALL_IS;
2503 }
2504 
2510 {
2511  return (uint8)BDRV->BEMFC_IRQS.bit.PH1_ZCRISE_IS;
2512 }
2513 
2519 {
2520  return (uint8)BDRV->BEMFC_IRQS.bit.PH2_ZCFALL_IS;
2521 }
2522 
2528 {
2529  return (uint8)BDRV->BEMFC_IRQS.bit.PH2_ZCRISE_IS;
2530 }
2531 
2537 {
2538  return (uint8)BDRV->BEMFC_IRQS.bit.PH3_ZCFALL_IS;
2539 }
2540 
2546 {
2547  return (uint8)BDRV->BEMFC_IRQS.bit.PH3_ZCRISE_IS;
2548 }
2549 
2553 {
2554  BDRV->BEMFC_IRQCLR.bit.PH1_ZCFALL_ISC = 1u;
2555 }
2556 
2560 {
2561  BDRV->BEMFC_IRQCLR.bit.PH1_ZCRISE_ISC = 1u;
2562 }
2563 
2567 {
2568  BDRV->BEMFC_IRQCLR.bit.PH2_ZCFALL_ISC = 1u;
2569 }
2570 
2574 {
2575  BDRV->BEMFC_IRQCLR.bit.PH2_ZCRISE_ISC = 1u;
2576 }
2577 
2581 {
2582  BDRV->BEMFC_IRQCLR.bit.PH3_ZCFALL_ISC = 1u;
2583 }
2584 
2588 {
2589  BDRV->BEMFC_IRQCLR.bit.PH3_ZCRISE_ISC = 1u;
2590 }
2591 
2594 #endif /* _BDRV_H */
INLINE uint8 BDRV_getHB2ChrgActiveDrv(void)
Get HB2 Switch-On Active Driver BDRV.HB2ONVAL.HB2_ACTDRV_ON.
Definition: bdrv.h:2137
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:1211
INLINE void BDRV_disDrvSeqErrInt(void)
Disable Driver Sequence Error Interrupt.
Definition: bdrv.h:1003
INLINE uint8 BDRV_getHB2DischrgFailDrvSts(void)
Get HB2 Failed Gate Driver During Switch-Off BDRV.ASEQOFFSTS.HB2OFFFAILDRV.
Definition: bdrv.h:1916
INLINE void BDRV_enPh3ZCRiseInt(void)
Enable Phase3 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2422
INLINE uint8 BDRV_getHB3MinI1OFFReachedSts(void)
Get HB3 Min I1OFF Value Reached BDRV.ASEQOFFSTS.HB3I1OFFMIN.
Definition: bdrv.h:1952
INLINE uint8 BDRV_getHS2DrainSrcMonitoringIntSts(void)
Get HS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.HS2_DS_IS.
Definition: bdrv.h:1416
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:1772
INLINE void BDRV_enExternalLS2MosfetOvercurrentInt(void)
Enable External LS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:751
INLINE void BDRV_disHB1AdaptSeqInt(void)
Disable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:961
INLINE void BDRV_clrHB1DischrgTimeMeasValidSts(void)
Clear HB1 Switch-Off Measurement Values Valid Flag BDRV.HB1OFFVAL.HB1_OFFVALVF_CLR.
Definition: bdrv.h:2083
INLINE uint8 BDRV_getPh2ZCFallIntSts(void)
Get Phase2 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQS.PH2_ZCFALL_IS.
Definition: bdrv.h:2518
INLINE uint8 BDRV_getHB2ChrgFailDrvSts(void)
Get HB2 Failed Gate Driver During Switch-On BDRV.ASEQONSTS.HB2ONFAILDRV.
Definition: bdrv.h:1754
INLINE uint8 BDRV_getHB1DischrgSlopeTime(void)
Get HB1 Switch-Off Voltage Slope Time Value BDRV.HB1OFFVAL.HB1_TOFFDUR.
Definition: bdrv.h:2058
INLINE uint8 BDRV_getHB1ChrgSlopeTime(void)
Get HB1 Switch-On Voltage Slope Time Value BDRV.HB1ONVAL.HB1_TONDUR.
Definition: bdrv.h:1997
INLINE void BDRV_disPh2ZCFallInt(void)
Disable Phase2 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2443
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:849
BDRV_chCfg
This enum lists the bridge driver channel configuration.
Definition: bdrv.h:134
INLINE void BDRV_disHS1DrainSrcMonitoringInt(void)
Disable HS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:926
INLINE uint8 BDRV_getHB1DischrgPhase1Current(void)
Get HB1 Switch-Off Phase 1 Current Value From Adaptive Sequencer BDRV.HB1OFFVAL.HB1_I1OFFVAL.
Definition: bdrv.h:2049
INLINE void BDRV_enPh3ZCFallInt(void)
Enable Phase3 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2415
INLINE void BDRV_enHB3AdaptSeqInt(void)
Enable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:835
INLINE uint8 BDRV_getHB1AdaptSeqDischrgMeasFailSts(void)
Get HB1 Adaptive Sequencer Switch-Off Measurement Failure BDRV.ASEQOFFSTS.HB1OFFMF.
Definition: bdrv.h:1853
INLINE void BDRV_enDrvSeqErrInt(void)
Enable Driver Sequence Error Interrupt.
Definition: bdrv.h:863
INLINE uint8 BDRV_getHB3DischrgDlyTime(void)
Get HB3 Switch-Off Delay Time Value Until Vsh Change BDRV.HB3OFFVAL.HB3_TOFFDLY.
Definition: bdrv.h:2284
INLINE uint8 BDRV_getHB3DischrgFailDrvSts(void)
Get HB3 Failed Gate Driver During Switch-Off BDRV.ASEQOFFSTS.HB3OFFFAILDRV.
Definition: bdrv.h:1970
INLINE void BDRV_enPh1ZCFallInt(void)
Enable Phase1 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2387
INLINE uint8 BDRV_getHS3DrainSrcMonitoringSts(void)
Get HS3 Off-State Drain Source Monitoring Status BDRV.STS.HS3_DS_STS.
Definition: bdrv.h:1118
INLINE void BDRV_disHB3AdaptSeqInt(void)
Disable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:975
INLINE uint8 BDRV_getHB1ActDrvDetectIntSts(void)
Get HB1 Active Driver Detection Interrupt Status BDRV.IRQS.HB1_ACTDRV_IS.
Definition: bdrv.h:1470
sint8 BDRV_setDischrgAdaptSeqMode(tBDRV_aseqCfg s_aseqDischrgCfg)
Set adaptive sequencer for discharge.
Definition: bdrv.c:1240
INLINE uint8 BDRV_getHB3MinT1OFFReachedSts(void)
Get HB3 Min T1OFF Value Reached BDRV.ASEQOFFSTS.HB3T1OFFMIN.
Definition: bdrv.h:1943
INLINE uint8 BDRV_getHB1ChrgDlyTime(void)
Get HB1 Switch-On Delay Time Value Until Vsh Change BDRV.HB1ONVAL.HB1_TONDLY.
Definition: bdrv.h:1979
INLINE void BDRV_disDrvxDischrgOnVcpUndervoltage(void)
Disable driver discharge on charge pump low voltage (BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN)
Definition: bdrv.h:2378
INLINE void BDRV_disDrvxDischrgOnVsdOvervoltage(void)
Disable driver discharge on VSD high voltage (BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS)
Definition: bdrv.h:2364
INLINE void BDRV_disPh3ZCRiseInt(void)
Disable Phase3 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2464
INLINE uint8 BDRV_getHB1AdaptSeqChrgMeasFailSts(void)
Get HB1 Adaptive Sequencer Switch-On Measurement Failure BDRV.ASEQONSTS.HB1ONMF.
Definition: bdrv.h:1691
INLINE uint8 BDRV_getHB2MinI1ONReachedSts(void)
Get HB2 Min I1ON Value Reached BDRV.ASEQONSTS.HB2I1ONMIN.
Definition: bdrv.h:1736
INLINE void BDRV_enHB1ActDrvDetectInt(void)
Enable HB1 Active Driver Detection Interrupt.
Definition: bdrv.h:842
INLINE void BDRV_clrDrvSeqErrIntSts(void)
Clear Driver Sequence Error Interrupt Status BDRV.IRQCLR.SEQ_ERR_ISC.
Definition: bdrv.h:1639
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:1154
INLINE uint8 BDRV_getHB3MaxT1OFFReachedSts(void)
Get HB3 Max T1OFF Value Reached BDRV.ASEQOFFSTS.HB3T1OFFMAX.
Definition: bdrv.h:1925
INLINE void BDRV_disCPUndervoltageCompInt(void)
Disable Charge Pump Undervoltage Comparator Interrupt.
Definition: bdrv.h:1010
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:1398
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:989
INLINE uint8 BDRV_getHB2ActDrvDetectIntSts(void)
Get HB2 Active Driver Detection Interrupt Status BDRV.IRQS.HB2_ACTDRV_IS.
Definition: bdrv.h:1479
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:2162
INLINE void BDRV_disPh1ZCRiseInt(void)
Disable Phase1 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2436
INLINE uint8 BDRV_getPh3ZCFallIntSts(void)
Get Phase3 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQS.PH3_ZCFALL_IS.
Definition: bdrv.h:2536
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:2500
INLINE void BDRV_clrHB2DischrgTimeMeasValidSts(void)
Clear HB2 Switch-Off Measurement Values Valid Flag BDRV.HB2OFFVAL.HB2_OFFVALVF_CLR.
Definition: bdrv.h:2205
INLINE uint8 BDRV_getHB2AdaptSeqChrgMeasFailSts(void)
Get HB2 Adaptive Sequencer Switch-On Measurement Failure BDRV.ASEQONSTS.HB2ONMF.
Definition: bdrv.h:1745
INLINE uint8 BDRV_getHS2DrainSrcMonitoringSts(void)
Get HS2 Off-State Drain Source Monitoring Status BDRV.STS.HS2_DS_STS.
Definition: bdrv.h:1100
INLINE uint8 BDRV_getHB2ChrgTimeMeasValidSts(void)
Get HB2 Switch-On Measurement Values Valid Flag BDRV.HB2ONVAL.HB2_ONVALVF.
Definition: bdrv.h:2153
INLINE void BDRV_clrExternalHS1MosfetOvercurrentSts(void)
Clear External HS1 MOSFET Overcurrent Status BDRV.STSCLR.HS1_OC_SC.
Definition: bdrv.h:1249
INLINE uint8 BDRV_getHB2MinI1OFFReachedSts(void)
Get HB2 Min I1OFF Value Reached BDRV.ASEQOFFSTS.HB2I1OFFMIN.
Definition: bdrv.h:1898
INLINE uint8 BDRV_getHB1MinI1OFFReachedSts(void)
Get HB1 Min I1OFF Value Reached BDRV.ASEQOFFSTS.HB1I1OFFMIN.
Definition: bdrv.h:1844
INLINE void BDRV_clrExternalHS3MosfetOvercurrentIntSts(void)
Clear External HS3 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.HS3_OC_ISC.
Definition: bdrv.h:1548
sint8 BDRV_setLSChrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqChrgCfg)
Set low-side charge times and currents for sequencer mode.
Definition: bdrv.c:868
INLINE void BDRV_clrLS2DrainSrcMonitoringSts(void)
Clear LS2 Off-State Drain Source Monitoring Status BDRV.STSCLR.LS2_DS_SC.
Definition: bdrv.h:1298
INLINE uint8 BDRV_getHB2AdaptSeqIntSts(void)
Get HB2 Adaptive Sequencer Interrupt Status BDRV.IRQS.HB2_ASEQ_IS.
Definition: bdrv.h:1452
INLINE uint8 BDRV_getHB2MaxT1OFFReachedSts(void)
Get HB2 Max T1OFF Value Reached BDRV.ASEQOFFSTS.HB2T1OFFMAX.
Definition: bdrv.h:1871
INLINE void BDRV_clrHB3DischrgTimeMeasValidSts(void)
Clear HB3 Switch-Off Measurement Values Valid Flag BDRV.HB3OFFVAL.HB3_OFFVALVF_CLR.
Definition: bdrv.h:2327
INLINE uint8 BDRV_getHB3ChrgFailDrvSts(void)
Get HB3 Failed Gate Driver During Switch-On BDRV.ASEQONSTS.HB3ONFAILDRV.
Definition: bdrv.h:1808
INLINE void BDRV_disPh2ZCRiseInt(void)
Disable Phase2 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2450
INLINE uint8 BDRV_getLS1DrainSrcMonitoringIntSts(void)
Get LS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.LS1_DS_IS.
Definition: bdrv.h:1389
INLINE void BDRV_enLS2DrainSrcMonitoringInt(void)
Enable LS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:793
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:1434
INLINE void BDRV_clrExternalLS3MosfetOvercurrentSts(void)
Clear External LS3 MOSFET Overcurrent Status BDRV.STSCLR.LS3_OC_SC.
Definition: bdrv.h:1270
INLINE uint8 BDRV_getHB3DischrgActiveDrv(void)
Get HB3 Switch-Off Active Driver BDRV.HB3OFFVAL.HB3_ACTDRV_OFF.
Definition: bdrv.h:2320
INLINE void BDRV_enHS3DrainSrcMonitoringInt(void)
Enable HS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:814
sint8 BDRV_setLSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg)
Set low-side discharge times and currents for sequencer mode.
Definition: bdrv.c:1046
INLINE void BDRV_clrHB3ChrgTimeMeasValidSts(void)
Clear HB3 Switch-On Measurement Values Valid Flag BDRV.HB3ONVAL.HB3_ONVALVF_CLR.
Definition: bdrv.h:2266
INLINE void BDRV_clrExternalHS3MosfetOvercurrentSts(void)
Clear External HS3 MOSFET Overcurrent Status BDRV.STSCLR.HS3_OC_SC.
Definition: bdrv.h:1277
INLINE uint8 BDRV_getHB3ChrgPhase1Current(void)
Get HB3 Switch-On Phase 1 Current Value From Adaptive Sequencer BDRV.HB3ONVAL.HB3_I1ONVAL.
Definition: bdrv.h:2232
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:2573
INLINE uint8 BDRV_getExternalLS1MosfetOvercurrentSts(void)
Get External LS1 MOSFET Overcurrent Status BDRV.STS.LS1_OC_STS.
Definition: bdrv.h:1019
INLINE void BDRV_clrExternalHS1MosfetOvercurrentIntSts(void)
Clear External HS1 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.HS1_OC_ISC.
Definition: bdrv.h:1520
INLINE uint8 BDRV_getHB2DischrgActiveDrv(void)
Get HB2 Switch-Off Active Driver BDRV.HB2OFFVAL.HB2_ACTDRV_OFF.
Definition: bdrv.h:2198
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:739
INLINE uint8 BDRV_getHB3MinI1ONReachedSts(void)
Get HB3 Min I1ON Value Reached BDRV.ASEQONSTS.HB3I1ONMIN.
Definition: bdrv.h:1790
INLINE void BDRV_clrPh3ZCRiseIntSts(void)
Clear Phase3 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQCLR.PH3_ZCRISE_ISC.
Definition: bdrv.h:2587
INLINE uint8 BDRV_getSH1OvervoltageCompSts(void)
Get SH1 Overvoltage Comparator Status BDRV.STS.SH1_HIGH_STS.
Definition: bdrv.h:1136
INLINE void BDRV_clrHB2AdaptSeqIntSts(void)
Clear HB2 Adaptive Sequencer Interrupt Status BDRV.IRQCLR.HB2_ASEQ_ISC.
Definition: bdrv.h:1604
INLINE void BDRV_enExternalHS1MosfetOvercurrentInt(void)
Enable External HS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:744
INLINE uint8 BDRV_getHB2DischrgPhase1Current(void)
Get HB2 Switch-Off Phase 1 Current Value From Adaptive Sequencer BDRV.HB2OFFVAL.HB2_I1OFFVAL.
Definition: bdrv.h:2171
INLINE void BDRV_clrHB1ChrgTimeMeasValidSts(void)
Clear HB1 Switch-On Measurement Values Valid Flag BDRV.HB1ONVAL.HB1_ONVALVF_CLR.
Definition: bdrv.h:2022
INLINE void BDRV_clrExternalLS1MosfetOvercurrentIntSts(void)
Clear External LS1 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.LS1_OC_ISC.
Definition: bdrv.h:1513
INLINE uint8 BDRV_getVcpUndervoltageAnalogCompSts(void)
Get Vcp Undervoltage Analog Comparator Status BDRV.STS.VCP_LOTH2_STS.
Definition: bdrv.h:1226
INLINE void BDRV_clrLS1DrainSrcMonitoringSts(void)
Clear LS1 Off-State Drain Source Monitoring Status BDRV.STSCLR.LS1_DS_SC.
Definition: bdrv.h:1284
INLINE uint8 BDRV_getCPUndervoltageCompIntSts(void)
Get Charge Pump Undervoltage Comparator Interrupt Status BDRV.IRQS.VCP_LOTH2_IS.
Definition: bdrv.h:1506
BDRV_hb
This enum lists the half-bridges.
Definition: bdrv.h:147
INLINE uint8 BDRV_getVcpUndervoltageSts(void)
Get Vcp Undervoltage Status BDRV.STS.VCP_LOTH1_STS.
Definition: bdrv.h:1190
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:2429
INLINE void BDRV_clrCPUndervoltageCompSts(void)
Clear Charge Pump Undervoltage Comparator Status BDRV.STSCLR.VCP_LOTH2_SC.
Definition: bdrv.h:1326
INLINE void BDRV_clrHB3AdaptSeqIntSts(void)
Clear HB3 Adaptive Sequencer Interrupt Status BDRV.IRQCLR.HB3_ASEQ_ISC.
Definition: bdrv.h:1611
INLINE uint8 BDRV_getHB2MaxI1OFFReachedSts(void)
Get HB2 Max I1OFF Value Reached BDRV.ASEQOFFSTS.HB2I1OFFMAX.
Definition: bdrv.h:1880
INLINE uint8 BDRV_getHB1AdaptSeqIntSts(void)
Get HB1 Adaptive Sequencer Interrupt Status BDRV.IRQS.HB1_ASEQ_IS.
Definition: bdrv.h:1443
sint8 BDRV_initCP(void)
Initialize the Charge Pump in the BDRV module.
Definition: bdrv.c:78
INLINE uint8 BDRV_getHB1ChrgPhase1Current(void)
Get HB1 Switch-On Phase 1 Current Value From Adaptive Sequencer BDRV.HB1ONVAL.HB1_I1ONVAL.
Definition: bdrv.h:1988
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:1268
INLINE void BDRV_enHB2AdaptSeqInt(void)
Enable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:828
INLINE uint8 BDRV_getHB2MinT1OFFReachedSts(void)
Get HB2 Min T1OFF Value Reached BDRV.ASEQOFFSTS.HB2T1OFFMIN.
Definition: bdrv.h:1889
INLINE uint8 BDRV_getExternalLS2MosfetOvercurrentSts(void)
Get External LS2 MOSFET Overcurrent Status BDRV.STS.LS2_OC_STS.
Definition: bdrv.h:1037
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:1163
INLINE void BDRV_disHS2DrainSrcMonitoringInt(void)
Disable HS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:940
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:802
INLINE uint8 BDRV_getExternalLS3MosfetOvercurrentIntSts(void)
Get External LS3 MOSFET Overcurrent Interrupt Status BDRV.IRQS.LS3_OC_IS.
Definition: bdrv.h:1371
INLINE uint8 BDRV_getHB1DischrgActiveDrv(void)
Get HB1 Switch-Off Active Driver BDRV.HB1OFFVAL.HB1_ACTDRV_OFF.
Definition: bdrv.h:2076
INLINE uint8 BDRV_getHB1ChrgSlopeTimeMeasErr(void)
Get HB1 Switch-On Voltage Slope Time Measurement Value BDRV.HB1ONVAL.HB1_TONDURMERR.
Definition: bdrv.h:2006
INLINE void BDRV_enExternalLS3MosfetOvercurrentInt(void)
Enable External LS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:765
INLINE uint8 BDRV_getHB2ChrgSlopeTimeMeasErr(void)
Get HB2 Switch-On Voltage Slope Time Measurement Value BDRV.HB2ONVAL.HB2_TONDURMERR.
Definition: bdrv.h:2128
INLINE uint8 BDRV_getHB3ActDrvDetectIntSts(void)
Get HB3 Active Driver Detection Interrupt Status BDRV.IRQS.HB3_ACTDRV_IS.
Definition: bdrv.h:1488
INLINE void BDRV_disDrvxDischrgOnVcpOvervoltage(void)
Disable driver discharge on charge pump high voltage (BDRV->PROT_CTRL.bit.DRVx_VCPUP_DIS)
Definition: bdrv.h:2350
INLINE uint8 BDRV_getHB3ChrgDlyTime(void)
Get HB3 Switch-On Delay Time Value Until Vsh Change BDRV.HB3ONVAL.HB3_TONDLY.
Definition: bdrv.h:2223
INLINE uint8 BDRV_getDrvSeqErrIntSts(void)
Get Driver Sequence Error Interrupt Status BDRV.IRQS.SEQ_ERR_IS.
Definition: bdrv.h:1497
INLINE void BDRV_clrHS2DrainSrcMonitoringIntSts(void)
Clear HS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.HS2_DS_ISC.
Definition: bdrv.h:1576
INLINE void BDRV_enLS1DrainSrcMonitoringInt(void)
Enable LS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:779
INLINE uint8 BDRV_getLS2DrainSrcMonitoringIntSts(void)
Get LS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.LS2_DS_IS.
Definition: bdrv.h:1407
INLINE uint8 BDRV_getVsdOvervoltageSts(void)
Get Vsd Overvoltage Status BDRV.STS.VSD_UPTH_STS.
Definition: bdrv.h:1217
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:1583
void BDRV_clrFaultSts(void)
Clear all status bits related to bridge driver and charge pump.
Definition: bdrv.c:1565
BDRV_currentCfg
This enum lists the gate currents.
Definition: bdrv.h:185
INLINE void BDRV_disExternalHS3MosfetOvercurrentInt(void)
Disable External HS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:912
INLINE uint8 BDRV_getVsdUndervoltageSts(void)
Get Vsd Undervoltage Status BDRV.STS.VSD_LOTH_STS.
Definition: bdrv.h:1208
INLINE void BDRV_clrExternalHS2MosfetOvercurrentIntSts(void)
Clear External HS2 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.HS2_OC_ISC.
Definition: bdrv.h:1534
sint8 BDRV_setHSChrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqChrgCfg)
Set high-side charge times and currents for sequencer mode.
Definition: bdrv.c:957
INLINE void BDRV_disExternalLS2MosfetOvercurrentInt(void)
Disable External LS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:891
INLINE uint8 BDRV_getHB1DischrgFailDrvSts(void)
Get HB1 Failed Gate Driver During Switch-Off BDRV.ASEQOFFSTS.HB1OFFFAILDRV.
Definition: bdrv.h:1862
INLINE uint8 BDRV_getPh2ZCCompSts(void)
Get Phase2 Zero Crossing Comparator Status BDRV.BEMFC_CTRL.PH2_ZC_STS.
Definition: bdrv.h:2482
enum BDRV_hb tBDRV_hb
INLINE void BDRV_enPh2ZCRiseInt(void)
Enable Phase2 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2408
INLINE uint8 BDRV_getPh3ZCCompSts(void)
Get Phase3 Zero Crossing Comparator Status BDRV.BEMFC_CTRL.PH3_ZC_STS.
Definition: bdrv.h:2491
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:1505
INLINE uint8 BDRV_getPh1ZCRiseIntSts(void)
Get Phase1 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQS.PH1_ZCRISE_IS.
Definition: bdrv.h:2509
INLINE uint8 BDRV_getHB3DischrgSlopeTime(void)
Get HB3 Switch-Off Voltage Slope Time Value BDRV.HB3OFFVAL.HB3_TOFFDUR.
Definition: bdrv.h:2302
INLINE void BDRV_clrLS2DrainSrcMonitoringIntSts(void)
Clear LS2 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.LS2_DS_ISC.
Definition: bdrv.h:1569
INLINE uint8 BDRV_getHB2AdaptSeqDischrgMeasFailSts(void)
Get HB2 Adaptive Sequencer Switch-Off Measurement Failure BDRV.ASEQOFFSTS.HB2OFFMF.
Definition: bdrv.h:1907
INLINE uint8 BDRV_getHB3DischrgSlopeTimeMeasErr(void)
Get HB3 Switch-Off Voltage Slope Time Measurement Value BDRV.HB3OFFVAL.HB3_TOFFDURMERR.
Definition: bdrv.h:2311
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:2031
INLINE void BDRV_enPh2ZCFallInt(void)
Enable Phase2 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2401
INLINE uint8 BDRV_getSH2UndervoltageCompSts(void)
Get SH2 Undervoltage Comparator Status BDRV.STS.SH2_LOW_STS.
Definition: bdrv.h:1145
INLINE uint8 BDRV_getHB1MinI1ONReachedSts(void)
Get HB1 Min I1ON Value Reached BDRV.ASEQONSTS.HB1I1ONMIN.
Definition: bdrv.h:1682
INLINE uint8 BDRV_getHB2ChrgDlyTime(void)
Get HB2 Switch-On Delay Time Value Until Vsh Change BDRV.HB2ONVAL.HB2_TONDLY.
Definition: bdrv.h:2101
INLINE void BDRV_enHB1AdaptSeqInt(void)
Enable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:821
INLINE uint8 BDRV_getHB2DischrgSlopeTime(void)
Get HB2 Switch-Off Voltage Slope Time Value BDRV.HB2OFFVAL.HB2_TOFFDUR.
Definition: bdrv.h:2180
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:870
sint8 BDRV_setLSChrgConstMode(tBDRV_hb e_hb, tBDRV_constCfg s_constChrgCfg)
Set low-side charge times and currents for constant mode.
Definition: bdrv.c:613
INLINE uint8 BDRV_getHB3ChrgActiveDrv(void)
Get HB3 Switch-On Active Driver BDRV.HB3ONVAL.HB3_ACTDRV_ON.
Definition: bdrv.h:2259
INLINE void BDRV_enHB3ActDrvDetectInt(void)
Enable HB3 Active Driver Detection Interrupt.
Definition: bdrv.h:856
INLINE uint8 BDRV_getHB2ChrgSlopeTime(void)
Get HB2 Switch-On Voltage Slope Time Value BDRV.HB2ONVAL.HB2_TONDUR.
Definition: bdrv.h:2119
INLINE void BDRV_enHS2DrainSrcMonitoringInt(void)
Enable HS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:800
INLINE uint8 BDRV_getHB3AdaptSeqIntSts(void)
Get HB3 Adaptive Sequencer Interrupt Status BDRV.IRQS.HB3_ASEQ_IS.
Definition: bdrv.h:1461
INLINE uint8 BDRV_getHB1DischrgSlopeTimeMeasErr(void)
Get HB1 Switch-Off Voltage Slope Time Measurement Value BDRV.HB1OFFVAL.HB1_TOFFDURMERR.
Definition: bdrv.h:2067
INLINE uint8 BDRV_getHB2MaxT12ONReachedSts(void)
Get HB2 Max T12ON Value Reached BDRV.ASEQONSTS.HB2T12ONMAX.
Definition: bdrv.h:1709
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:1655
INLINE void BDRV_clrExternalLS1MosfetOvercurrentSts(void)
Clear External LS1 MOSFET Overcurrent Status BDRV.STSCLR.LS1_OC_SC.
Definition: bdrv.h:1242
INLINE void BDRV_clrPh2ZCFallIntSts(void)
Clear Phase2 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQCLR.PH2_ZCFALL_ISC.
Definition: bdrv.h:2566
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:2343
INLINE uint8 BDRV_getExternalHS3MosfetOvercurrentSts(void)
Get External HS3 MOSFET Overcurrent Status BDRV.STS.HS3_OC_STS.
Definition: bdrv.h:1064
INLINE uint8 BDRV_getPh2ZCRiseIntSts(void)
Get Phase2 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQS.PH2_ZCRISE_IS.
Definition: bdrv.h:2527
INLINE void BDRV_enPh1ZCRiseInt(void)
Enable Phase1 Zero Crossing Rising Interrupt.
Definition: bdrv.h:2394
INLINE void BDRV_disLS2DrainSrcMonitoringInt(void)
Disable LS2 Drain Source Monitoring Interrupt.
Definition: bdrv.h:933
INLINE uint8 BDRV_getSH3OvervoltageCompSts(void)
Get SH3 Overvoltage Comparator Status BDRV.STS.SH3_HIGH_STS.
Definition: bdrv.h:1172
INLINE uint8 BDRV_getExternalHS3MosfetOvercurrentIntSts(void)
Get External HS3 MOSFET Overcurrent Interrupt Status BDRV.IRQS.HS3_OC_IS.
Definition: bdrv.h:1380
INLINE void BDRV_disExternalHS1MosfetOvercurrentInt(void)
Disable External HS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:884
INLINE uint8 BDRV_getExternalLS1MosfetOvercurrentIntSts(void)
Get External LS1 MOSFET Overcurrent Interrupt Status BDRV.IRQS.LS1_OC_IS.
Definition: bdrv.h:1335
INLINE void BDRV_disPh3ZCFallInt(void)
Disable Phase3 Zero Crossing Falling Interrupt.
Definition: bdrv.h:2457
INLINE uint8 BDRV_getHB3DischrgTimeMeasValidSts(void)
Get HB3 Switch-Off Measurement Values Valid Flag BDRV.HB3OFFVAL.HB3_OFFVALVF.
Definition: bdrv.h:2336
INLINE void BDRV_disHB2AdaptSeqInt(void)
Disable HB1 Adaptive Sequencer Interrupt.
Definition: bdrv.h:968
INLINE uint8 BDRV_getExternalHS2MosfetOvercurrentIntSts(void)
Get External HS2 MOSFET Overcurrent Interrupt Status BDRV.IRQS.HS2_OC_IS.
Definition: bdrv.h:1362
INLINE uint8 BDRV_getHB1MinT12ONReachedSts(void)
Get HB1 Min T12ON Value Reached BDRV.ASEQONSTS.HB1T12ONMIN.
Definition: bdrv.h:1673
INLINE uint8 BDRV_getLS3DrainSrcMonitoringIntSts(void)
Get LS3 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQS.LS3_DS_IS.
Definition: bdrv.h:1425
INLINE void BDRV_clrHS1DrainSrcMonitoringIntSts(void)
Clear HS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.HS1_DS_ISC.
Definition: bdrv.h:1562
INLINE uint8 BDRV_getExternalHS1MosfetOvercurrentSts(void)
Get External HS1 MOSFET Overcurrent Status BDRV.STS.HS1_OC_STS.
Definition: bdrv.h:1028
INLINE uint8 BDRV_getExternalHS2MosfetOvercurrentSts(void)
Get External HS2 MOSFET Overcurrent Status BDRV.STS.HS2_OC_STS.
Definition: bdrv.h:1046
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:2241
INLINE uint8 BDRV_getHB1MaxI1OFFReachedSts(void)
Get HB1 Max I1OFF Value Reached BDRV.ASEQOFFSTS.HB1I1OFFMAX.
Definition: bdrv.h:1826
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:982
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:2473
INLINE void BDRV_clrHB1AdaptSeqIntSts(void)
Clear HB1 Adaptive Sequencer Interrupt Status BDRV.IRQCLR.HB1_ASEQ_ISC.
Definition: bdrv.h:1597
INLINE uint8 BDRV_getHB1DischrgTimeMeasValidSts(void)
Get HB1 Switch-Off Measurement Values Valid Flag BDRV.HB1OFFVAL.HB1_OFFVALVF.
Definition: bdrv.h:2092
INLINE void BDRV_enExternalHS2MosfetOvercurrentInt(void)
Enable External HS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:758
sint8 BDRV_init(void)
Initialize all CW registers of the BDRV module.
Definition: bdrv.c:94
INLINE void BDRV_clrHB2ChrgTimeMeasValidSts(void)
Clear HB2 Switch-On Measurement Values Valid Flag BDRV.HB2ONVAL.HB2_ONVALVF_CLR.
Definition: bdrv.h:2144
INLINE uint8 BDRV_getPh3ZCRiseIntSts(void)
Get Phase3 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQS.PH3_ZCRISE_IS.
Definition: bdrv.h:2545
INLINE void BDRV_enHS1DrainSrcMonitoringInt(void)
Enable HS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:786
INLINE uint8 BDRV_getHB3DischrgPhase1Current(void)
Get HB3 Switch-Off Phase 1 Current Value From Adaptive Sequencer BDRV.HB3OFFVAL.HB3_I1OFFVAL.
Definition: bdrv.h:2293
INLINE void BDRV_disExternalHS2MosfetOvercurrentInt(void)
Disable External HS2 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:898
INLINE uint8 BDRV_getHB3ChrgSlopeTimeMeasErr(void)
Get HB3 Switch-On Voltage Slope Time Measurement Value BDRV.HB3ONVAL.HB3_TONDURMERR.
Definition: bdrv.h:2250
INLINE void BDRV_clrPh3ZCFallIntSts(void)
Clear Phase3 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQCLR.PH3_ZCFALL_ISC.
Definition: bdrv.h:2580
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:1625
INLINE uint8 BDRV_getHB1ChrgActiveDrv(void)
Get HB1 Switch-On Active Driver BDRV.HB1ONVAL.HB1_ACTDRV_ON.
Definition: bdrv.h:2015
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:1256
INLINE uint8 BDRV_getHB2ChrgPhase1Current(void)
Get HB2 Switch-On Phase 1 Current Value From Adaptive Sequencer BDRV.HB2ONVAL.HB2_I1ONVAL.
Definition: bdrv.h:2110
tBDRV_offState BDRV_checkOpenLoad(void)
Off-State Diagnosis - Open-Load Detection.
Definition: bdrv.c:1384
uint8 BDRV_getFaults(void)
Read the fault information related to bridge driver and charge pump and provides them encoded in the ...
Definition: bdrv.c:1530
INLINE uint8 BDRV_getHS1DrainSrcMonitoringSts(void)
Get HS1 Off-State Drain Source Monitoring Status BDRV.STS.HS1_DS_STS.
Definition: bdrv.h:1082
INLINE void BDRV_enDrvxDischrgOnVcpUndervoltage(void)
Enable driver discharge on charge pump low voltage (BDRV->PROT_CTRL.bit.DRVx_VCPLO_SDEN)
Definition: bdrv.h:2371
INLINE void BDRV_enDrvxDischrgOnVsdOvervoltage(void)
Enable driver discharge on VSD high voltage (BDRV->PROT_CTRL.bit.DRVx_VSDUP_DIS)
Definition: bdrv.h:2357
INLINE void BDRV_disExternalLS3MosfetOvercurrentInt(void)
Disable External LS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:905
BDRV_offStateDiag
This enum lists the states for off-state detection.
Definition: bdrv.h:160
INLINE uint8 BDRV_getHB2DischrgTimeMeasValidSts(void)
Get HB2 Switch-Off Measurement Values Valid Flag BDRV.HB2OFFVAL.HB2_OFFVALVF.
Definition: bdrv.h:2214
INLINE void BDRV_clrHS2DrainSrcMonitoringSts(void)
Clear HS2 Off-State Drain Source Monitoring Status BDRV.STSCLR.HS2_DS_SC.
Definition: bdrv.h:1305
INLINE uint8 BDRV_getHB2MaxI1ONReachedSts(void)
Get HB2 Max I1ON Value Reached BDRV.ASEQONSTS.HB2I1ONMAX.
Definition: bdrv.h:1718
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:1263
INLINE uint8 BDRV_getLS2DrainSrcMonitoringSts(void)
Get LS2 Off-State Drain Source Monitoring Status BDRV.STS.LS2_DS_STS.
Definition: bdrv.h:1091
INLINE void BDRV_clrCPUndervoltageCompIntSts(void)
Clear Charge Pump Undervoltage Comparator Interrupt Status BDRV.IRQCLR.VCP_LOTH2_ISC.
Definition: bdrv.h:1646
INLINE uint8 BDRV_getVcpOvervoltageSts(void)
Get Vcp Overvoltage Status BDRV.STS.VCP_UPTH_STS.
Definition: bdrv.h:1199
sint8 BDRV_setHSDischrgSeqMode(tBDRV_hb e_hb, tBDRV_seqCfg s_seqDischrgCfg)
Set high-side discharge times and currents for sequencer mode.
Definition: bdrv.c:1127
INLINE void BDRV_clrHS3DrainSrcMonitoringSts(void)
Clear HS3 Off-State Drain Source Monitoring Status BDRV.STSCLR.HS3_DS_SC.
Definition: bdrv.h:1319
INLINE uint8 BDRV_getHB2MinT12ONReachedSts(void)
Get HB2 Min T12ON Value Reached BDRV.ASEQONSTS.HB2T12ONMIN.
Definition: bdrv.h:1727
INLINE void BDRV_clrHS1DrainSrcMonitoringSts(void)
Clear HS1 Off-State Drain Source Monitoring Status BDRV.STSCLR.HS1_DS_SC.
Definition: bdrv.h:1291
INLINE void BDRV_enLS3DrainSrcMonitoringInt(void)
Enable LS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:807
INLINE uint8 BDRV_getVsdOvervoltageCompSts(void)
Get Vsd Overvoltage Comparator Status BDRV.STS.VSD_OV_STS.
Definition: bdrv.h:1235
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:1799
INLINE uint8 BDRV_getHB3MaxT12ONReachedSts(void)
Get HB3 Max T12ON Value Reached BDRV.ASEQONSTS.HB3T12ONMAX.
Definition: bdrv.h:1763
INLINE uint8 BDRV_getHB3ChrgTimeMeasValidSts(void)
Get HB3 Switch-On Measurement Values Valid Flag BDRV.HB3ONVAL.HB3_ONVALVF.
Definition: bdrv.h:2275
INLINE uint8 BDRV_getHB1MaxI1ONReachedSts(void)
Get HB1 Max I1ON Value Reached BDRV.ASEQONSTS.HB1I1ONMAX.
Definition: bdrv.h:1664
INLINE void BDRV_disLS3DrainSrcMonitoringInt(void)
Disable LS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:947
INLINE void BDRV_clrExternalLS3MosfetOvercurrentIntSts(void)
Clear External LS3 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.LS3_OC_ISC.
Definition: bdrv.h:1541
INLINE uint8 BDRV_getHB1DischrgDlyTime(void)
Get HB1 Switch-Off Delay Time Value Until Vsh Change BDRV.HB1OFFVAL.HB1_TOFFDLY.
Definition: bdrv.h:2040
INLINE void BDRV_clrHB3ActDrvDetectIntSts(void)
Clear HB3 Active Driver Detection Interrupt Status BDRV.IRQCLR.HB3_ACTDRV_ISC.
Definition: bdrv.h:1632
INLINE void BDRV_disHB3ActDrvDetectInt(void)
Disable HB3 Active Driver Detection Interrupt.
Definition: bdrv.h:996
INLINE void BDRV_clrHS3DrainSrcMonitoringIntSts(void)
Clear HS3 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.HS3_DS_ISC.
Definition: bdrv.h:1590
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:1073
sint8 BDRV_setHSChrgConstMode(tBDRV_hb e_hb, tBDRV_constCfg s_constChrgCfg)
Set high-side charge times and currents for constant mode.
Definition: bdrv.c:676
INLINE void BDRV_disExternalLS1MosfetOvercurrentInt(void)
Disable External LS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:877
INLINE uint8 BDRV_getHB3MinT12ONReachedSts(void)
Get HB3 Min T12ON Value Reached BDRV.ASEQONSTS.HB3T12ONMIN.
Definition: bdrv.h:1781
INLINE void BDRV_enExternalHS3MosfetOvercurrentInt(void)
Enable External HS3 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:772
INLINE uint8 BDRV_getExternalHS1MosfetOvercurrentIntSts(void)
Get External HS1 MOSFET Overcurrent Interrupt Status BDRV.IRQS.HS1_OC_IS.
Definition: bdrv.h:1344
INLINE void BDRV_clrPh1ZCRiseIntSts(void)
Clear Phase1 Zero Crossing Rising Interrupt Status BDRV.BEMFC_IRQCLR.PH1_ZCRISE_ISC.
Definition: bdrv.h:2559
INLINE uint8 BDRV_getHB1ChrgFailDrvSts(void)
Get HB1 Failed Gate Driver During Switch-On BDRV.ASEQONSTS.HB1ONFAILDRV.
Definition: bdrv.h:1700
INLINE uint8 BDRV_getHB3AdaptSeqDischrgMeasFailSts(void)
Get HB3 Adaptive Sequencer Switch-Off Measurement Failure BDRV.ASEQOFFSTS.HB3OFFMF.
Definition: bdrv.h:1961
INLINE void BDRV_clrPh1ZCFallIntSts(void)
Clear Phase1 Zero Crossing Falling Interrupt Status BDRV.BEMFC_IRQCLR.PH1_ZCFALL_ISC.
Definition: bdrv.h:2552
INLINE void BDRV_clrLS1DrainSrcMonitoringIntSts(void)
Clear LS1 Off-State Drain Source Monitoring Interrupt Status BDRV.IRQCLR.LS1_DS_ISC.
Definition: bdrv.h:1555
INLINE void BDRV_clrLS3DrainSrcMonitoringSts(void)
Clear LS3 Off-State Drain Source Monitoring Status BDRV.STSCLR.LS3_DS_SC.
Definition: bdrv.h:1312
INLINE void BDRV_disHS3DrainSrcMonitoringInt(void)
Disable HS3 Drain Source Monitoring Interrupt.
Definition: bdrv.h:954
INLINE void BDRV_clrExternalLS2MosfetOvercurrentIntSts(void)
Clear External LS2 MOSFET Overcurrent Interrupt Status BDRV.IRQCLR.LS2_OC_ISC.
Definition: bdrv.h:1527
INLINE void BDRV_clrHB1ActDrvDetectIntSts(void)
Clear HB1 Active Driver Detection Interrupt Status BDRV.IRQCLR.HB1_ACTDRV_ISC.
Definition: bdrv.h:1618
INLINE uint8 BDRV_getExternalLS2MosfetOvercurrentIntSts(void)
Get External LS2 MOSFET Overcurrent Interrupt Status BDRV.IRQS.LS2_OC_IS.
Definition: bdrv.h:1353
INLINE uint8 BDRV_getLS3DrainSrcMonitoringSts(void)
Get LS3 Off-State Drain Source Monitoring Status BDRV.STS.LS3_DS_STS.
Definition: bdrv.h:1109
INLINE uint8 BDRV_getHB2DischrgSlopeTimeMeasErr(void)
Get HB2 Switch-Off Voltage Slope Time Measurement Value BDRV.HB2OFFVAL.HB2_TOFFDURMERR.
Definition: bdrv.h:2189
INLINE uint8 BDRV_getHB1MaxT1OFFReachedSts(void)
Get HB1 Max T1OFF Value Reached BDRV.ASEQOFFSTS.HB1T1OFFMAX.
Definition: bdrv.h:1817
INLINE uint8 BDRV_getHB1MinT1OFFReachedSts(void)
Get HB1 Min T1OFF Value Reached BDRV.ASEQOFFSTS.HB1T1OFFMIN.
Definition: bdrv.h:1835
INLINE uint8 BDRV_getCPOverTempSts(void)
Get Charge Pump Over Temperature Status BDRV.STS.CP_OTSD_STS.
Definition: bdrv.h:1181
INLINE void BDRV_enExternalLS1MosfetOvercurrentInt(void)
Enable External LS1 MOSFET Overcurrent Interrupt.
Definition: bdrv.h:737
INLINE void BDRV_disLS1DrainSrcMonitoringInt(void)
Disable LS1 Drain Source Monitoring Interrupt.
Definition: bdrv.h:919
INLINE uint8 BDRV_getExternalLS3MosfetOvercurrentSts(void)
Get External LS3 MOSFET Overcurrent Status BDRV.STS.LS3_OC_STS.
Definition: bdrv.h:1055
INLINE uint8 BDRV_getHB3MaxI1OFFReachedSts(void)
Get HB3 Max I1OFF Value Reached BDRV.ASEQOFFSTS.HB3I1OFFMAX.
Definition: bdrv.h:1934
INLINE uint8 BDRV_getSH1UndervoltageCompSts(void)
Get SH1 Undervoltage Comparator Status BDRV.STS.SH1_LOW_STS.
Definition: bdrv.h:1127
@ BDRV_chCfg_off
Definition: bdrv.h:135
@ BDRV_chCfg_en
Channel disabled.
Definition: bdrv.h:136
@ BDRV_chCfg_pwm
Channel enabled.
Definition: bdrv.h:137
@ BDRV_chCfg_hsDcs
Channel enabled and static on.
Definition: bdrv.h:139
@ BDRV_chCfg_on
Channel enabled with PWM (CCU7 connection)
Definition: bdrv.h:138
@ BDRV_hb_2
Definition: bdrv.h:149
@ BDRV_hb_1
Definition: bdrv.h:148
@ BDRV_hb_3
Definition: bdrv.h:151
@ BDRV_currentCfg_54mA
Definition: bdrv.h:203
@ BDRV_currentCfg_125mA
Definition: bdrv.h:217
@ BDRV_currentCfg_207mA
Definition: bdrv.h:230
@ BDRV_currentCfg_5mA
Definition: bdrv.h:186
@ BDRV_currentCfg_63mA
Definition: bdrv.h:205
@ BDRV_currentCfg_228mA
Definition: bdrv.h:233
@ BDRV_currentCfg_7mA
Definition: bdrv.h:188
@ BDRV_currentCfg_214mA
Definition: bdrv.h:231
@ BDRV_currentCfg_167mA
Definition: bdrv.h:224
@ BDRV_currentCfg_9mA
Definition: bdrv.h:189
@ BDRV_currentCfg_174mA
Definition: bdrv.h:225
@ BDRV_currentCfg_310mA
Definition: bdrv.h:244
@ BDRV_currentCfg_42mA
Definition: bdrv.h:200
@ BDRV_currentCfg_15mA
Definition: bdrv.h:192
@ BDRV_currentCfg_200mA
Definition: bdrv.h:229
@ BDRV_currentCfg_257mA
Definition: bdrv.h:237
@ BDRV_currentCfg_279mA
Definition: bdrv.h:240
@ BDRV_currentCfg_6mA
Definition: bdrv.h:187
@ BDRV_currentCfg_194mA
Definition: bdrv.h:228
@ BDRV_currentCfg_97mA
Definition: bdrv.h:212
@ BDRV_currentCfg_13mA
Definition: bdrv.h:191
@ BDRV_currentCfg_87mA
Definition: bdrv.h:210
@ BDRV_currentCfg_108mA
Definition: bdrv.h:214
@ BDRV_currentCfg_11mA
Definition: bdrv.h:190
@ BDRV_currentCfg_155mA
Definition: bdrv.h:222
@ BDRV_currentCfg_137mA
Definition: bdrv.h:219
@ BDRV_currentCfg_58mA
Definition: bdrv.h:204
@ BDRV_currentCfg_350mA
Definition: bdrv.h:249
@ BDRV_currentCfg_242mA
Definition: bdrv.h:235
@ BDRV_currentCfg_249mA
Definition: bdrv.h:236
@ BDRV_currentCfg_342mA
Definition: bdrv.h:248
@ BDRV_currentCfg_27mA
Definition: bdrv.h:196
@ BDRV_currentCfg_119mA
Definition: bdrv.h:216
@ BDRV_currentCfg_103mA
Definition: bdrv.h:213
@ BDRV_currentCfg_272mA
Definition: bdrv.h:239
@ BDRV_currentCfg_334mA
Definition: bdrv.h:247
@ BDRV_currentCfg_114mA
Definition: bdrv.h:215
@ BDRV_currentCfg_72mA
Definition: bdrv.h:207
@ BDRV_currentCfg_326mA
Definition: bdrv.h:246
@ BDRV_currentCfg_287mA
Definition: bdrv.h:241
@ BDRV_currentCfg_264mA
Definition: bdrv.h:238
@ BDRV_currentCfg_67mA
Definition: bdrv.h:206
@ BDRV_currentCfg_235mA
Definition: bdrv.h:234
@ BDRV_currentCfg_34mA
Definition: bdrv.h:198
@ BDRV_currentCfg_50mA
Definition: bdrv.h:202
@ BDRV_currentCfg_82mA
Definition: bdrv.h:209
@ BDRV_currentCfg_221mA
Definition: bdrv.h:232
@ BDRV_currentCfg_294mA
Definition: bdrv.h:242
@ BDRV_currentCfg_38mA
Definition: bdrv.h:199
@ BDRV_currentCfg_46mA
Definition: bdrv.h:201
@ BDRV_currentCfg_92mA
Definition: bdrv.h:211
@ BDRV_currentCfg_24mA
Definition: bdrv.h:195
@ BDRV_currentCfg_77mA
Definition: bdrv.h:208
@ BDRV_currentCfg_180mA
Definition: bdrv.h:226
@ BDRV_currentCfg_31mA
Definition: bdrv.h:197
@ BDRV_currentCfg_143mA
Definition: bdrv.h:220
@ BDRV_currentCfg_149mA
Definition: bdrv.h:221
@ BDRV_currentCfg_187mA
Definition: bdrv.h:227
@ BDRV_currentCfg_318mA
Definition: bdrv.h:245
@ BDRV_currentCfg_161mA
Definition: bdrv.h:223
@ BDRV_currentCfg_302mA
Definition: bdrv.h:243
@ BDRV_currentCfg_131mA
Definition: bdrv.h:218
@ BDRV_currentCfg_21mA
Definition: bdrv.h:194
@ BDRV_currentCfg_18mA
Definition: bdrv.h:193
@ BDRV_offStateDiag_short2bat
Definition: bdrv.h:163
@ BDRV_offStateDiag_short2gnd
Definition: bdrv.h:162
@ BDRV_offStateDiag_openload
Definition: bdrv.h:164
@ BDRV_offStateDiag_ok
Definition: bdrv.h:161
#define BDRV
Definition: tle989x.h:24058
__attribute__((noreturn))
Definition: startup_tle989x.c:193
Definition: bdrv.h:171
tBDRV_offStateDiag e_offStateDiagPhase3
Definition: bdrv.h:176
tBDRV_offStateDiag e_offStateDiagPhase2
Definition: bdrv.h:174
tBDRV_offStateDiag e_offStateDiagPhase1
Definition: bdrv.h:173
bool b_globFailSts
Definition: bdrv.h:172
This struct lists the configuration for adaptive sequencer for one half-bridge.
Definition: bdrv.h:312
tBDRV_currentCfg e_aseqMinCurrent
Definition: bdrv.h:313
tBDRV_currentCfg e_aseqMaxCurrent
Definition: bdrv.h:315
uint16 u16_aseqMaxTime_ns
Definition: bdrv.h:316
uint16 u16_aseqMinTime_ns
Definition: bdrv.h:314
This struct lists the configuration in constant mode for one half-bridge.
Definition: bdrv.h:279
tBDRV_currentCfg e_constCurrentFW
Constant time of the active driver.
Definition: bdrv.h:282
uint16 u16_constTimeAct_ns
Constant current of the active driver.
Definition: bdrv.h:281
uint16 u16_constTimeFW_ns
Constant current of the free-wheeling driver.
Definition: bdrv.h:283
tBDRV_currentCfg e_constCurrentAct
Definition: bdrv.h:280
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:293
tBDRV_currentCfg e_constCurrentFW
Sequencer time, phase 4 of the active driver.
Definition: bdrv.h:302
uint16 u16_seqPhase1TimeAct_ns
Sequencer current, phase 4 of the active driver.
Definition: bdrv.h:298
tBDRV_currentCfg e_seqPhase4CurrentAct
Sequencer current, phase 3 of the active driver.
Definition: bdrv.h:297
uint16 u16_constTimeFW_ns
Constant current of the free-wheeling driver.
Definition: bdrv.h:303
uint16 u16_seqPhase3TimeAct_ns
Sequencer time, phase 2 of the active driver.
Definition: bdrv.h:300
tBDRV_currentCfg e_seqPhase1CurrentAct
Definition: bdrv.h:294
tBDRV_currentCfg e_seqPhase2CurrentAct
Sequencer current, phase 1 of the active driver.
Definition: bdrv.h:295
uint16 u16_seqPhase2TimeAct_ns
Sequencer time, phase 1 of the active driver.
Definition: bdrv.h:299
uint16 u16_seqPhase4TimeAct_ns
Sequencer time, phase 3 of the active driver.
Definition: bdrv.h:301
tBDRV_currentCfg e_seqPhase3CurrentAct
Sequencer current, phase 2 of the active driver.
Definition: bdrv.h:296
Device specific memory layout defines and features.
General type declarations.
#define INLINE
Definition: types.h:151
uint8_t uint8
8 bit unsigned value
Definition: types.h:204
int8_t sint8
8 bit signed value
Definition: types.h:209
uint16_t uint16
16 bit unsigned value
Definition: types.h:205