HF-TMC9660 Driver
Hardware Agnostic C++ Driver for the TMC9660
Loading...
Searching...
No Matches
tmc9660_sys_ctrl.hpp
Go to the documentation of this file.
1#pragma once
2#include <cstdint>
3
11namespace TMC9660 {
12namespace SYS_CTRL {
13
41 static constexpr uint8_t ADDRESS = 0x008;
42 union {
43 uint32_t value;
44 struct {
45 uint32_t BCK_UVLO : 1;
46 uint32_t BCK_SHORT : 1;
47 uint32_t LDOEXT_TSD : 1;
48 uint32_t LDOEXT1_SHORT : 1;
49 uint32_t LDOEXT2_SHORT : 1;
50 uint32_t CHGP_OK : 1;
51 uint32_t CHGP_SHORT : 1;
52 uint32_t VSA_UVLO : 1;
53 uint32_t VDD_UVLO : 1;
54 uint32_t VDDA_UVLO : 1;
55 uint32_t VCCIO_UVLO : 1;
56 uint32_t LDO1_READY : 1;
57 uint32_t LDO2_READY : 1;
58 uint32_t : 19;
60 };
61};
62
93 static constexpr uint8_t ADDRESS = 0x009;
94 union {
95 uint32_t value;
96 struct {
97 uint32_t BCK_UVLO_LTC : 1;
98 uint32_t BCK_SHORT_LTC : 1;
99 uint32_t LDOEXT_TSD_LTC : 1;
100 uint32_t LDOEXT1_SHORT_LTC : 1;
101 uint32_t LDOEXT2_SHORT_LTC : 1;
102 uint32_t CHGP_OK_LTC : 1;
103 uint32_t CHGP_SHORT_LTC : 1;
104 uint32_t VSA_UVLO_LTC : 1;
105 uint32_t VDD_UVLO_LTC : 1;
106 uint32_t VDDA_UVLO_LTC : 1;
107 uint32_t VCCIO_UVLO_LTC : 1;
108 uint32_t LDO1_READY_LTC : 1;
109 uint32_t LDO2_READY_LTC : 1;
110 uint32_t : 2;
111 uint32_t UC_FAULT : 1;
112 uint32_t : 16;
114 };
115};
116
146 static constexpr uint8_t ADDRESS = 0x00A;
147 union {
148 uint32_t value;
149 struct {
150 uint32_t BCK_UVLO_ENA_F : 1;
151 uint32_t BCK_SHORT_ENA_F : 1;
152 uint32_t LDOEXT_TSD_ENA_F : 1;
153 uint32_t LDOEXT1_SHORT_ENA_F : 1;
154 uint32_t LDOEXT2_SHORT_ENA_F : 1;
155 uint32_t CHGP_OK_ENA_F : 1;
156 uint32_t CHGP_SHORT_ENA_F : 1;
157 uint32_t VSA_UVLO_ENA_F : 1;
158 uint32_t VDD_UVLO_ENA_F : 1;
159 uint32_t VDDA_UVLO_ENA_F : 1;
160 uint32_t VCCIO_UVLO_ENA_F : 1;
161 uint32_t LDO1_READY_ENA_F : 1;
162 uint32_t LDO2_READY_ENA_F : 1;
163 uint32_t : 19;
165 };
166};
167
168} // namespace SYS_CTRL
169} // namespace TMC9660
Definition tmc9660_adc.hpp:12
Fault Interrupt Enable Mask Register (FAULT_R_ENA_F)
Definition tmc9660_sys_ctrl.hpp:145
uint32_t VCCIO_UVLO_ENA_F
[10] VCCIO_UVLO_LTC mask bit (reset 1)
Definition tmc9660_sys_ctrl.hpp:160
uint32_t LDO2_READY_ENA_F
[12] LDO2_READY_LTC mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:162
uint32_t VDD_UVLO_ENA_F
[8] VDD_UVLO_LTC mask bit (reset 1)
Definition tmc9660_sys_ctrl.hpp:158
uint32_t BCK_UVLO_ENA_F
[0] BUCK_UVLO mask bit for fault pin (reset 1)
Definition tmc9660_sys_ctrl.hpp:150
uint32_t LDO1_READY_ENA_F
[11] LDO1_READY_LTC mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:161
uint32_t LDOEXT2_SHORT_ENA_F
[4] LDO2EXT_SHORT_LTC mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:154
uint32_t VSA_UVLO_ENA_F
[7] VSA_UVLO_LTC mask bit (reset 1)
Definition tmc9660_sys_ctrl.hpp:157
static constexpr uint8_t ADDRESS
Register address (Block 2)
Definition tmc9660_sys_ctrl.hpp:146
uint32_t CHGP_OK_ENA_F
[5] CHGP_OK_LTC mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:155
uint32_t CHGP_SHORT_ENA_F
[6] CHGP_SHORT_LTC mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:156
uint32_t VDDA_UVLO_ENA_F
[9] VDDA_UVLO_LTC mask bit (reset 1)
Definition tmc9660_sys_ctrl.hpp:159
struct TMC9660::SYS_CTRL::FAULT_INT_ENABLE::@18::@20 bits
uint32_t value
Definition tmc9660_sys_ctrl.hpp:148
uint32_t BCK_SHORT_ENA_F
[1] BUCK_SHORT mask bit for fault pin (reset 1)
Definition tmc9660_sys_ctrl.hpp:151
uint32_t LDOEXT_TSD_ENA_F
[2] LDOEXT_LTC thermal shutdown mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:152
uint32_t LDOEXT1_SHORT_ENA_F
[3] LDO1EXT_SHORT_LTC mask bit (reset 0)
Definition tmc9660_sys_ctrl.hpp:153
Latched Fault Flags Register (FAULT_STATUS_LATCHED / FAULT_R_INT)
Definition tmc9660_sys_ctrl.hpp:92
uint32_t LDOEXT1_SHORT_LTC
[3] LDO1EXT_SHORT latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:100
uint32_t LDO2_READY_LTC
[12] LDO2READY latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:109
uint32_t CHGP_SHORT_LTC
[6] CHGP_SHORT latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:103
uint32_t value
Definition tmc9660_sys_ctrl.hpp:95
uint32_t BCK_SHORT_LTC
[1] BUCK_SHORT latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:98
static constexpr uint8_t ADDRESS
Register address (Block 2)
Definition tmc9660_sys_ctrl.hpp:93
uint32_t VCCIO_UVLO_LTC
[10] VCCIO_UVLO latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:107
uint32_t LDOEXT2_SHORT_LTC
[4] LDO2EXT_SHORT latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:101
uint32_t VSA_UVLO_LTC
[7] VSA_UVLO latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:104
struct TMC9660::SYS_CTRL::FAULT_STATUS_LATCHED::@15::@17 bits
uint32_t UC_FAULT
[15] Force fault pin assertion (RW)
Definition tmc9660_sys_ctrl.hpp:111
uint32_t BCK_UVLO_LTC
[0] BUCK_UVLO latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:97
uint32_t LDO1_READY_LTC
[11] LDO1READY latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:108
uint32_t CHGP_OK_LTC
[5] CHGP_OK latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:102
uint32_t VDD_UVLO_LTC
[8] VDD_UVLO latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:105
uint32_t VDDA_UVLO_LTC
[9] VDDA_UVLO latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:106
uint32_t LDOEXT_TSD_LTC
[2] LDOEXT_TSD latched bit (W1C)
Definition tmc9660_sys_ctrl.hpp:99
Fault Status Register (FAULT_STATUS)
Definition tmc9660_sys_ctrl.hpp:40
uint32_t VDD_UVLO
[8] VDD undervoltage lockout
Definition tmc9660_sys_ctrl.hpp:53
uint32_t LDO2_READY
[12] LDO2 (V_EXT2) soft-start complete (1 = ready)
Definition tmc9660_sys_ctrl.hpp:57
struct TMC9660::SYS_CTRL::FAULT_STATUS::@12::@14 bits
uint32_t value
Definition tmc9660_sys_ctrl.hpp:43
uint32_t CHGP_SHORT
[6] VDRV charge pump short status
Definition tmc9660_sys_ctrl.hpp:51
uint32_t LDOEXT1_SHORT
[3] LDO1 (V_EXT1) shorted
Definition tmc9660_sys_ctrl.hpp:48
uint32_t VDDA_UVLO
[9] VDDA undervoltage lockout
Definition tmc9660_sys_ctrl.hpp:54
uint32_t VSA_UVLO
[7] VSA undervoltage lockout
Definition tmc9660_sys_ctrl.hpp:52
uint32_t LDO1_READY
[11] LDO1 (V_EXT1) soft-start complete (1 = ready)
Definition tmc9660_sys_ctrl.hpp:56
uint32_t VCCIO_UVLO
[10] VCCIO undervoltage lockout
Definition tmc9660_sys_ctrl.hpp:55
static constexpr uint8_t ADDRESS
Register address (Block 2)
Definition tmc9660_sys_ctrl.hpp:41
uint32_t LDOEXT2_SHORT
[4] LDO2 (V_EXT2) shorted
Definition tmc9660_sys_ctrl.hpp:49
uint32_t BCK_UVLO
[0] VBUCK undervoltage lockout
Definition tmc9660_sys_ctrl.hpp:45
uint32_t CHGP_OK
[5] VDRV charge pump power-up OK (1 = OK)
Definition tmc9660_sys_ctrl.hpp:50
uint32_t LDOEXT_TSD
[2] LDO thermal shutdown
Definition tmc9660_sys_ctrl.hpp:47
uint32_t BCK_SHORT
[1] VBUCK shorted
Definition tmc9660_sys_ctrl.hpp:46