drv8353s.h
Go to the documentation of this file.
1 //#############################################################################
2 // $TI Release: MotorControl SDK v4.01.00.00 $
3 // $Release Date: Mon Mar 11 18:37:41 CDT 2019 $
4 // $Copyright:
5 // Copyright (C) 2017-2019 Texas Instruments Incorporated - http://www.ti.com/
6 //
7 // Redistribution and use in source and binary forms, with or without
8 // modification, are permitted provided that the following conditions
9 // are met:
10 //
11 // Redistributions of source code must retain the above copyright
12 // notice, this list of conditions and the following disclaimer.
13 //
14 // Redistributions in binary form must reproduce the above copyright
15 // notice, this list of conditions and the following disclaimer in the
16 // documentation and/or other materials provided with the
17 // distribution.
18 //
19 // Neither the name of Texas Instruments Incorporated nor the names of
20 // its contributors may be used to endorse or promote products derived
21 // from this software without specific prior written permission.
22 //
23 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 // $
35 //#############################################################################
36 
37 
42 
43 
44 #ifndef DRV8353S_H
45 #define DRV8353S_H
46 
47 
48 //*****************************************************************************
49 //
50 // If building with a C++ compiler, make all of the definitions in this header
51 // have a C binding.
52 //
53 //*****************************************************************************
54 #ifdef __cplusplus
55 extern "C"
56 {
57 #endif
58 
59 //*****************************************************************************
60 //
63 //
64 //*****************************************************************************
65 
66 // the includes
67 #include <math.h>
68 
69 // drivers
70 #include "spi.h"
71 #include "gpio.h"
72 
73 // **************************************************************************
74 // modules
75 
76 // **************************************************************************
77 // solutions
78 
79 // **************************************************************************
80 // the defines
81 
84 #define DRV8353_ADDR_MASK (0x7800)
85 
88 #define DRV8353_DATA_MASK (0x07FF)
89 
92 #define DRV8353_RW_MASK (0x8000)
93 
96 #define statReg00_addr 0x00
97 #define statReg01_addr 0x01
98 #define ctrlReg02_addr 0x02
99 #define ctrlReg03_addr 0x03
100 #define ctrlReg04_addr 0x04
101 #define ctrlReg05_addr 0x05
102 #define ctrlReg06_addr 0x06
103 #define ctrlReg07_addr 0x07
104 
105 //
106 // STATUS00
107 //
110 #define DRV8353_FAULT_TYPE_MASK (0x07FF)
111 
112 #define DRV8353_STATUS00_VDS_LC_BITS (1 << 0)
113 #define DRV8353_STATUS00_VDS_HC_BITS (1 << 1)
114 #define DRV8353_STATUS00_VDS_LB_BITS (1 << 2)
115 #define DRV8353_STATUS00_VDS_HB_BITS (1 << 3)
116 #define DRV8353_STATUS00_VDS_LA_BITS (1 << 4)
117 #define DRV8353_STATUS00_VDS_HA_BITS (1 << 5)
118 
121 #define DRV8353_STATUS00_OTSD_BITS (1 << 6)
122 #define DRV8353_STATUS00_UVLO_BITS (1 << 7)
123 #define DRV8353_STATUS00_GDF_BITS (1 << 8)
124 #define DRV8353_STATUS00_VDS_OCP_BITS (1 << 9)
125 #define DRV8353_STATUS00_FAULT_BITS (1 << 10)
126 
127 //
128 // STATUS01
129 //
132 #define DRV8353_STATUS01_VGS_LC_BITS (1 << 0)
133 
136 #define DRV8353_STATUS01_VGS_HC_BITS (1 << 1)
137 
140 #define DRV8353_STATUS01_VGS_LB_BITS (1 << 2)
141 
144 #define DRV8353_STATUS01_VGS_HB_BITS (1 << 3)
145 
148 #define DRV8353_STATUS01_VGS_LA_BITS (1 << 4)
149 
152 #define DRV8353_STATUS01_VGS_HA_BITS (1 << 5)
153 
156 #define DRV8353_STATUS01_CPUV_BITS (1 << 6)
157 
160 #define DRV8353_STATUS01_OTW_BITS (1 << 7)
161 
164 #define DRV8353_STATUS01_SC_OC_BITS (1 << 8)
165 
168 #define DRV8353_STATUS01_SB_OC_BITS (1 << 9)
169 
172 #define DRV8353_STATUS01_SA_OC_BITS (1 << 10)
173 
174 //
175 // CTRL02
176 //
179 #define DRV8353_CTRL02_CLR_FLT_BITS (1 << 0)
180 
183 #define DRV8353_CTRL02_BRAKE_BITS (1 << 1)
184 
187 #define DRV8353_CTRL02_COAST_BITS (1 << 2)
188 
191 #define DRV8353_CTRL02_PWM1_DIR_BITS (1 << 3)
192 
195 #define DRV8353_CTRL02_PWM1_COM_BITS (1 << 4)
196 
199 #define DRV8353_CTRL02_PWM_MODE_BITS (3 << 5)
200 
203 #define DRV8353_CTRL02_OTW_REP_BITS (1 << 7)
204 
207 #define DRV8353_CTRL02_DIS_GDF_BITS (1 << 8)
208 
211 #define DRV8353_CTRL02_DIS_CPUV_BITS (1 << 9)
212 
215 #define DRV8353_CTRL02_RESERVED1_BITS (1 << 10)
216 
217 //
218 // CTRL03
219 //
222 #define DRV8353_CTRL03_IDRIVEN_HS_BITS (15 << 0)
223 
226 #define DRV8353_CTRL03_IDRIVEP_HS_BITS (15 << 4)
227 
230 #define DRV8353_CTRL03_LOCK_BITS (7 << 8)
231 
232 //
233 // CTRL04
234 //
237 #define DRV8353_CTRL04_IDRIVEN_LS_BITS (15 << 0)
238 
241 #define DRV8353_CTRL04_IDRIVEP_LS_BITS (15 << 4)
242 
245 #define DRV8353_CTRL04_TDRIVE_BITS (3 << 8)
246 
249 #define DRV8353_CTRL04_CBC_BITS (1 << 10)
250 
251 //
252 // CTRL05
253 //
256 #define DRV8353_CTRL05_VDS_LVL_BITS (15 << 0)
257 
260 #define DRV8353_CTRL05_OCP_DEG_BITS (3 << 4)
261 
264 #define DRV8353_CTRL05_OCP_MODE_BITS (3 << 6)
265 
268 #define DRV8353_CTRL05_DEAD_TIME_BITS (3 << 8)
269 
272 #define DRV8353_CTRL05_TRETRY_BITS (1 << 10)
273 
274 //
275 // CTRL06
276 //
279 #define DRV8353_CTRL06_SEN_LVL_BITS (3 << 0)
280 
283 #define DRV8353_CTRL06_CSA_CAL_C_BITS (1 << 2)
284 
287 #define DRV8353_CTRL06_CSA_CAL_B_BITS (1 << 3)
288 
291 #define DRV8353_CTRL06_CSA_CAL_A_BITS (1 << 4)
292 
295 #define DRV8353_CTRL06_DIS_SEN_BITS (1 << 5)
296 
299 #define DRV8353_CTRL06_CSA_GAIN_BITS (3 << 6)
300 
303 #define DRV8353_CTRL06_LS_REF_BITS (1 << 8)
304 
307 #define DRV8353_CTRL06_VREF_DIV_BITS (1 << 9)
308 
311 #define DRV8353_CTRL06_CSA_FET_BITS (1 << 10)
312 
313 
314 //
315 // CTRL06
316 //
319 #define DRV8353_CTRL07_CAL_MODE_BITS (1 << 0)
320 // **************************************************************************
321 // the typedefs
322 
323 //------------------------------------------------------------------------------
326 typedef enum
327 {
331 
334 typedef enum
335 {
345 
348 typedef enum
349 {
350  DRV8353_VDS_LC = (1 << 0),
351  DRV8353_VDS_HC = (1 << 1),
352  DRV8353_VDS_LB = (1 << 2),
353  DRV8353_VDS_HB = (1 << 3),
354  DRV8353_VDS_LA = (1 << 4),
355  DRV8353_VDS_HA = (1 << 5),
356  DRV8353_OTSD = (1 << 6),
357  DRV8353_UVLO = (1 << 7),
358  DRV8353_GDF = (1 << 8),
359  DRV8353_VDS_OCP = (1 << 9),
360  DRV8353_FAULT = (1 << 10)
362 
365 typedef enum
366 {
367  DRV8353_VGS_LC = (1 << 0),
368  DRV8353_VGS_HC = (1 << 1),
369  DRV8353_VGS_LB = (1 << 2),
370  DRV8353_VGS_HB = (1 << 3),
371  DRV8353_VGS_LA = (1 << 4),
372  DRV8353_VGS_HA = (1 << 5),
373  DRV8353_CPUV = (1 << 6),
374  DRV8353_OTW = (1 << 7),
375  DRV8353_SC_OC = (1 << 8),
376  DRV8353_SB_OC = (1 << 9),
377  DRV8353_SA_OC = (1 << 10)
379 
382 typedef enum
383 {
388 
392 typedef enum
393 {
411 
415 typedef enum
416 {
434 
438 typedef enum
439 {
443 
447 typedef enum
448 {
454 
458 typedef enum
459 {
477 
481 typedef enum
482 {
500 
503 typedef enum
504 {
522 
526 typedef enum
527 {
533 
536 typedef enum
537 {
543 
546 typedef enum
547 {
553 
556 typedef enum
557 {
563 
564 
567 typedef enum
568 {
574 
575 //------------------------------------------------------------------------------
578 struct DRV8353_STAT00_BITS { // bits description
579  bool VDS_LC:1; // Bits 0
580  bool VDS_HC:1; // Bits 1
581  bool VDS_LB:1; // Bits 2
582  bool VDS_HB:1; // Bits 3
583  bool VDS_LA:1; // Bits 4
584  bool VDS_HA:1; // Bits 5
585  bool OTSD:1; // Bits 6
586  bool UVLO:1; // Bits 7
587  bool GDF:1; // Bits 8
588  bool VDS_OCP:1; // Bits 9
589  bool FAULT:1; // Bits 10
590  uint16_t rsvd2:5; // 15:11 Reserved
591 };
592 
594 {
595  uint16_t all;
597 };
598 
601 struct DRV8353_STAT01_BITS { // bits description
602  bool VGS_LC:1; // Bits 0
603  bool VGS_HC:1; // Bits 1
604  bool VGS_LB:1; // Bits 2
605  bool VGS_HB:1; // Bits 3
606  bool VGS_LA:1; // Bits 4
607  bool VGS_HA:1; // Bits 5
608  bool CPUV:1; // Bits 6
609  bool OTW:1; // Bits 7
610  bool SC_OC:1; // Bits 8
611  bool SB_OC:1; // Bits 9
612  bool SA_OC:1; // Bits 10
613  uint16_t rsvd2:5; // 15:11 Reserved
614 };
615 
617 {
618  uint16_t all;
620 };
621 
624 struct DRV8353_CTRL02_BITS { // bits description
625  bool CLR_FLT:1; // Bits 0
626  bool BRAKE:1; // Bits 1
627  bool COAST:1; // Bits 2
628  bool PWM1_DIR:1; // Bits 3
629  bool PWM1_COM:1; // Bits 4
631  bool OTW_REP:1; // Bits 7
632  bool DIS_GDF:1; // Bits 8
633  bool DIS_GPUV:1; // Bits 9
634  bool OCP_ACT:1; // Bits 10
635  uint16_t rsvd2:5; // 15:11 Reserved
636 };
637 
639 {
640  uint16_t all;
642 };
643 
646 struct DRV8353_CTRL03_BITS { // bits description
649  DRV8353_CTRL03_Lock_e LOCK:3; // Bits 10-8
650  uint16_t rsvd:5; // 15:11 Reserved
651 };
652 
654 {
655  uint16_t all;
657 };
658 
661 struct DRV8353_CTRL04_BITS { // bits description
665  bool CBC:1; // Bits 10
666  uint16_t rsvd:5; // 15:11 Reserved
667 };
668 
670 {
671  uint16_t all;
673 };
674 
677 struct DRV8353_CTRL05_BITS { // bits description
682  bool TRETRY:1; // Bits 10
683  uint16_t rsvd:5; // 15:11 Reserved
684 };
685 
687 {
688  uint16_t all;
690 };
691 
694 struct DRV8353_CTRL06_BITS { // bits description
696  bool CSA_CAL_C:1; // Bits 2
697  bool CSA_CAL_B:1; // Bits 3
698  bool CSA_CAL_A:1; // Bits 4
699  bool DIS_SEN:1; // Bits 5
701  bool LS_REF:1; // Bits 8
702  bool VREF_DIV:1; // Bits 9
703  bool CSA_FET:1; // Bits 10
704  uint16_t rsvd:5; // 15:11 Reserved
705 };
706 
708 {
709  uint16_t all;
711 };
712 
715 struct DRV8353_CTRL07_BITS { // bits description
716  bool CAL_MODE:1; // Bits 0
717  uint16_t rsvd1:10; // 10:1 Reserved
718  uint16_t rsvd2:5; // 15:11 Reserved
719 };
720 
722 {
723  uint16_t all;
725 };
726 
729 typedef struct _DRV8353_VARS_t_
730 {
733 
740 
741  bool writeCmd;
742  bool readCmd;
743  uint16_t manWriteAddr;
744  uint16_t manReadAddr;
745  uint16_t manWriteData;
746  uint16_t manReadData;
750 
754 
757 typedef struct _DRV8353_Obj_
758 {
759  uint32_t spiHandle;
760  uint32_t gpioNumber_CS;
761  uint32_t gpioNumber_EN;
762  bool rxTimeOut;
764 } DRV8353_Obj;
765 
769 
772 typedef uint16_t DRV_Word_t;
773 
774 // **************************************************************************
775 // the globals
776 
777 // **************************************************************************
778 // the function prototypes
779 
785 extern DRV8353_Handle DRV8353_init(void *pMemory);
786 
793  const DRV8353_CtrlMode_e ctrlMode,
794  const DRV8353_Address_e regAddr,
795  const uint16_t data)
796 {
797  DRV_Word_t ctrlWord = ctrlMode | regAddr | (data & DRV8353_DATA_MASK);
798 
799  return(ctrlWord);
800 } // end of DRV8353_buildCtrlWord() function
801 
804 extern void DRV8353_enable(DRV8353_Handle handle);
805 
809 void DRV8353_setSPIHandle(DRV8353_Handle handle,uint32_t spiHandle);
810 
814 void DRV8353_setGPIOCSNumber(DRV8353_Handle handle,uint32_t gpioNumber);
815 
819 void DRV8353_setGPIOENNumber(DRV8353_Handle handle,uint32_t gpioNumber);
820 
823 static inline void DRV8353_resetEnableTimeout(DRV8353_Handle handle)
824 {
825  DRV8353_Obj *obj = (DRV8353_Obj *)handle;
826 
827  obj->enableTimeOut = false;
828 
829  return;
830 } // end of DRV8353_resetEnableTimeout() function
831 
834 static inline void DRV8353_resetRxTimeout(DRV8353_Handle handle)
835 {
836  DRV8353_Obj *obj = (DRV8353_Obj *)handle;
837 
838  obj->rxTimeOut = false;
839 
840  return;
841 } // end of DRV8353_resetRxTimeout() function
842 
845 extern void DRV8353_setupSPI(DRV8353_Handle handle,
846  DRV8353_VARS_t *drv8353Vars);
847 
852 extern uint16_t DRV8353_readSPI(DRV8353_Handle handle,
853  const DRV8353_Address_e regAddr);
854 
859 extern void DRV8353_writeSPI(DRV8353_Handle handle,
860  const DRV8353_Address_e regAddr,
861  const uint16_t data);
862 
867 extern void DRV8353_writeData(DRV8353_Handle handle,
868  DRV8353_VARS_t *drv8353Vars);
869 
874 extern void DRV8353_readData(DRV8353_Handle handle,
875  DRV8353_VARS_t *drv8353Vars);
876 
877 //*****************************************************************************
878 //
879 // Close the Doxygen group.
881 //
882 //*****************************************************************************
883 
884 //*****************************************************************************
885 //
886 // Mark the end of the C bindings section for C++ compilers.
887 //
888 //*****************************************************************************
889 #ifdef __cplusplus
890 }
891 #endif
892 
893 #endif // end of DRV8353_H definition
DRV8353_CTRL06_BITS::SEN_LVL
DRV8353_CTRL06_SENLevel_e SEN_LVL
Definition: drv8353s.h:695
DRV8353_VDS_LEVEL_0P940_V
VDS_LEVEL = 0.940V.
Definition: drv8353s.h:515
DRV8353_ISINK_LS_0P240_A
IDRIVEN_LS = 0.240A.
Definition: drv8353s.h:487
DRV8353_CTRL03_BITS::LOCK
DRV8353_CTRL03_Lock_e LOCK
Definition: drv8353s.h:649
DRV8353_STAT00_BITS::VDS_OCP
bool VDS_OCP
Definition: drv8353s.h:588
DRV8353_CTRL02_BITS::CLR_FLT
bool CLR_FLT
Definition: drv8353s.h:625
_DRV8353_VARS_t_::manReadAddr
uint16_t manReadAddr
Definition: drv8353s.h:744
DRV8353_Gain_40VpV
GAIN_CSA = 40V/V.
Definition: drv8353s.h:572
DRV8353_ADDRESS_CONTROL_7
Control Register 7.
Definition: drv8353s.h:343
DRV8353_ADDRESS_CONTROL_6
Control Register 6.
Definition: drv8353s.h:342
DRV8353_VGS_LB
VGS gate drive fault on B low-side MOSFET.
Definition: drv8353s.h:369
DRV8353_enable
void DRV8353_enable(DRV8353_Handle handle)
Enables the DRV8353.
DRV8353_AUTOMATIC_RETRY
OCP_MODE = Automatic Retry.
Definition: drv8353s.h:539
DRV8353_CPUV
charge pump undervoltage fault
Definition: drv8353s.h:373
DRV8353_OTW
overtemperature warning
Definition: drv8353s.h:374
DRV8353_VDSDEG_8_US
OCP_DEG = 8us.
Definition: drv8353s.h:531
DRV8353_PWMMODE_6
PWM_MODE = 6 inputs.
Definition: drv8353s.h:384
DRV8353_ISINK_HS_0P280_A
IDRIVEN_HS = 0.280A.
Definition: drv8353s.h:422
DRV8353_CTRL03_REG::all
uint16_t all
Definition: drv8353s.h:655
DRV8353_ISINK_HS_0P240_A
IDRIVEN_HS = 0.240A.
Definition: drv8353s.h:421
DRV8353_ISOUR_LS_0P030_A
IDRIVEP_LS = 0.030A.
Definition: drv8353s.h:461
DRV8353_CTRL05_BITS::TRETRY
bool TRETRY
Definition: drv8353s.h:682
DRV8353_OTSD
Overtemperature shutdown.
Definition: drv8353s.h:356
DRV8353_VDS_LEVEL_0P530_V
VDS_LEVEL = 0.530V.
Definition: drv8353s.h:511
DRV8353_CTRL05_BITS::rsvd
uint16_t rsvd
Definition: drv8353s.h:683
DRV8353_CTRL02_BITS::rsvd2
uint16_t rsvd2
Definition: drv8353s.h:635
DRV8353_Address_e
DRV8353_Address_e
Enumeration for the register addresses.
Definition: drv8353s.h:334
DRV8353_CTRL03_BITS::IDRIVEN_HS
DRV8353_CTRL03_PeakSinkCurHS_e IDRIVEN_HS
Definition: drv8353s.h:647
DRV8353_resetRxTimeout
static void DRV8353_resetRxTimeout(DRV8353_Handle handle)
Resets the RX fifo timeout flag.
Definition: drv8353s.h:834
DRV8353_STAT00_BITS::VDS_LA
bool VDS_LA
Definition: drv8353s.h:583
DRV8353_CTRL07_BITS::CAL_MODE
bool CAL_MODE
Definition: drv8353s.h:716
DRV8353_STAT00_REG::bit
struct DRV8353_STAT00_BITS bit
Definition: drv8353s.h:596
DRV8353_ISOUR_HS_1P000_A
IDRIVEP_HS = 1.000A.
Definition: drv8353s.h:409
DRV8353_TSOUR_500_NS
TDRIVE = 500ns.
Definition: drv8353s.h:449
DRV8353_ISOUR_LS_0P680_A
IDRIVEP_LS = 0.680A.
Definition: drv8353s.h:473
DRV8353_ADDRESS_STATUS_1
Status Register 1.
Definition: drv8353s.h:337
DRV8353_ISINK_HS_0P060_A
IDRIVEN_HS = 0.060A.
Definition: drv8353s.h:418
DRV8353_CTRL05_BITS::DEAD_TIME
DRV8353_CTRL05_DeadTime_e DEAD_TIME
Definition: drv8353s.h:681
DRV8353_CTRL03_BITS::rsvd
uint16_t rsvd
Definition: drv8353s.h:650
DRV8353_CTRL06_CSAGain_e
DRV8353_CTRL06_CSAGain_e
Enumeration for the gain of shunt amplifier.
Definition: drv8353s.h:567
DRV8353_CTRL06_BITS
Object for the DRV8353 CTRL06 register.
Definition: drv8353s.h:694
DRV8353_VDS_LEVEL_1P130_V
VDS_LEVEL = 1.130V.
Definition: drv8353s.h:516
DRV8353_CTRL02_BITS::COAST
bool COAST
Definition: drv8353s.h:627
DRV8353_VDS_LEVEL_0P310_V
VDS_LEVEL = 0.310V.
Definition: drv8353s.h:509
_DRV8353_VARS_t_::manWriteCmd
bool manWriteCmd
Definition: drv8353s.h:747
DRV8353_ISOUR_LS_1P000_A
IDRIVEP_LS = 1.000A.
Definition: drv8353s.h:475
DRV8353_ISOUR_LS_0P170_A
IDRIVEP_LS = 0.170A.
Definition: drv8353s.h:466
DRV8353_ISOUR_LS_0P260_A
IDRIVEP_LS = 0.260A.
Definition: drv8353s.h:468
DRV8353_CTRL06_BITS::CSA_CAL_A
bool CSA_CAL_A
Definition: drv8353s.h:698
DRV8353_ISINK_LS_0P880_A
IDRIVEN_LS = 0.880A.
Definition: drv8353s.h:494
DRV8353_CTRL04_PeakSinkCurLS_e
DRV8353_CTRL04_PeakSinkCurLS_e
Enumeration for the low side gate drive peak sink current; adapt current ratings.
Definition: drv8353s.h:481
DRV8353_CTRL04_PeakSourCurLS_e
DRV8353_CTRL04_PeakSourCurLS_e
Enumeration for the low side gate drive peak source current; adapt current ratings.
Definition: drv8353s.h:458
DRV8353_ISINK_LS_1P140_A
IDRIVEN_LS = 1.140A.
Definition: drv8353s.h:495
DRV8353_ISOUR_LS_0P080_A
IDRIVEP_LS = 0.080A.
Definition: drv8353s.h:463
_DRV8353_VARS_t_::ctrlReg05
union DRV8353_CTRL05_REG ctrlReg05
Definition: drv8353s.h:737
_DRV8353_VARS_t_
Object for the DRV8353 registers and commands.
Definition: drv8353s.h:729
DRV8353_CTRL03_BITS
Object for the DRV8353 CTRL03 register.
Definition: drv8353s.h:646
DRV8353_SEN_Lvl_Ocp_0p75
SEN_LVL = 0.75V.
Definition: drv8353s.h:560
DRV8353_CtrlMode_e
DRV8353_CtrlMode_e
Enumeration for the R/W modes.
Definition: drv8353s.h:326
DRV8353_VDS_HC
VDS overcurrent fault on C high-side MOSFET.
Definition: drv8353s.h:351
DRV8353_readData
void DRV8353_readData(DRV8353_Handle handle, DRV8353_VARS_t *drv8353Vars)
Read from the DRV8353 SPI registers.
DRV8353_STAT01_BITS::SC_OC
bool SC_OC
Definition: drv8353s.h:610
DRV8353_ISINK_LS_0P340_A
IDRIVEN_LS = 0.340A.
Definition: drv8353s.h:489
DRV8353_ISOUR_HS_0P570_A
IDRIVEP_HS = 0.570A.
Definition: drv8353s.h:406
DRV8353_ISOUR_HS_0P080_A
IDRIVEP_HS = 0.080A.
Definition: drv8353s.h:397
DRV8353_CTRL02_BITS::OCP_ACT
bool OCP_ACT
Definition: drv8353s.h:634
DRV8353_ISINK_LS_0P660_A
IDRIVEN_LS = 0.660A.
Definition: drv8353s.h:492
DRV8353_VDS_HB
VDS overcurrent fault on B high-side MOSFET.
Definition: drv8353s.h:353
DRV8353_ISOUR_HS_0P190_A
IDRIVEP_HS = 0.190A.
Definition: drv8353s.h:401
DRV8353_CTRL03_REG::bit
struct DRV8353_CTRL03_BITS bit
Definition: drv8353s.h:656
DRV8353_VDS_HA
VDS overcurrent fault on A high-side MOSFET.
Definition: drv8353s.h:355
DRV8353_CTRL05_BITS::OCP_MODE
DRV8353_CTRL05_OcpMode_e OCP_MODE
Definition: drv8353s.h:680
DRV8353_CTRL05_VDSLVL_e
DRV8353_CTRL05_VDSLVL_e
Enumeration for the VDS comparator threshold.
Definition: drv8353s.h:503
DRV8353_CTRL02_BITS::PWM1_COM
bool PWM1_COM
Definition: drv8353s.h:629
DRV8353_ISINK_LS_0P280_A
IDRIVEN_LS = 0.280A.
Definition: drv8353s.h:488
DRV8353_CTRL06_REG::all
uint16_t all
Definition: drv8353s.h:709
DRV8353_CTRL03_PeakSourCurHS_e
DRV8353_CTRL03_PeakSourCurHS_e
Enumeration for the high side gate drive peak source current; gate currents not consistent with DS.
Definition: drv8353s.h:392
DRV8353_ISINK_LS_0P740_A
IDRIVEN_LS = 0.740A.
Definition: drv8353s.h:493
DRV8353_VDS_LEVEL_0P130_V
VDS_LEVEL = 0.130V.
Definition: drv8353s.h:506
DRV8353_STAT01_REG::bit
struct DRV8353_STAT01_BITS bit
Definition: drv8353s.h:619
DRV8353_CTRL06_BITS::VREF_DIV
bool VREF_DIV
Definition: drv8353s.h:702
_DRV8353_VARS_t_::ctrlReg03
union DRV8353_CTRL03_REG ctrlReg03
Definition: drv8353s.h:735
_DRV8353_Obj_::gpioNumber_CS
uint32_t gpioNumber_CS
GPIO connected to the DRV8353 CS pin.
Definition: drv8353s.h:760
DRV8353_CTRL07_BITS::rsvd1
uint16_t rsvd1
Definition: drv8353s.h:717
DRV8353_STAT00_BITS::UVLO
bool UVLO
Definition: drv8353s.h:586
DRV8353_VGS_HA
VGS gate drive fault on A high-side MOSFET.
Definition: drv8353s.h:372
DRV8353_STAT00_BITS
Object for the DRV8353 STATUS00 register.
Definition: drv8353s.h:578
DRV8353_ISINK_HS_0P520_A
IDRIVEN_HS = 0.520A.
Definition: drv8353s.h:425
DRV8353_ISOUR_HS_0P170_A
IDRIVEP_HS = 0.170A.
Definition: drv8353s.h:400
DRV8353_SA_OC
overcurrent on phase A
Definition: drv8353s.h:377
DRV8353_resetEnableTimeout
static void DRV8353_resetEnableTimeout(DRV8353_Handle handle)
Resets the enable timeout flag.
Definition: drv8353s.h:823
_DRV8353_VARS_t_::statReg00
union DRV8353_STAT00_REG statReg00
Definition: drv8353s.h:731
DRV8353_CTRL02_BITS::PWM1_DIR
bool PWM1_DIR
Definition: drv8353s.h:628
DRV8353_ISINK_HS_0P160_A
IDRIVEN_HS = 0.160A.
Definition: drv8353s.h:420
DRV8353_CTRL04_BITS::CBC
bool CBC
Definition: drv8353s.h:665
DRV8353_ISINK_HS_0P660_A
IDRIVEN_HS = 0.660A.
Definition: drv8353s.h:426
DRV8353_CTRL02_REG::bit
struct DRV8353_CTRL02_BITS bit
Definition: drv8353s.h:641
DRV8353_CTRL05_BITS
Object for the DRV8353 CTRL05 register.
Definition: drv8353s.h:677
DRV8353_ISOUR_HS_0P030_A
IDRIVEP_HS = 0.030A.
Definition: drv8353s.h:395
DRV8353_VDS_LB
VDS overcurrent fault on B low-side MOSFET.
Definition: drv8353s.h:352
DRV8353_CTRL02_PWMMode_e
DRV8353_CTRL02_PWMMode_e
Enumeration for the driver PWM mode.
Definition: drv8353s.h:382
DRV8353_STAT00_BITS::VDS_LC
bool VDS_LC
Definition: drv8353s.h:579
DRV8353_STAT01_BITS::SB_OC
bool SB_OC
Definition: drv8353s.h:611
math.h
DRV8353_VGS_HC
VGS gate drive fault on C high-side MOSFET.
Definition: drv8353s.h:368
DRV8353_CTRL07_REG::bit
struct DRV8353_CTRL07_BITS bit
Definition: drv8353s.h:724
DRV8353_ISINK_HS_1P360_A
IDRIVEN_HS = 1.360A.
Definition: drv8353s.h:430
DRV8353_ISOUR_HS_0P140_A
IDRIVEP_HS = 0.140A.
Definition: drv8353s.h:399
DRV8353_CTRL03_BITS::IDRIVEP_HS
DRV8353_CTRL03_PeakSourCurHS_e IDRIVEP_HS
Definition: drv8353s.h:648
DRV8353_CTRL04_BITS::rsvd
uint16_t rsvd
Definition: drv8353s.h:666
DRV8353_ISOUR_HS_0P060_A
IDRIVEP_HS = 0.060A.
Definition: drv8353s.h:396
DRV8353_ISOUR_LS_0P190_A
IDRIVEP_LS = 0.190A.
Definition: drv8353s.h:467
DRV8353_SB_OC
overcurrent on phase B
Definition: drv8353s.h:376
DRV8353_ISINK_HS_0P120_A
IDRIVEN_HS = 0.120A.
Definition: drv8353s.h:419
_DRV8353_VARS_t_::statReg01
union DRV8353_STAT01_REG statReg01
Definition: drv8353s.h:732
DRV8353_CTRL04_BITS::IDRIVEP_LS
DRV8353_CTRL04_PeakSourCurLS_e IDRIVEP_LS
Definition: drv8353s.h:663
DRV8353_VDS_LEVEL_1P300_V
VDS_LEVEL = 1.300V.
Definition: drv8353s.h:517
DRV8353_Gain_20VpV
GAIN_CSA = 20V/V.
Definition: drv8353s.h:571
DRV8353_CTRL07_REG::all
uint16_t all
Definition: drv8353s.h:723
DRV8353_STATUS01_OvVdsFaults_e
DRV8353_STATUS01_OvVdsFaults_e
Enumeration for the Status 1 register, OV/VDS faults.
Definition: drv8353s.h:365
_DRV8353_VARS_t_::ctrlReg06
union DRV8353_CTRL06_REG ctrlReg06
Definition: drv8353s.h:738
DRV8353_ISINK_LS_1P640_A
IDRIVEN_LS = 1.640A.
Definition: drv8353s.h:497
DRV8353VARS_Handle
struct _DRV8353_VARS_t_ * DRV8353VARS_Handle
Defines the DRV8353_VARS_t handle.
Definition: drv8353s.h:753
DRV8353_setGPIOCSNumber
void DRV8353_setGPIOCSNumber(DRV8353_Handle handle, uint32_t gpioNumber)
Sets the GPIO number in the DRV8353.
DRV8353_SEN_Lvl_Ocp_0p25
SEN_LVL = 0.25V.
Definition: drv8353s.h:558
DRV8353_STAT01_BITS::VGS_HA
bool VGS_HA
Definition: drv8353s.h:607
DRV8353_TSOUR_2000_NS
TDRIVE = 2000ns.
Definition: drv8353s.h:451
DRV8353_ISOUR_HS_0P680_A
IDRIVEP_HS = 0.680A.
Definition: drv8353s.h:407
DRV8353_CTRLMODE_READ
Read Mode.
Definition: drv8353s.h:329
_DRV8353_VARS_t_::manReadData
uint16_t manReadData
Definition: drv8353s.h:746
DRV8353_DISABLE_OCP
OCP_MODE = Disabled.
Definition: drv8353s.h:541
DRV8353_CTRL06_BITS::CSA_GAIN
DRV8353_CTRL06_CSAGain_e CSA_GAIN
Definition: drv8353s.h:700
DRV8353_VDS_LA
VDS overcurrent fault on A low-side MOSFET.
Definition: drv8353s.h:354
DRV8353_ISOUR_HS_0P820_A
IDRIVEP_HS = 0.820A.
Definition: drv8353s.h:408
DRV8353_ISINK_LS_1P360_A
IDRIVEN_LS = 1.360A.
Definition: drv8353s.h:496
DRV8353_STAT00_REG::all
uint16_t all
Definition: drv8353s.h:595
_DRV8353_Obj_
Defines the DRV8353 object.
Definition: drv8353s.h:757
DRV8353_CTRL05_BITS::VDS_LVL
DRV8353_CTRL05_VDSLVL_e VDS_LVL
Definition: drv8353s.h:678
DRV8353_CTRL02_REG::all
uint16_t all
Definition: drv8353s.h:640
_DRV8353_VARS_t_::readCmd
bool readCmd
Definition: drv8353s.h:742
DRV8353_VDS_LC
VDS overcurrent fault on C low-side MOSFET.
Definition: drv8353s.h:350
DRV8353_ISOUR_LS_0P570_A
IDRIVEP_LS = 0.570A.
Definition: drv8353s.h:472
DRV8353_ADDRESS_CONTROL_4
Control Register 4.
Definition: drv8353s.h:340
DRV8353_VDS_LEVEL_0P750_V
VDS_LEVEL = 0.750V.
Definition: drv8353s.h:514
DRV8353_ISINK_LS_0P020_A
IDRIVEN_LS = 0.020A.
Definition: drv8353s.h:483
DRV8353_STAT01_BITS::VGS_HB
bool VGS_HB
Definition: drv8353s.h:605
DRV8353_ISOUR_HS_0P120_A
IDRIVEP_HS = 0.120A.
Definition: drv8353s.h:398
DRV8353_CTRL06_BITS::CSA_FET
bool CSA_FET
Definition: drv8353s.h:703
DRV8353_STAT00_BITS::VDS_HB
bool VDS_HB
Definition: drv8353s.h:582
DRV8353_STAT01_BITS::VGS_LA
bool VGS_LA
Definition: drv8353s.h:606
DRV8353_ISOUR_LS_0P440_A
IDRIVEP_LS = 0.440A.
Definition: drv8353s.h:471
_DRV8353_Obj_::rxTimeOut
bool rxTimeOut
timeout flag for the RX FIFO
Definition: drv8353s.h:762
DRV8353_STAT00_BITS::GDF
bool GDF
Definition: drv8353s.h:587
DRV8353_LATCHED_SHUTDOWN
OCP_MODE = Latched fault.
Definition: drv8353s.h:538
DRV8353_DEADTIME_200_NS
DEAD_TIME = 200ns.
Definition: drv8353s.h:550
DRV8353_VDS_LEVEL_1P500_V
VDS_LEVEL = 1.500V.
Definition: drv8353s.h:518
DRV8353_ADDRESS_STATUS_0
Status Register 0.
Definition: drv8353s.h:336
DRV8353_STAT01_BITS::SA_OC
bool SA_OC
Definition: drv8353s.h:612
DRV8353_ISOUR_HS_0P010_A
IDRIVEP_HS = 0.010A.
Definition: drv8353s.h:394
DRV8353_CTRL07_BITS
Object for the DRV8353 CTRL06 register.
Definition: drv8353s.h:715
_DRV8353_VARS_t_::writeCmd
bool writeCmd
Definition: drv8353s.h:741
DRV8353_CTRL06_BITS::CSA_CAL_B
bool CSA_CAL_B
Definition: drv8353s.h:697
DRV8353_STAT01_REG::all
uint16_t all
Definition: drv8353s.h:618
DRV8353_CTRL07_BITS::rsvd2
uint16_t rsvd2
Definition: drv8353s.h:718
DRV8353_CTRL06_REG::bit
struct DRV8353_CTRL06_BITS bit
Definition: drv8353s.h:710
DRV8353_CTRL06_BITS::DIS_SEN
bool DIS_SEN
Definition: drv8353s.h:699
DRV8353_ISOUR_HS_0P260_A
IDRIVEP_HS = 0.260A.
Definition: drv8353s.h:402
DRV8353_VARS_t
struct _DRV8353_VARS_t_ DRV8353_VARS_t
Object for the DRV8353 registers and commands.
DRV8353_VDS_LEVEL_0P260_V
VDS_LEVEL = 0.260V.
Definition: drv8353s.h:508
DRV8353_Gain_5VpV
GAIN_CSA = 5V/V.
Definition: drv8353s.h:569
DRV8353_ISINK_HS_0P880_A
IDRIVEN_HS = 0.880A.
Definition: drv8353s.h:428
DRV8353_ISOUR_LS_0P010_A
IDRIVEP_LS = 0.010A.
Definition: drv8353s.h:460
DRV8353_STAT00_BITS::rsvd2
uint16_t rsvd2
Definition: drv8353s.h:590
DRV8353_CTRL04_REG::bit
struct DRV8353_CTRL04_BITS bit
Definition: drv8353s.h:672
DRV8353_STAT01_BITS::VGS_LB
bool VGS_LB
Definition: drv8353s.h:604
DRV8353_readSPI
uint16_t DRV8353_readSPI(DRV8353_Handle handle, const DRV8353_Address_e regAddr)
Reads data from the DRV8353 register.
DRV8353_ISOUR_HS_0P370_A
IDRIVEP_HS = 0.370A.
Definition: drv8353s.h:404
DRV8353_LOCK_UNLOCK
Unlock settings.
Definition: drv8353s.h:440
DRV8353_CTRL05_REG::all
uint16_t all
Definition: drv8353s.h:688
DRV8353_ISINK_LS_0P120_A
IDRIVEN_LS = 0.120A.
Definition: drv8353s.h:485
DRV8353_setGPIOENNumber
void DRV8353_setGPIOENNumber(DRV8353_Handle handle, uint32_t gpioNumber)
Sets the GPIO number in the DRV8353.
DRV8353_ISINK_HS_2P000_A
IDRIVEN_HS = 2.000A.
Definition: drv8353s.h:432
DRV8353_CTRL02_BITS::BRAKE
bool BRAKE
Definition: drv8353s.h:626
DRV8353_CTRL02_BITS::DIS_GDF
bool DIS_GDF
Definition: drv8353s.h:632
DRV8353_DATA_MASK
#define DRV8353_DATA_MASK
Defines the data mask.
Definition: drv8353s.h:88
DRV8353_STAT00_BITS::OTSD
bool OTSD
Definition: drv8353s.h:585
DRV8353_STAT01_BITS::VGS_LC
bool VGS_LC
Definition: drv8353s.h:602
_DRV8353_Obj_::gpioNumber_EN
uint32_t gpioNumber_EN
GPIO connected to the DRV8353 enable pin.
Definition: drv8353s.h:761
DRV8353_CTRL05_OcpDeg_e
DRV8353_CTRL05_OcpDeg_e
Enumeration for the OCP/VDS sense deglitch time; adapt deglitch time comments.
Definition: drv8353s.h:526
DRV8353_ISOUR_LS_0P140_A
IDRIVEP_LS = 0.140A.
Definition: drv8353s.h:465
DRV8353_init
DRV8353_Handle DRV8353_init(void *pMemory)
Initializes the DRV8353 object.
DRV8353_ISOUR_HS_0P440_A
IDRIVEP_HS = 0.440A.
Definition: drv8353s.h:405
DRV8353_CTRL04_REG::all
uint16_t all
Definition: drv8353s.h:671
DRV8353_writeSPI
void DRV8353_writeSPI(DRV8353_Handle handle, const DRV8353_Address_e regAddr, const uint16_t data)
Writes data to the DRV8353 register.
DRV8353_CTRL06_BITS::CSA_CAL_C
bool CSA_CAL_C
Definition: drv8353s.h:696
DRV8353_buildCtrlWord
static DRV_Word_t DRV8353_buildCtrlWord(const DRV8353_CtrlMode_e ctrlMode, const DRV8353_Address_e regAddr, const uint16_t data)
Builds the control word.
Definition: drv8353s.h:792
DRV8353_STATUS00_WarningWatchdog_e
DRV8353_STATUS00_WarningWatchdog_e
Enumeration for the Status 0 register, faults.
Definition: drv8353s.h:348
DRV8353_DEADTIME_400_NS
DEAD_TIME = 400ns.
Definition: drv8353s.h:551
DRV8353_STAT01_REG
Definition: drv8353s.h:616
_DRV8353_Obj_::enableTimeOut
bool enableTimeOut
timeout flag for DRV8353 enable
Definition: drv8353s.h:763
DRV8353_STAT01_BITS::VGS_HC
bool VGS_HC
Definition: drv8353s.h:603
DRV8353_ISOUR_LS_0P330_A
IDRIVEP_LS = 0.330A.
Definition: drv8353s.h:469
DRV8353_writeData
void DRV8353_writeData(DRV8353_Handle handle, DRV8353_VARS_t *drv8353Vars)
Write to the DRV8353 SPI registers.
DRV8353_ISOUR_LS_0P820_A
IDRIVEP_LS = 0.820A.
Definition: drv8353s.h:474
DRV8353_STAT00_REG
Definition: drv8353s.h:593
DRV8353_ISOUR_LS_0P120_A
IDRIVEP_LS = 0.120A.
Definition: drv8353s.h:464
DRV8353_ISINK_HS_0P380_A
IDRIVEN_HS = 0.380A.
Definition: drv8353s.h:424
DRV8353_STAT01_BITS::rsvd2
uint16_t rsvd2
Definition: drv8353s.h:613
_DRV8353_VARS_t_::ctrlReg02
union DRV8353_CTRL02_REG ctrlReg02
Definition: drv8353s.h:734
DRV8353_STAT01_BITS
Object for the DRV8353 STATUS01 register.
Definition: drv8353s.h:601
DRV8353_SEN_Lvl_Ocp_1p00
SEN_LVL = 1.00V.
Definition: drv8353s.h:561
DRV8353_STAT00_BITS::VDS_HC
bool VDS_HC
Definition: drv8353s.h:580
DRV8353_STAT01_BITS::OTW
bool OTW
Definition: drv8353s.h:609
DRV8353_ADDRESS_CONTROL_3
Control Register 3.
Definition: drv8353s.h:339
DRV8353_REPORT_ONLY
OCP_MODE = Report only.
Definition: drv8353s.h:540
DRV8353_GDF
Gate driver fault condition.
Definition: drv8353s.h:358
DRV8353_ISINK_LS_0P520_A
IDRIVEN_LS = 0.520A.
Definition: drv8353s.h:491
DRV8353_CTRL02_BITS::PWM_MODE
DRV8353_CTRL02_PWMMode_e PWM_MODE
Definition: drv8353s.h:630
_DRV8353_VARS_t_::manWriteAddr
uint16_t manWriteAddr
Definition: drv8353s.h:743
DRV_Word_t
uint16_t DRV_Word_t
Defines the DRV8353 Word type.
Definition: drv8353s.h:772
_DRV8353_VARS_t_::manWriteData
uint16_t manWriteData
Definition: drv8353s.h:745
DRV8353_UVLO
Undervoltage lockout fault condition.
Definition: drv8353s.h:357
DRV8353_ISINK_HS_1P640_A
IDRIVEN_HS = 1.640A.
Definition: drv8353s.h:431
DRV8353_CTRL05_REG::bit
struct DRV8353_CTRL05_BITS bit
Definition: drv8353s.h:689
DRV8353_ISOUR_HS_0P330_A
IDRIVEP_HS = 0.330A.
Definition: drv8353s.h:403
DRV8353_CTRL02_BITS
Object for the DRV8353 CTRL02 register.
Definition: drv8353s.h:624
DRV8353_VDS_OCP
VDS monitor overcurrent fault condition.
Definition: drv8353s.h:359
DRV8353_PWMMODE_3
PWM_MODE = 3 inputs.
Definition: drv8353s.h:385
DRV8353_CTRL02_BITS::OTW_REP
bool OTW_REP
Definition: drv8353s.h:631
DRV8353_LOCK_LOCK
Lock settings.
Definition: drv8353s.h:441
DRV8353_DEADTIME_100_NS
DEAD_TIME = 100ns.
Definition: drv8353s.h:549
DRV8353_DEADTIME_50_NS
DEAD_TIME = 50ns.
Definition: drv8353s.h:548
DRV8353_CTRL05_BITS::OCP_DEG
DRV8353_CTRL05_OcpDeg_e OCP_DEG
Definition: drv8353s.h:679
DRV8353_VGS_LA
VGS gate drive fault on A low-side MOSFET.
Definition: drv8353s.h:371
DRV8353_FAULT
FAULT type, 0-Warning, 1-Latched.
Definition: drv8353s.h:360
DRV8353_TSOUR_4000_NS
TDRIVE = 4000ns.
Definition: drv8353s.h:452
DRV8353_VGS_HB
VGS gate drive fault on B high-side MOSFET.
Definition: drv8353s.h:370
DRV8353_Obj
struct _DRV8353_Obj_ DRV8353_Obj
Defines the DRV8353 object.
DRV8353_TSOUR_1000_NS
TDRIVE = 1000ns.
Definition: drv8353s.h:450
DRV8353_ISINK_LS_2P000_A
IDRIVEN_LS = 2.000A.
Definition: drv8353s.h:498
DRV8353_STAT00_BITS::VDS_LB
bool VDS_LB
Definition: drv8353s.h:581
DRV8353_CTRL06_BITS::rsvd
uint16_t rsvd
Definition: drv8353s.h:704
DRV8353_setSPIHandle
void DRV8353_setSPIHandle(DRV8353_Handle handle, uint32_t spiHandle)
Sets the SPI handle in the DRV8353.
DRV8353_ISINK_LS_0P060_A
IDRIVEN_LS = 0.060A.
Definition: drv8353s.h:484
DRV8353_VDS_LEVEL_1P880_V
VDS_LEVEL = 1.880V.
Definition: drv8353s.h:520
DRV8353_SC_OC
overcurrent on phase C
Definition: drv8353s.h:375
DRV8353_VDS_LEVEL_0P680_V
VDS_LEVEL = 0.680V.
Definition: drv8353s.h:513
_DRV8353_VARS_t_::manReadCmd
bool manReadCmd
Definition: drv8353s.h:748
DRV8353_PWMMODE_1
PWM_MODE = 1 input.
Definition: drv8353s.h:386
DRV8353_VDSDEG_2_US
OCP_DEG = 2us.
Definition: drv8353s.h:528
DRV8353_CTRL04_PeakTime_e
DRV8353_CTRL04_PeakTime_e
Enumeration for the high side and low side gate drive peak source time; adapt timings to DRV8353.
Definition: drv8353s.h:447
DRV8353_CTRL03_Lock_e
DRV8353_CTRL03_Lock_e
Enumeration for the high side and low side gate drive peak source time; adapt timings to DRV8353.
Definition: drv8353s.h:438
DRV8353_CTRL04_BITS::IDRIVEN_LS
DRV8353_CTRL04_PeakSinkCurLS_e IDRIVEN_LS
Definition: drv8353s.h:662
DRV8353_VDS_LEVEL_0P200_V
VDS_LEVEL = 0.200V.
Definition: drv8353s.h:507
DRV8353_VDSDEG_4_US
OCP_DEG = 4us.
Definition: drv8353s.h:529
DRV8353_CTRL05_OcpMode_e
DRV8353_CTRL05_OcpMode_e
Enumeration for the OCP report mode.
Definition: drv8353s.h:536
DRV8353_ISINK_HS_0P340_A
IDRIVEN_HS = 0.340A.
Definition: drv8353s.h:423
DRV8353_CTRL06_SENLevel_e
DRV8353_CTRL06_SENLevel_e
Enumeration for the Sense OCP level.
Definition: drv8353s.h:556
DRV8353_CTRLMODE_WRITE
Write Mode.
Definition: drv8353s.h:328
DRV8353_ISOUR_LS_0P370_A
IDRIVEP_LS = 0.370A.
Definition: drv8353s.h:470
DRV8353_ISINK_LS_0P380_A
IDRIVEN_LS = 0.380A.
Definition: drv8353s.h:490
DRV8353_setupSPI
void DRV8353_setupSPI(DRV8353_Handle handle, DRV8353_VARS_t *drv8353Vars)
Initialize the interface to all 8320 SPI variables.
DRV8353_ADDRESS_CONTROL_5
Control Register 5.
Definition: drv8353s.h:341
DRV8353_CTRL06_BITS::LS_REF
bool LS_REF
Definition: drv8353s.h:701
_DRV8353_VARS_t_::ctrlReg07
union DRV8353_CTRL07_REG ctrlReg07
Definition: drv8353s.h:739
DRV8353_ISINK_HS_0P740_A
IDRIVEN_HS = 0.740A.
Definition: drv8353s.h:427
DRV8353_CTRL05_DeadTime_e
DRV8353_CTRL05_DeadTime_e
Enumeration for the driver dead time.
Definition: drv8353s.h:546
DRV8353_Handle
struct _DRV8353_Obj_ * DRV8353_Handle
Defines the DRV8353 handle.
Definition: drv8353s.h:768
DRV8353_ISOUR_LS_0P060_A
IDRIVEP_LS = 0.060A.
Definition: drv8353s.h:462
DRV8353_STAT00_BITS::FAULT
bool FAULT
Definition: drv8353s.h:589
DRV8353_STAT01_BITS::CPUV
bool CPUV
Definition: drv8353s.h:608
DRV8353_ADDRESS_CONTROL_2
Control Register 2.
Definition: drv8353s.h:338
DRV8353_CTRL03_PeakSinkCurHS_e
DRV8353_CTRL03_PeakSinkCurHS_e
Enumeration for the high side gate drive peak sink current; gate currents not consistent with DS.
Definition: drv8353s.h:415
DRV8353_Gain_10VpV
GAIN_CSA = 10V/V.
Definition: drv8353s.h:570
DRV8353_CTRL04_BITS
Object for the DRV8353 CTRL04 register.
Definition: drv8353s.h:661
DRV8353_ISINK_LS_0P160_A
IDRIVEN_LS = 0.160A.
Definition: drv8353s.h:486
DRV8353_VDS_LEVEL_0P450_V
VDS_LEVEL = 0.450V.
Definition: drv8353s.h:510
DRV8353_CTRL02_REG
Definition: drv8353s.h:638
DRV8353_SEN_Lvl_Ocp_0p50
SEN_LVL = 0.50V.
Definition: drv8353s.h:559
DRV8353_CTRL06_REG
Definition: drv8353s.h:707
DRV8353_CTRL03_REG
Definition: drv8353s.h:653
DRV8353_VDSDEG_6_US
OCP_DEG = 6us.
Definition: drv8353s.h:530
DRV8353_VDS_LEVEL_1P700_V
VDS_LEVEL = 1.700V.
Definition: drv8353s.h:519
DRV8353_ISINK_HS_1P140_A
IDRIVEN_HS = 1.140A.
Definition: drv8353s.h:429
DRV8353_CTRL05_REG
Definition: drv8353s.h:686
DRV8353_VDS_LEVEL_0P060_V
VDS_LEVEL = 0.060V.
Definition: drv8353s.h:505
DRV8353_CTRL07_REG
Definition: drv8353s.h:721
DRV8353_CTRL04_REG
Definition: drv8353s.h:669
DRV8353_CTRL02_BITS::DIS_GPUV
bool DIS_GPUV
Definition: drv8353s.h:633
DRV8353_CTRL04_BITS::TDRIVE
DRV8353_CTRL04_PeakTime_e TDRIVE
Definition: drv8353s.h:664
_DRV8353_Obj_::spiHandle
uint32_t spiHandle
handle for the serial peripheral interface
Definition: drv8353s.h:759
DRV8353_VDS_LEVEL_0P600_V
VDS_LEVEL = 0.600V.
Definition: drv8353s.h:512
DRV8353_STAT00_BITS::VDS_HA
bool VDS_HA
Definition: drv8353s.h:584
DRV8353_VGS_LC
VGS gate drive fault on C low-side MOSFET.
Definition: drv8353s.h:367
_DRV8353_VARS_t_::ctrlReg04
union DRV8353_CTRL04_REG ctrlReg04
Definition: drv8353s.h:736
DRV8353_ISINK_HS_0P020_A
IDRIVEN_HS = 0.020A.
Definition: drv8353s.h:417

Copyright 2023, Texas Instruments Incorporated