Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

LTC2947: LTC2947 a high-precision power and energy monitor with an internal sense resistor supporting up to 30A. More...

Detailed Description

LTC2947: LTC2947 a high-precision power and energy monitor with an internal sense resistor supporting up to 30A.

The LTC2947 is a high-precision power and energy
monitor with an internal sense resistor supporting up
to 30A. Three internal No Latency delta sigma ADCs ensure
accurate measurement of voltage and current, while high-
bandwidth analog multiplication of voltage and current
provides accurate power measurement in a wide range of
applications. Internal or external clocking options enable
precise charge and energy measurements.
An internal 300 micro ohms, temperature-compensated sense
resistor minimizes efficiency loss and external compo-
nents, simplifying energy measurement applications while
enabling high accuracy current measurement over the full
temperature range. For more details see following URLs:

http://www.linear.com/product/LTC2947

http://www.linear.com/product/LTC2947#demoboards

Copyright 2018(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
  • The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
  • Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Header for LTC2947 a high-precision power and energy monitor with an internal sense resistor supporting up to 30A.

Definition in file LTC2947.h.

Go to the source code of this file.

Functions

serial communication wrapper macros

LTC2947's I2C / Spi functions are wrapped to common serial communication functions The user sets the active communication interface by calling LTC2947_InitI2C or LTC2947_InitSPI once at boot-up.

static int8_t LTC2947_RD_BYTES (uint8_t REG_ADDR, uint8_t LENGTH, uint8_t *BYTES)
 read multiple bytes via I2C/SPI More...
 
static int8_t LTC2947_WR_BYTES (uint8_t REG_ADDR, uint8_t LENGTH, uint8_t *BYTES)
 write byte array via I2C/SPI interface More...
 
static int8_t LTC2947_RD_BYTE (uint8_t REG_ADDR, uint8_t *RESULT)
 read single byte via I2C/SPI More...
 
static int8_t LTC2947_WR_BYTE (uint8_t REG_ADDR, uint8_t VALUE)
 write single byte via I2C More...
 

Macros

#define bitMaskSetChk(value, bitMask)   (((value) & (bitMask)) == (bitMask))
 
#define bitMaskClrChk(value, bitMask)   (((value) & (bitMask)) == 0)
 
#define bitMaskSet(value, bitMask)   (value |= (bitMask))
 
#define bitMaskClr(value, bitMask)   (value &= ~(bitMask))
 
#define bitMaskSetClr(value, bitMask, setNotClr)   ((setNotClr) ? bitMaskSet(value,bitMask) : bitMaskClr(value,bitMask))
 
#define LOG_1(n)   (((n) >= 2) ? 1 : 0)
 
#define LOG_2(n)   (((n) >= 1<<2) ? (2 + LOG_1((n)>>2)) : LOG_1(n))
 
#define LOG_4(n)   (((n) >= 1<<4) ? (4 + LOG_2((n)>>4)) : LOG_2(n))
 
#define LOG_8(n)   (((n) >= 1<<8) ? (8 + LOG_4((n)>>8)) : LOG_4(n))
 
#define LOG(n)   (((n) >= 1<<16) ? (16 + LOG_8((n)>>16)) : LOG_8(n))
 
#define BM2BITPOS(bm)
 
#define LTC2947_I2C_ADDR_LL   0x5C
 
#define LTC2947_I2C_ADDR_LH   0x5D
 
#define LTC2947_I2C_ADDR_LR   0x5E
 
#define LTC2947_I2C_ADDR_RL   0x64
 
#define LTC2947_I2C_ADDR_RH   0x65
 
#define LTC2947_I2C_ADDR_RR   0x66
 
#define LTC2947_SPI_READ_CMD   0x01
 
#define LTC2947_SPI_WRITE_CMD   0x00
 
#define LTC2947_LSB_FACTOR_MILLI_HOURS   (1.0 / 60.0 / 60.0 / 1.0e-3)
 
#define LTC2947_LSB_FACTOR_HOURS   (1.0 / 60.0 / 60.0)
 
#define LTC2947_CS   QUIKEVAL_CS
 
#define LTC2947_EXTCLK   4e6
 defines ltc 2947 extclk. More...
 
LTC2947 auto generated code

This code is automatically generated by the LTC2947's GUI, see Tools menu of the GUI

#define LTC2947_REG_GPIOSTATCL   0x067
 
#define LTC2947_REG_STATUS   0x080
 
#define LTC2947_REG_STATVT   0x081
 
#define LTC2947_REG_STATIP   0x082
 
#define LTC2947_REG_STATC   0x083
 
#define LTC2947_REG_STATE   0x084
 
#define LTC2947_REG_STATCEOF   0x085
 
#define LTC2947_REG_STATTB   0x086
 
#define LTC2947_REG_STATVDVCC   0x087
 
#define LTC2947_REG_STATUSM   0x088
 
#define LTC2947_REG_STATVTM   0x089
 
#define LTC2947_REG_STATIPM   0x08A
 
#define LTC2947_REG_STATCM   0x08B
 
#define LTC2947_REG_STATEM   0x08C
 
#define LTC2947_REG_STATCEOFM   0x08D
 
#define LTC2947_REG_STATTBM   0x08E
 
#define LTC2947_REG_STATVDVCCM   0x08F
 
#define LTC2947_REG_ACCICTL   0x0E1
 
#define LTC2947_REG_ACCGPCTL   0x0E3
 
#define LTC2947_REG_ACCIDB   0x0E4
 
#define LTC2947_REG_ALERTBCTL   0x0E8
 
#define LTC2947_REG_TBCTL   0x0E9
 
#define LTC2947_REG_OPCTL   0x0F0
 
#define LTC2947_REG_PGCTL   0x0FF
 
#define LTC2947_REG_C1_47_40   0x000
 
#define LTC2947_REG_C1_39_32   0x001
 
#define LTC2947_REG_C1_31_24   0x002
 
#define LTC2947_REG_C1_23_16   0x003
 
#define LTC2947_REG_C1_15_8   0x004
 
#define LTC2947_REG_C1_7_0   0x005
 
#define LTC2947_REG_E1_47_40   0x006
 
#define LTC2947_REG_E1_39_32   0x007
 
#define LTC2947_REG_E1_31_24   0x008
 
#define LTC2947_REG_E1_23_16   0x009
 
#define LTC2947_REG_E1_15_8   0x00A
 
#define LTC2947_REG_E1_7_0   0x00B
 
#define LTC2947_REG_TB1_31_24   0x00C
 
#define LTC2947_REG_TB1_23_16   0x00D
 
#define LTC2947_REG_TB1_15_8   0x00E
 
#define LTC2947_REG_TB1_7_0   0x00F
 
#define LTC2947_REG_C2_47_40   0x010
 
#define LTC2947_REG_C2_39_32   0x011
 
#define LTC2947_REG_C2_31_24   0x012
 
#define LTC2947_REG_C2_23_16   0x013
 
#define LTC2947_REG_C2_15_8   0x014
 
#define LTC2947_REG_C2_7_0   0x015
 
#define LTC2947_REG_E2_47_40   0x016
 
#define LTC2947_REG_E2_39_32   0x017
 
#define LTC2947_REG_E2_31_24   0x018
 
#define LTC2947_REG_E2_23_16   0x019
 
#define LTC2947_REG_E2_15_8   0x01A
 
#define LTC2947_REG_E2_7_0   0x01B
 
#define LTC2947_REG_TB2_31_24   0x01C
 
#define LTC2947_REG_TB2_23_16   0x01D
 
#define LTC2947_REG_TB2_15_8   0x01E
 
#define LTC2947_REG_TB2_7_0   0x01F
 
#define LTC2947_REG_IMAX_15_8   0x040
 
#define LTC2947_REG_IMAX_7_0   0x041
 
#define LTC2947_REG_IMIN_15_8   0x042
 
#define LTC2947_REG_IMIN_7_0   0x043
 
#define LTC2947_REG_PMAX_15_8   0x044
 
#define LTC2947_REG_PMAX_7_0   0x045
 
#define LTC2947_REG_PMIN_15_8   0x046
 
#define LTC2947_REG_PMIN_7_0   0x047
 
#define LTC2947_REG_VMAX_15_8   0x050
 
#define LTC2947_REG_VMAX_7_0   0x051
 
#define LTC2947_REG_VMIN_15_8   0x052
 
#define LTC2947_REG_VMIN_7_0   0x053
 
#define LTC2947_REG_TEMPMAX_15_8   0x054
 
#define LTC2947_REG_TEMPMAX_7_0   0x055
 
#define LTC2947_REG_TEMPMIN_15_8   0x056
 
#define LTC2947_REG_TEMPMIN_7_0   0x057
 
#define LTC2947_REG_VDVCCMAX_15_8   0x058
 
#define LTC2947_REG_VDVCCMAX_7_0   0x059
 
#define LTC2947_REG_VDVCCMIN_15_8   0x05A
 
#define LTC2947_REG_VDVCCMIN_7_0   0x05B
 
#define LTC2947_REG_I_23_16   0x090
 
#define LTC2947_REG_I_15_8   0x091
 
#define LTC2947_REG_I_7_0   0x092
 
#define LTC2947_REG_P_23_16   0x093
 
#define LTC2947_REG_P_15_8   0x094
 
#define LTC2947_REG_P_7_0   0x095
 
#define LTC2947_REG_V_15_8   0x0A0
 
#define LTC2947_REG_V_7_0   0x0A1
 
#define LTC2947_REG_TEMP_15_8   0x0A2
 
#define LTC2947_REG_TEMP_7_0   0x0A3
 
#define LTC2947_REG_VDVCC_15_8   0x0A4
 
#define LTC2947_REG_VDVCC_7_0   0x0A5
 
#define LTC2947_REG_IH1_23_16   0x0B0
 
#define LTC2947_REG_IH1_15_8   0x0B1
 
#define LTC2947_REG_IH1_7_0   0x0B2
 
#define LTC2947_REG_IH2_23_16   0x0B3
 
#define LTC2947_REG_IH2_15_8   0x0B4
 
#define LTC2947_REG_IH2_7_0   0x0B5
 
#define LTC2947_REG_IH3_23_16   0x0B6
 
#define LTC2947_REG_IH3_15_8   0x0B7
 
#define LTC2947_REG_IH3_7_0   0x0B8
 
#define LTC2947_REG_IH4_23_16   0x0B9
 
#define LTC2947_REG_IH4_15_8   0x0BA
 
#define LTC2947_REG_IH4_7_0   0x0BB
 
#define LTC2947_REG_IH5_23_16   0x0BC
 
#define LTC2947_REG_IH5_15_8   0x0BD
 
#define LTC2947_REG_IH5_7_0   0x0BE
 
#define LTC2947_REG_C1TH_47_40   0x100
 
#define LTC2947_REG_C1TH_39_32   0x101
 
#define LTC2947_REG_C1TH_31_24   0x102
 
#define LTC2947_REG_C1TH_23_16   0x103
 
#define LTC2947_REG_C1TH_15_8   0x104
 
#define LTC2947_REG_C1TH_7_0   0x105
 
#define LTC2947_REG_C1TL_47_40   0x106
 
#define LTC2947_REG_C1TL_39_32   0x107
 
#define LTC2947_REG_C1TL_31_24   0x108
 
#define LTC2947_REG_C1TL_23_16   0x109
 
#define LTC2947_REG_C1TL_15_8   0x10A
 
#define LTC2947_REG_C1TL_7_0   0x10B
 
#define LTC2947_REG_TB1TH_31_24   0x10C
 
#define LTC2947_REG_TB1TH_23_16   0x10D
 
#define LTC2947_REG_TB1TH_15_8   0x10E
 
#define LTC2947_REG_TB1TH_7_0   0x10F
 
#define LTC2947_REG_E1TH_47_40   0x110
 
#define LTC2947_REG_E1TH_39_32   0x111
 
#define LTC2947_REG_E1TH_31_24   0x112
 
#define LTC2947_REG_E1TH_23_16   0x113
 
#define LTC2947_REG_E1TH_15_8   0x114
 
#define LTC2947_REG_E1TH_7_0   0x115
 
#define LTC2947_REG_E1TL_47_40   0x116
 
#define LTC2947_REG_E1TL_39_32   0x117
 
#define LTC2947_REG_E1TL_31_24   0x118
 
#define LTC2947_REG_E1TL_23_16   0x119
 
#define LTC2947_REG_E1TL_15_8   0x11A
 
#define LTC2947_REG_E1TL_7_0   0x11B
 
#define LTC2947_REG_C2TH_47_40   0x120
 
#define LTC2947_REG_C2TH_39_32   0x121
 
#define LTC2947_REG_C2TH_31_24   0x122
 
#define LTC2947_REG_C2TH_23_16   0x123
 
#define LTC2947_REG_C2TH_15_8   0x124
 
#define LTC2947_REG_C2TH_7_0   0x125
 
#define LTC2947_REG_C2TL_47_40   0x126
 
#define LTC2947_REG_C2TL_39_32   0x127
 
#define LTC2947_REG_C2TL_31_24   0x128
 
#define LTC2947_REG_C2TL_23_16   0x129
 
#define LTC2947_REG_C2TL_15_8   0x12A
 
#define LTC2947_REG_C2TL_7_0   0x12B
 
#define LTC2947_REG_TB2TH_31_24   0x12C
 
#define LTC2947_REG_TB2TH_23_16   0x12D
 
#define LTC2947_REG_TB2TH_15_8   0x12E
 
#define LTC2947_REG_TB2TH_7_0   0x12F
 
#define LTC2947_REG_E2TH_47_40   0x130
 
#define LTC2947_REG_E2TH_39_32   0x131
 
#define LTC2947_REG_E2TH_31_24   0x132
 
#define LTC2947_REG_E2TH_23_16   0x133
 
#define LTC2947_REG_E2TH_15_8   0x134
 
#define LTC2947_REG_E2TH_7_0   0x135
 
#define LTC2947_REG_E2TL_47_40   0x136
 
#define LTC2947_REG_E2TL_39_32   0x137
 
#define LTC2947_REG_E2TL_31_24   0x138
 
#define LTC2947_REG_E2TL_23_16   0x139
 
#define LTC2947_REG_E2TL_15_8   0x13A
 
#define LTC2947_REG_E2TL_7_0   0x13B
 
#define LTC2947_REG_ITH_15_8   0x180
 
#define LTC2947_REG_ITH_7_0   0x181
 
#define LTC2947_REG_ITL_15_8   0x182
 
#define LTC2947_REG_ITL_7_0   0x183
 
#define LTC2947_REG_PTH_15_8   0x184
 
#define LTC2947_REG_PTH_7_0   0x185
 
#define LTC2947_REG_PTL_15_8   0x186
 
#define LTC2947_REG_PTL_7_0   0x187
 
#define LTC2947_REG_VTH_15_8   0x190
 
#define LTC2947_REG_VTH_7_0   0x191
 
#define LTC2947_REG_VTL_15_8   0x192
 
#define LTC2947_REG_VTL_7_0   0x193
 
#define LTC2947_REG_TEMPTH_15_8   0x194
 
#define LTC2947_REG_TEMPTH_7_0   0x195
 
#define LTC2947_REG_TEMPTL_15_8   0x196
 
#define LTC2947_REG_TEMPTL_7_0   0x197
 
#define LTC2947_REG_VDVCCTH_15_8   0x198
 
#define LTC2947_REG_VDVCCTH_7_0   0x199
 
#define LTC2947_REG_VDVCCTL_15_8   0x19A
 
#define LTC2947_REG_VDVCCTL_7_0   0x19B
 
#define LTC2947_REG_TEMPTFANH_15_8   0x19C
 
#define LTC2947_REG_TEMPTFANH_7_0   0x19D
 
#define LTC2947_REG_TEMPTFANL_15_8   0x19E
 
#define LTC2947_REG_TEMPTFANL_7_0   0x19F
 
#define LTC2947_VAL_C1   0x000
 
#define LTC2947_VAL_E1   0x006
 
#define LTC2947_VAL_TB1   0x00C
 
#define LTC2947_VAL_C2   0x010
 
#define LTC2947_VAL_E2   0x016
 
#define LTC2947_VAL_TB2   0x01C
 
#define LTC2947_VAL_IMAX   0x040
 
#define LTC2947_VAL_IMIN   0x042
 
#define LTC2947_VAL_PMAX   0x044
 
#define LTC2947_VAL_PMIN   0x046
 
#define LTC2947_VAL_VMAX   0x050
 
#define LTC2947_VAL_VMIN   0x052
 
#define LTC2947_VAL_TEMPMAX   0x054
 
#define LTC2947_VAL_TEMPMIN   0x056
 
#define LTC2947_VAL_VDVCCMAX   0x058
 
#define LTC2947_VAL_VDVCCMIN   0x05A
 
#define LTC2947_VAL_I   0x090
 
#define LTC2947_VAL_P   0x093
 
#define LTC2947_VAL_V   0x0A0
 
#define LTC2947_VAL_TEMP   0x0A2
 
#define LTC2947_VAL_VDVCC   0x0A4
 
#define LTC2947_VAL_IH1   0x0B0
 
#define LTC2947_VAL_IH2   0x0B3
 
#define LTC2947_VAL_IH3   0x0B6
 
#define LTC2947_VAL_IH4   0x0B9
 
#define LTC2947_VAL_IH5   0x0BC
 
#define LTC2947_VAL_C1TH   0x100
 
#define LTC2947_VAL_C1TL   0x106
 
#define LTC2947_VAL_TB1TH   0x10C
 
#define LTC2947_VAL_E1TH   0x110
 
#define LTC2947_VAL_E1TL   0x116
 
#define LTC2947_VAL_C2TH   0x120
 
#define LTC2947_VAL_C2TL   0x126
 
#define LTC2947_VAL_TB2TH   0x12C
 
#define LTC2947_VAL_E2TH   0x130
 
#define LTC2947_VAL_E2TL   0x136
 
#define LTC2947_VAL_ITH   0x180
 
#define LTC2947_VAL_ITL   0x182
 
#define LTC2947_VAL_PTH   0x184
 
#define LTC2947_VAL_PTL   0x186
 
#define LTC2947_VAL_VTH   0x190
 
#define LTC2947_VAL_VTL   0x192
 
#define LTC2947_VAL_TEMPTH   0x194
 
#define LTC2947_VAL_TEMPTL   0x196
 
#define LTC2947_VAL_VDVCCTH   0x198
 
#define LTC2947_VAL_VDVCCTL   0x19A
 
#define LTC2947_VAL_TEMPTFANH   0x19C
 
#define LTC2947_VAL_TEMPTFANL   0x19E
 
#define LTC2947_EXTCLK_UNSUPPORTED   5
 
#define LTC2947_PRE
 
#define LTC2947_DIV   ((uint8_t)(LTC2947_EXTCLK/32768.0/(1 << LTC2947_PRE)))
 
#define LTC2947_EXTPER   (1.0/LTC2947_EXTCLK)
 
#define LTC2947_INTC   31e-6
 
#define LTC2947_LSB_C1   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_E1   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_TB1   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_C2   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_E2   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_TB2   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_IMAX   12.0
 
#define LTC2947_LSB_IMIN   12.0
 
#define LTC2947_LSB_PMAX   200.0
 
#define LTC2947_LSB_PMIN   200.0
 
#define LTC2947_LSB_VMAX   2.0
 
#define LTC2947_LSB_VMIN   2.0
 
#define LTC2947_LSB_TEMPMAX   0.204
 
#define LTC2947_OFFS_TEMPMAX   5.5
 
#define LTC2947_LSB_TEMPMIN   0.204
 
#define LTC2947_OFFS_TEMPMIN   5.5
 
#define LTC2947_LSB_VDVCCMAX   145.0
 
#define LTC2947_LSB_VDVCCMIN   145.0
 
#define LTC2947_LSB_I   3.0
 
#define LTC2947_LSB_P   50.0
 
#define LTC2947_LSB_V   2.0
 
#define LTC2947_LSB_TEMP   0.204
 
#define LTC2947_OFFS_TEMP   5.5
 
#define LTC2947_LSB_VDVCC   145.0
 
#define LTC2947_LSB_IH1   3.0
 
#define LTC2947_LSB_IH2   3.0
 
#define LTC2947_LSB_IH3   3.0
 
#define LTC2947_LSB_IH4   3.0
 
#define LTC2947_LSB_IH5   3.0
 
#define LTC2947_LSB_C1TH   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_C1TL   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_TB1TH   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_E1TH   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_E1TL   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_C2TH   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_C2TL   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_TB2TH   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_E2TH   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_E2TL   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))
 
#define LTC2947_LSB_ITH   12.0
 
#define LTC2947_LSB_ITL   12.0
 
#define LTC2947_LSB_PTH   200.0
 
#define LTC2947_LSB_PTL   200.0
 
#define LTC2947_LSB_VTH   2.0
 
#define LTC2947_LSB_VTL   2.0
 
#define LTC2947_LSB_TEMPTH   0.204
 
#define LTC2947_OFFS_TEMPTH   5.5
 
#define LTC2947_LSB_TEMPTL   0.204
 
#define LTC2947_OFFS_TEMPTL   5.5
 
#define LTC2947_LSB_VDVCCTH   145.0
 
#define LTC2947_LSB_VDVCCTL   145.0
 
#define LTC2947_LSB_TEMPTFANH   0.204
 
#define LTC2947_OFFS_TEMPTFANH   5.5
 
#define LTC2947_LSB_TEMPTFANL   0.204
 
#define LTC2947_OFFS_TEMPTFANL   5.5
 
#define LTC2947_BM_GPIOSTATCL_GPOEN   0x1
 
#define LTC2947_BM_GPIOSTATCL_GPI   0x10
 
#define LTC2947_BM_GPIOSTATCL_GPO   0x20
 
#define LTC2947_BM_GPIOSTATCL_FANEN   0x40
 
#define LTC2947_BM_GPIOSTATCL_FANPOL   0x80
 
#define LTC2947_BM_STATUS_UVLOA   0x1
 
#define LTC2947_BM_STATUS_PORA   0x2
 
#define LTC2947_BM_STATUS_UVLOSTBY   0x4
 
#define LTC2947_BM_STATUS_UVLOD   0x8
 
#define LTC2947_BM_STATUS_UPDATE   0x10
 
#define LTC2947_BM_STATUS_ADCERR   0x20
 
#define LTC2947_BM_STATUS_TBERR   0x40
 
#define LTC2947_BM_STATVT_VH   0x1
 
#define LTC2947_BM_STATVT_VL   0x2
 
#define LTC2947_BM_STATVT_TEMPH   0x4
 
#define LTC2947_BM_STATVT_TEMPL   0x8
 
#define LTC2947_BM_STATVT_FANH   0x10
 
#define LTC2947_BM_STATVT_FANL   0x20
 
#define LTC2947_BM_STATIP_IH   0x1
 
#define LTC2947_BM_STATIP_IL   0x2
 
#define LTC2947_BM_STATIP_PH   0x4
 
#define LTC2947_BM_STATIP_PL   0x8
 
#define LTC2947_BM_STATC_C1H   0x1
 
#define LTC2947_BM_STATC_C1L   0x2
 
#define LTC2947_BM_STATC_C2H   0x4
 
#define LTC2947_BM_STATC_C2L   0x8
 
#define LTC2947_BM_STATE_E1H   0x1
 
#define LTC2947_BM_STATE_E1L   0x2
 
#define LTC2947_BM_STATE_E2H   0x4
 
#define LTC2947_BM_STATE_E2L   0x8
 
#define LTC2947_BM_STATCEOF_C1OF   0x1
 
#define LTC2947_BM_STATCEOF_C2OF   0x2
 
#define LTC2947_BM_STATCEOF_E1OF   0x10
 
#define LTC2947_BM_STATCEOF_E2OF   0x20
 
#define LTC2947_BM_STATTB_TB1TH   0x1
 
#define LTC2947_BM_STATTB_TB2TH   0x2
 
#define LTC2947_BM_STATTB_TB1OF   0x10
 
#define LTC2947_BM_STATTB_TB2OF   0x20
 
#define LTC2947_BM_STATVDVCC_VDVCCH   0x1
 
#define LTC2947_BM_STATVDVCC_VDVCCL   0x2
 
#define LTC2947_BM_STATUSM_UVLOAM   0x1
 
#define LTC2947_BM_STATUSM_UVLODM   0x8
 
#define LTC2947_BM_STATUSM_UPDATEM   0x10
 
#define LTC2947_BM_STATUSM_ADCERRM   0x20
 
#define LTC2947_BM_STATUSM_TBERRM   0x40
 
#define LTC2947_BM_STATVTM_VHM   0x1
 
#define LTC2947_BM_STATVTM_VLM   0x2
 
#define LTC2947_BM_STATVTM_TEMPHM   0x4
 
#define LTC2947_BM_STATVTM_TEMPLM   0x8
 
#define LTC2947_BM_STATVTM_FANHM   0x10
 
#define LTC2947_BM_STATVTM_FANLM   0x20
 
#define LTC2947_BM_STATIPM_IHM   0x1
 
#define LTC2947_BM_STATIPM_ILM   0x2
 
#define LTC2947_BM_STATIPM_PHM   0x4
 
#define LTC2947_BM_STATIPM_PLM   0x8
 
#define LTC2947_BM_STATCM_C1HM   0x1
 
#define LTC2947_BM_STATCM_C1LM   0x2
 
#define LTC2947_BM_STATCM_C2HM   0x4
 
#define LTC2947_BM_STATCM_C2LM   0x8
 
#define LTC2947_BM_STATEM_E1HM   0x1
 
#define LTC2947_BM_STATEM_E1LM   0x2
 
#define LTC2947_BM_STATEM_E2HM   0x4
 
#define LTC2947_BM_STATEM_E2LM   0x8
 
#define LTC2947_BM_STATCEOFM_C1OFM   0x1
 
#define LTC2947_BM_STATCEOFM_C2OFM   0x2
 
#define LTC2947_BM_STATCEOFM_E1OFM   0x10
 
#define LTC2947_BM_STATCEOFM_E2OFM   0x20
 
#define LTC2947_BM_STATTBM_TB1THM   0x1
 
#define LTC2947_BM_STATTBM_TB2THM   0x2
 
#define LTC2947_BM_STATTBM_TB1OFM   0x10
 
#define LTC2947_BM_STATTBM_TB2OFM   0x20
 
#define LTC2947_BM_STATVDVCCM_VDVCCHM   0x1
 
#define LTC2947_BM_STATVDVCCM_VDVCCLM   0x2
 
#define LTC2947_BM_ACCICTL_ACC1I0   0x1
 
#define LTC2947_BM_ACCICTL_ACC1I1   0x2
 
#define LTC2947_BM_ACCICTL_ACC2I0   0x4
 
#define LTC2947_BM_ACCICTL_ACC2I1   0x8
 
#define LTC2947_BM_ACCGPCTL_ACC1GP0   0x1
 
#define LTC2947_BM_ACCGPCTL_ACC1GP1   0x2
 
#define LTC2947_BM_ACCGPCTL_ACC2GP0   0x4
 
#define LTC2947_BM_ACCGPCTL_ACC2GP1   0x8
 
#define LTC2947_BM_ALERTBCTL_ALERTBEN   0x1
 
#define LTC2947_BM_TBCTL_PRE_0   0x1
 
#define LTC2947_BM_TBCTL_PRE_1   0x2
 
#define LTC2947_BM_TBCTL_PRE_2   0x4
 
#define LTC2947_BM_TBCTL_DIV_0   0x8
 
#define LTC2947_BM_TBCTL_DIV_1   0x10
 
#define LTC2947_BM_TBCTL_DIV_2   0x20
 
#define LTC2947_BM_TBCTL_DIV_3   0x40
 
#define LTC2947_BM_TBCTL_DIV_4   0x80
 
#define LTC2947_BM_OPCTL_SHDN   0x1
 
#define LTC2947_BM_OPCTL_CLR   0x2
 
#define LTC2947_BM_OPCTL_SSHOT   0x4
 
#define LTC2947_BM_OPCTL_CONT   0x8
 
#define LTC2947_BM_OPCTL_RST   0x80
 
#define LTC2947_BM_PGCTL_PAGE   0x1
 

Variables

boolean LTC2947_SPI_Mode_Enabled
 controlled by LTC2947_InitI2C / LTC2947_InitSPI to switch between I2C / SPI mode More...
 
uint8_t LTC2947_I2C_Slave_Addr
 set by LTC2947_InitI2C to set slave address for I2C operation More...
 

function prototypes

#define LTC2947_ARA_ERROR   0xFF
 general I2C communication error More...
 
#define LTC2947_ARA_LTC2947_RESPONSE   1
 got ARA response from LTC2947 More...
 
#define LTC2947_ARA_OTHER_RESPONSE   2
 got ARA response from some other I2C slave More...
 
#define LTC2947_ARA_NO_RESPONSE   3
 got NO ARA response More...
 
#define LTC2947_ARA_RESPONSE_WO_WR   4
 got ARA response from any slave but wihtout the expected WR bit More...
 
#define LTC2947_ALERT_RESP_ADDR   0x0C
 The general alert response address. More...
 
void LTC2947_InitI2C (uint8_t slvAddr)
 Initializes the LTC2947 library for I2C mode operation and configures the slave address see defines LTC2947_I2C_ADDR_LL to LTC2947_I2C_ADDR_RR for possible slave addresses. More...
 
void LTC2947_InitSPI ()
 Initializes the LTC2947 library for SPI mode operation. More...
 
uint16_t LTC2947_2BytesToUInt16 (byte *bytes)
 Converts an array of 2 bytes to 16-bit unsigned integer. More...
 
uint32_t LTC2947_3BytesToUInt32 (byte *bytes)
 converts an array of 3 bytes to 32-bit unsigned integer More...
 
uint32_t LTC2947_4BytesToUInt32 (byte *bytes)
 Converts an array of 4 bytes to 32-bit unsigned integer. More...
 
int16_t LTC2947_2BytesToInt16 (byte *bytes)
 converts an array of 2 bytes to 16-bit signed integer More...
 
int32_t LTC2947_3BytesToInt32 (byte *bytes)
 converts an array of 3 bytes to 32-bit signed integer More...
 
int32_t LTC2947_4BytesToInt32 (byte *bytes)
 Converts an array of 4 bytes to 32-bit signed integer. More...
 
double LTC2947_UnsignedBytesToDouble (uint8_t *unsignedBytes, uint8_t length, double lsb)
 Converts an unsigned value of arbitrary number of bytes to a floating point value with the scaling factor lsb The input value must be usigned, use LTC2947_Abs to convert the bytes to an absolute (positive) value or use LTC2947_SignedBytesToDouble instead. More...
 
double LTC2947_SignedBytesToDouble (uint8_t *signedBytes, uint8_t length, double lsb)
 Converts a signed value of arbitrary number of bytes to a floating point value with the scaling factor lsb The input value must be a signed format. More...
 
double LTC2947_BytesToDouble (uint8_t *bytes, uint8_t length, boolean sig, double lsb)
 Converts a signed or unsigned value of arbitrary number of bytes to a floating point number. More...
 
void LTC2947_DoubleToBytes (double value, double lsb, uint8_t *bytes, uint8_t length)
 Converts a floating point number that was scaled with a given LSB to an integer representation that will be stored in the given byte array. More...
 
void LTC2947_SerialPrint8hex (uint8_t val)
 Prints a 8-bit value in 2-character hexadecimal format with left padded zeros. More...
 
void LTC2947_SerialPrint16hex (uint16_t val)
 Prints a 16-bit value in 4-character hexadecimal format with left padded zeros. More...
 
void LTC2947_SerialPrint32hex (uint32_t val)
 Prints a 32-bit value in 8-character hexadecimal format with left padded zeros. More...
 
void LTC2947_SerialPrint64hex (uint64_t uint64Val)
 Prints a 64-bit value in 16-character hexadecimal format with left padded zeros. More...
 
boolean LTC2947_Abs (uint8_t *bytes, uint8_t length)
 Calculates the absolute value of a signed value with arbitrary number of bytes. More...
 
void LTC2947_Read_I_P_V_TEMP_VCC (float *I, float *P, float *V, float *TEMP, float *VCC)
 Reads current (I), power (P), voltage (V), temperature (TEMP) and supply voltage (VCC) from the device Make sure LTC2947's page 0 is selected before calling this function. More...
 
void LTC2947_Read_Abs_C_E_TB (boolean accuSet1, double *C, boolean *signC, double *E, boolean *signE, double *TB)
 Reads charge (C), energy (E) and time (TB) from the device. More...
 
void LTC2947_Read_C_E_TB (boolean accuSet1, double *C, double *E, double *TB)
 Reads charge (C), energy (E) and time (TB) from the device. More...
 
int8_t LTC2947_SpiRdByte (uint8_t address, uint8_t *value)
 read single byte from SPI interface More...
 
int8_t LTC2947_SpiWrByte (uint8_t address, uint8_t value)
 write single byte to SPI interface More...
 
int8_t LTC2947_SpiRdBlock (uint8_t address, uint8_t length, uint8_t *values)
 read array of bytes from the SPI interface More...
 
int8_t LTC2947_SpiWrBlock (uint8_t address, uint8_t length, uint8_t *values)
 writes block (array) of bytes to the SPI interface More...
 
int8_t LTC2947_I2CRdByte (uint8_t slvAddr, uint8_t regAddr, uint8_t *value)
 read single byte via I2C More...
 
int8_t LTC2947_I2CRdBlock (uint8_t slvAddr, uint8_t regAddr, uint8_t length, uint8_t *values)
 read multiple bytes via I2C More...
 
int8_t LTC2947_I2CWrByte (uint8_t slvAddr, uint8_t regAddr, uint8_t value)
 write single byte via I2C More...
 
int8_t LTC2947_I2CWrBlock (uint8_t slvAddr, uint8_t regAddr, uint8_t length, uint8_t *values)
 write byte array via I2C interface More...
 
uint8_t LTC2947_Ara (uint8_t *svlAddr)
 Sends the Alert Response address to the I2C bus and reads the response If two or more devices on the same bus are generating alerts when the ARA is broadcasted, standard I2C arbitra- tion causes the device with the highest priority (lowest address) to reply first and the device with the lowest pri- ority (highest address) to reply last.The bus master will repeat the alert response protocol until the ALERT line is released. More...
 
void LTC2947_SetPageSelect (boolean page)
 write LTC2947's page control register to selected one of two memory pages More...
 
int16_t LTC2947_wake_up ()
 Wake up LTC2947 from shutdown mode and measure the wakeup time. More...
 
boolean LTC2947_GetCurrentPageSelect ()
 reads LTC2947's page control register to determine the currently selected memory page More...
 
boolean LTC2947_GPIO_Read ()
 reads the current GPIO pin state Make sure LTC2947's page 0 is selected before calling this function. More...
 
void LTC2947_GPIO_PinMode (uint8_t mode)
 Enables/disables the output driver on the GPIO pin Make sure LTC2947's page 0 is selected before calling this function. More...
 
void LTC2947_GPIO_SetPinState (uint8_t val)
 Sets the level of the output driver on the GPIO pin This has only an effect if the output driver is enabled, see LTC2947_GPIO_PinMode Make sure LTC2947's page 0 is selected before calling this function. More...
 

Function Documentation

◆ LTC2947_2BytesToInt16()

int16_t LTC2947_2BytesToInt16 ( byte *  bytes)

converts an array of 2 bytes to 16-bit signed integer

Returns
16-bit signed integer
Parameters
bytes2 byte array (MSB first)

Definition at line 301 of file LTC2947.cpp.

◆ LTC2947_2BytesToUInt16()

uint16_t LTC2947_2BytesToUInt16 ( byte *  bytes)

Converts an array of 2 bytes to 16-bit unsigned integer.

Returns
16-bit unsigned integer
Parameters
bytes2 byte array (MSB first)

Definition at line 342 of file LTC2947.cpp.

◆ LTC2947_3BytesToInt32()

int32_t LTC2947_3BytesToInt32 ( byte *  bytes)

converts an array of 3 bytes to 32-bit signed integer

Returns
32-bit signed integer
Parameters
bytes3 byte array (MSB first)

Definition at line 282 of file LTC2947.cpp.

◆ LTC2947_3BytesToUInt32()

uint32_t LTC2947_3BytesToUInt32 ( byte *  bytes)

converts an array of 3 bytes to 32-bit unsigned integer

Returns
32-bit unsigned integer
Parameters
bytes3 byte array (MSB first)

Definition at line 328 of file LTC2947.cpp.

◆ LTC2947_4BytesToInt32()

int32_t LTC2947_4BytesToInt32 ( byte *  bytes)

Converts an array of 4 bytes to 32-bit signed integer.

Returns
32-bit signed integer
Parameters
bytes4 byte array (MSB first)

Definition at line 265 of file LTC2947.cpp.

◆ LTC2947_4BytesToUInt32()

uint32_t LTC2947_4BytesToUInt32 ( byte *  bytes)

Converts an array of 4 bytes to 32-bit unsigned integer.

Returns
32-bit unsigned integer
Parameters
bytes4 byte array (MSB first)

Definition at line 311 of file LTC2947.cpp.

◆ LTC2947_Abs()

boolean LTC2947_Abs ( uint8_t *  bytes,
uint8_t  length 
)

Calculates the absolute value of a signed value with arbitrary number of bytes.

Returns
true: value was inverted, false: value was already positive
Parameters
bytesbytes of the signed value (MSB first)
lengthnumber of bytes

Definition at line 96 of file LTC2947.cpp.

◆ LTC2947_Ara()

uint8_t LTC2947_Ara ( uint8_t *  svlAddr)

Sends the Alert Response address to the I2C bus and reads the response If two or more devices on the same bus are generating alerts when the ARA is broadcasted, standard I2C arbitra- tion causes the device with the highest priority (lowest address) to reply first and the device with the lowest pri- ority (highest address) to reply last.The bus master will repeat the alert response protocol until the ALERT line is released.

Returns
LTC2947_ARA_ERROR : general I2C communication error LTC2947_ARA_LTC2947_RESPONSE : got ARA response from LTC2947 LTC2947_ARA_OTHER_RESPONSE : got ARA response from some other I2C slave LTC2947_ARA_NO_RESPONSE : got NO ARA response LTC2947_ARA_RESPONSE_WO_WR : got ARA response from any slave but wihtout the expected WR bit
Parameters
svlAddr7-bit address of the responding slave

Definition at line 533 of file LTC2947.cpp.

◆ LTC2947_BytesToDouble()

double LTC2947_BytesToDouble ( uint8_t *  bytes,
uint8_t  length,
boolean  sig,
double  lsb 
)

Converts a signed or unsigned value of arbitrary number of bytes to a floating point number.

Returns
result in floating point number format.
Parameters
bytesinput value as byte array (MSB first)
lengthnumber of bytes of the input value
sigtrue for signed value, false for unsigned
lsblsb value (scaling factor used to scale the input value)

Definition at line 121 of file LTC2947.cpp.

◆ LTC2947_DoubleToBytes()

void LTC2947_DoubleToBytes ( double  value,
double  lsb,
uint8_t *  bytes,
uint8_t  length 
)

Converts a floating point number that was scaled with a given LSB to an integer representation that will be stored in the given byte array.

Parameters
valuefloating point value
lsblsb of the floating point value (integer = value / lsb)
bytesbyte array of the integer representation
lengthlength (<=8) of the byte array. Note: The function does not check for overflow of the integer representation

Definition at line 175 of file LTC2947.cpp.

◆ LTC2947_GetCurrentPageSelect()

boolean LTC2947_GetCurrentPageSelect ( )

reads LTC2947's page control register to determine the currently selected memory page

Returns
true: page 1 is selected, false: page 0

Definition at line 591 of file LTC2947.cpp.

◆ LTC2947_GPIO_PinMode()

void LTC2947_GPIO_PinMode ( uint8_t  mode)

Enables/disables the output driver on the GPIO pin Make sure LTC2947's page 0 is selected before calling this function.

Use LTC2947_SetPageSelect to change page if necessary

Parameters
modeOUTPUT (1): output driver enabled, INPUT (0): output driver disabled

Definition at line 510 of file LTC2947.cpp.

◆ LTC2947_GPIO_Read()

boolean LTC2947_GPIO_Read ( )

reads the current GPIO pin state Make sure LTC2947's page 0 is selected before calling this function.

Use LTC2947_SetPageSelect to change page if necessary

Returns
true: pin high, false: pin low

Definition at line 526 of file LTC2947.cpp.

◆ LTC2947_GPIO_SetPinState()

void LTC2947_GPIO_SetPinState ( uint8_t  val)

Sets the level of the output driver on the GPIO pin This has only an effect if the output driver is enabled, see LTC2947_GPIO_PinMode Make sure LTC2947's page 0 is selected before calling this function.

Use LTC2947_SetPageSelect to change page if necessary

Parameters
valLOW (0): pin low, HIGH (1): pin high

Definition at line 518 of file LTC2947.cpp.

◆ LTC2947_I2CRdBlock()

int8_t LTC2947_I2CRdBlock ( uint8_t  slvAddr,
uint8_t  regAddr,
uint8_t  length,
uint8_t *  values 
)

read multiple bytes via I2C

Returns
0 if successful, 1 if not successful
Parameters
slvAddrThe slv address.
regAddrThe register address.
lengthnumber of bytes.
valuesread bytes

Definition at line 436 of file LTC2947.cpp.

◆ LTC2947_I2CRdByte()

int8_t LTC2947_I2CRdByte ( uint8_t  slvAddr,
uint8_t  regAddr,
uint8_t *  value 
)

read single byte via I2C

Returns
0 if successful, 1 if not successful
Parameters
slvAddrThe slv address.
regAddrThe register address.
valuebyte that was read

Definition at line 485 of file LTC2947.cpp.

◆ LTC2947_I2CWrBlock()

int8_t LTC2947_I2CWrBlock ( uint8_t  slvAddr,
uint8_t  regAddr,
uint8_t  length,
uint8_t *  values 
)

write byte array via I2C interface

Returns
0 if successful, 1 if not successful
Parameters
slvAddrThe slv address.
regAddrThe register address.
lengthnumber of bytes.
valuesbytes to be written

Definition at line 414 of file LTC2947.cpp.

◆ LTC2947_I2CWrByte()

int8_t LTC2947_I2CWrByte ( uint8_t  slvAddr,
uint8_t  regAddr,
uint8_t  value 
)

write single byte via I2C

Returns
0 if successful, 1 if not successful
Parameters
slvAddrThe slv address.
regAddrThe register address.
valuebyte to be written

Definition at line 469 of file LTC2947.cpp.

◆ LTC2947_InitI2C()

void LTC2947_InitI2C ( uint8_t  slvAddr)

Initializes the LTC2947 library for I2C mode operation and configures the slave address see defines LTC2947_I2C_ADDR_LL to LTC2947_I2C_ADDR_RR for possible slave addresses.

Parameters
slvAddr7-bit I2C slave address of the LTC2947 (e.g. LTC2947_I2C_ADDR_LL)

Definition at line 85 of file LTC2947.cpp.

◆ LTC2947_InitSPI()

void LTC2947_InitSPI ( )

Initializes the LTC2947 library for SPI mode operation.

Definition at line 91 of file LTC2947.cpp.

◆ LTC2947_RD_BYTE()

static int8_t LTC2947_RD_BYTE ( uint8_t  REG_ADDR,
uint8_t *  RESULT 
)
static

read single byte via I2C/SPI

Returns
0 if successful, 1 if not successful
Parameters
REG_ADDRThe register address.
RESULTbyte that was read

Definition at line 1614 of file LTC2947.h.

◆ LTC2947_RD_BYTES()

static int8_t LTC2947_RD_BYTES ( uint8_t  REG_ADDR,
uint8_t  LENGTH,
uint8_t *  BYTES 
)
static

read multiple bytes via I2C/SPI

Returns
0 if successful, 1 if not successful
Parameters
REG_ADDRThe register address.
LENGTHnumber of bytes.
BYTESread bytes

Definition at line 1588 of file LTC2947.h.

◆ LTC2947_Read_Abs_C_E_TB()

void LTC2947_Read_Abs_C_E_TB ( boolean  accuSet1,
double *  C,
boolean *  signC,
double *  E,
boolean *  signE,
double *  TB 
)

Reads charge (C), energy (E) and time (TB) from the device.

Charge and Energy are converted to absulte values (always positive!) and a separate sign bit. If the separation in absolute value and sign is not desired use LTC2947_Read_C_E_TB instead. Make sure LTC2947's page 0 is selected before calling this function. Use LTC2947_SetPageSelect to change page if necessary

Parameters
accuSet1True: Read C1, E1, TB1. False: Read C2, E2, TB2.
CAbsolute value of charge in As
signCSign of charge (True: negative, False: positive)
EAbsolute value of energy in Ws
signESign of energy (True: negative, False: positive)
TBTime in s

Definition at line 622 of file LTC2947.cpp.

◆ LTC2947_Read_C_E_TB()

void LTC2947_Read_C_E_TB ( boolean  accuSet1,
double *  C,
double *  E,
double *  TB 
)

Reads charge (C), energy (E) and time (TB) from the device.

Make sure LTC2947's page 0 is selected before calling this function. Use LTC2947_SetPageSelect to change page if necessary

Parameters
accuSet1True: Read C1, E1, TB1. False: Read C2, E2, TB2.
CSigned charge in As
ESigned energy in Ws
TBTime in s

Definition at line 649 of file LTC2947.cpp.

◆ LTC2947_Read_I_P_V_TEMP_VCC()

void LTC2947_Read_I_P_V_TEMP_VCC ( float *  I,
float *  P,
float *  V,
float *  TEMP,
float *  VCC 
)

Reads current (I), power (P), voltage (V), temperature (TEMP) and supply voltage (VCC) from the device Make sure LTC2947's page 0 is selected before calling this function.

Use LTC2947_SetPageSelect to change page if necessary

Parameters
ICurrent im amps
PPower in watts
VVoltage in volts
TEMPTemperature in degree celcius
VCCSupply voltage in volts

Definition at line 603 of file LTC2947.cpp.

◆ LTC2947_SerialPrint16hex()

void LTC2947_SerialPrint16hex ( uint16_t  val)

Prints a 16-bit value in 4-character hexadecimal format with left padded zeros.

Parameters
val16-bit input value

Definition at line 157 of file LTC2947.cpp.

◆ LTC2947_SerialPrint32hex()

void LTC2947_SerialPrint32hex ( uint32_t  val)

Prints a 32-bit value in 8-character hexadecimal format with left padded zeros.

Parameters
val32-bit input value

Definition at line 163 of file LTC2947.cpp.

◆ LTC2947_SerialPrint64hex()

void LTC2947_SerialPrint64hex ( uint64_t  uint64Val)

Prints a 64-bit value in 16-character hexadecimal format with left padded zeros.

Parameters
uint64Val64-bit input value

Definition at line 169 of file LTC2947.cpp.

◆ LTC2947_SerialPrint8hex()

void LTC2947_SerialPrint8hex ( uint8_t  val)

Prints a 8-bit value in 2-character hexadecimal format with left padded zeros.

Parameters
val8-bit input value

Definition at line 152 of file LTC2947.cpp.

◆ LTC2947_SetPageSelect()

void LTC2947_SetPageSelect ( boolean  page)

write LTC2947's page control register to selected one of two memory pages

Parameters
pagefalse: select page 0, true: select page 1

Definition at line 598 of file LTC2947.cpp.

◆ LTC2947_SignedBytesToDouble()

double LTC2947_SignedBytesToDouble ( uint8_t *  signedBytes,
uint8_t  length,
double  lsb 
)

Converts a signed value of arbitrary number of bytes to a floating point value with the scaling factor lsb The input value must be a signed format.

For unsigned values use LTC2947_UnsignedBytesToDouble. For input values with up to 4 bytes use LTC2947_<X>BytesToInt<N> (e.g. LTC2947_4BytesToInt32, LTC2947_2BytesToInt16) and multiply the result by lsb for reduced calculation time, e.g. "LTC2947_4BytesToInt32(bytes)*lsb".

Returns
result in floating point number format.
Parameters
signedBytessigned input value as byte array (MSB first)
lengthnumber of bytes of the signed value
lsblsb value (scaling factor used to scale the signed value)

Definition at line 247 of file LTC2947.cpp.

◆ LTC2947_SpiRdBlock()

int8_t LTC2947_SpiRdBlock ( uint8_t  address,
uint8_t  length,
uint8_t *  values 
)

read array of bytes from the SPI interface

Returns
always 0
Parameters
addressregister address
lengthLength of array
valuesByte array to store read bytes

Definition at line 374 of file LTC2947.cpp.

◆ LTC2947_SpiRdByte()

int8_t LTC2947_SpiRdByte ( uint8_t  address,
uint8_t *  value 
)

read single byte from SPI interface

Returns
always 0
Parameters
addressregister address
valueByte pointer to store read byte

Definition at line 402 of file LTC2947.cpp.

◆ LTC2947_SpiWrBlock()

int8_t LTC2947_SpiWrBlock ( uint8_t  address,
uint8_t  length,
uint8_t *  values 
)

writes block (array) of bytes to the SPI interface

Returns
always 0
Parameters
addressregister address
lengthLength of array
valuesByte array to be written

Definition at line 358 of file LTC2947.cpp.

◆ LTC2947_SpiWrByte()

int8_t LTC2947_SpiWrByte ( uint8_t  address,
uint8_t  value 
)

write single byte to SPI interface

Returns
always 0
Parameters
addressregister address
valueByte to be written

Definition at line 390 of file LTC2947.cpp.

◆ LTC2947_UnsignedBytesToDouble()

double LTC2947_UnsignedBytesToDouble ( uint8_t *  unsignedBytes,
uint8_t  length,
double  lsb 
)

Converts an unsigned value of arbitrary number of bytes to a floating point value with the scaling factor lsb The input value must be usigned, use LTC2947_Abs to convert the bytes to an absolute (positive) value or use LTC2947_SignedBytesToDouble instead.

For input values with up to 4 bytes use LTC2947_<X>BytesToUInt<N> (e.g. LTC2947_4BytesToUInt32, LTC2947_2BytesToUInt16) and multiply the result by lsb for reduced calculation time, e.g. "LTC2947_4BytesToUInt32(bytes)*lsb".

Returns
result in floating point number format (absolute value, so always positive!)
Parameters
unsignedBytesunsigned input value as byte array (MSB first)
lengthnumber of bytes of the unsigned value
lsblsb value (scaling factor used to scale the unsigned value)

Definition at line 137 of file LTC2947.cpp.

◆ LTC2947_wake_up()

int16_t LTC2947_wake_up ( )

Wake up LTC2947 from shutdown mode and measure the wakeup time.

Returns
-1 in case of timeout or milliseconds it took to wakeup LTC2947

Definition at line 567 of file LTC2947.cpp.

◆ LTC2947_WR_BYTE()

static int8_t LTC2947_WR_BYTE ( uint8_t  REG_ADDR,
uint8_t  VALUE 
)
static

write single byte via I2C

Returns
0 if successful, 1 if not successful
Parameters
REG_ADDRThe register address.
VALUEbyte to be written

Definition at line 1626 of file LTC2947.h.

◆ LTC2947_WR_BYTES()

static int8_t LTC2947_WR_BYTES ( uint8_t  REG_ADDR,
uint8_t  LENGTH,
uint8_t *  BYTES 
)
static

write byte array via I2C/SPI interface

Returns
0 if successful, 1 if not successful
Parameters
REG_ADDRThe register address.
LENGTHnumber of bytes.
BYTESbytes to be written

Definition at line 1601 of file LTC2947.h.

Macro Definition Documentation

◆ bitMaskClr

#define bitMaskClr (   value,
  bitMask 
)    (value &= ~(bitMask))

Definition at line 79 of file LTC2947.h.

◆ bitMaskClrChk

#define bitMaskClrChk (   value,
  bitMask 
)    (((value) & (bitMask)) == 0)

Definition at line 76 of file LTC2947.h.

◆ bitMaskSet

#define bitMaskSet (   value,
  bitMask 
)    (value |= (bitMask))

Definition at line 78 of file LTC2947.h.

◆ bitMaskSetChk

#define bitMaskSetChk (   value,
  bitMask 
)    (((value) & (bitMask)) == (bitMask))

Definition at line 75 of file LTC2947.h.

◆ bitMaskSetClr

#define bitMaskSetClr (   value,
  bitMask,
  setNotClr 
)    ((setNotClr) ? bitMaskSet(value,bitMask) : bitMaskClr(value,bitMask))

Definition at line 81 of file LTC2947.h.

◆ BM2BITPOS

#define BM2BITPOS (   bm)
Value:
((bm)&1<<7 ? 7 : \
(bm)&1<<6 ? 6 : \
(bm)&1<<5 ? 5 : \
(bm)&1<<4 ? 4 : \
(bm)&1<<3 ? 3 : \
(bm)&1<<2 ? 2 : \
(bm)&1<<1 ? 1 : 0)

Definition at line 93 of file LTC2947.h.

◆ LOG

#define LOG (   n)    (((n) >= 1<<16) ? (16 + LOG_8((n)>>16)) : LOG_8(n))

Definition at line 87 of file LTC2947.h.

◆ LOG_1

#define LOG_1 (   n)    (((n) >= 2) ? 1 : 0)

Definition at line 83 of file LTC2947.h.

◆ LOG_2

#define LOG_2 (   n)    (((n) >= 1<<2) ? (2 + LOG_1((n)>>2)) : LOG_1(n))

Definition at line 84 of file LTC2947.h.

◆ LOG_4

#define LOG_4 (   n)    (((n) >= 1<<4) ? (4 + LOG_2((n)>>4)) : LOG_2(n))

Definition at line 85 of file LTC2947.h.

◆ LOG_8

#define LOG_8 (   n)    (((n) >= 1<<8) ? (8 + LOG_4((n)>>8)) : LOG_4(n))

Definition at line 86 of file LTC2947.h.

◆ LTC2947_ALERT_RESP_ADDR

#define LTC2947_ALERT_RESP_ADDR   0x0C

The general alert response address.

Definition at line 1518 of file LTC2947.h.

◆ LTC2947_ARA_ERROR

#define LTC2947_ARA_ERROR   0xFF

general I2C communication error

Definition at line 1508 of file LTC2947.h.

◆ LTC2947_ARA_LTC2947_RESPONSE

#define LTC2947_ARA_LTC2947_RESPONSE   1

got ARA response from LTC2947

Definition at line 1510 of file LTC2947.h.

◆ LTC2947_ARA_NO_RESPONSE

#define LTC2947_ARA_NO_RESPONSE   3

got NO ARA response

Definition at line 1514 of file LTC2947.h.

◆ LTC2947_ARA_OTHER_RESPONSE

#define LTC2947_ARA_OTHER_RESPONSE   2

got ARA response from some other I2C slave

Definition at line 1512 of file LTC2947.h.

◆ LTC2947_ARA_RESPONSE_WO_WR

#define LTC2947_ARA_RESPONSE_WO_WR   4

got ARA response from any slave but wihtout the expected WR bit

Definition at line 1516 of file LTC2947.h.

◆ LTC2947_BM_ACCGPCTL_ACC1GP0

#define LTC2947_BM_ACCGPCTL_ACC1GP0   0x1

Definition at line 1230 of file LTC2947.h.

◆ LTC2947_BM_ACCGPCTL_ACC1GP1

#define LTC2947_BM_ACCGPCTL_ACC1GP1   0x2

Definition at line 1232 of file LTC2947.h.

◆ LTC2947_BM_ACCGPCTL_ACC2GP0

#define LTC2947_BM_ACCGPCTL_ACC2GP0   0x4

Definition at line 1234 of file LTC2947.h.

◆ LTC2947_BM_ACCGPCTL_ACC2GP1

#define LTC2947_BM_ACCGPCTL_ACC2GP1   0x8

Definition at line 1236 of file LTC2947.h.

◆ LTC2947_BM_ACCICTL_ACC1I0

#define LTC2947_BM_ACCICTL_ACC1I0   0x1

Definition at line 1220 of file LTC2947.h.

◆ LTC2947_BM_ACCICTL_ACC1I1

#define LTC2947_BM_ACCICTL_ACC1I1   0x2

Definition at line 1222 of file LTC2947.h.

◆ LTC2947_BM_ACCICTL_ACC2I0

#define LTC2947_BM_ACCICTL_ACC2I0   0x4

Definition at line 1224 of file LTC2947.h.

◆ LTC2947_BM_ACCICTL_ACC2I1

#define LTC2947_BM_ACCICTL_ACC2I1   0x8

Definition at line 1226 of file LTC2947.h.

◆ LTC2947_BM_ALERTBCTL_ALERTBEN

#define LTC2947_BM_ALERTBCTL_ALERTBEN   0x1

Definition at line 1241 of file LTC2947.h.

◆ LTC2947_BM_GPIOSTATCL_FANEN

#define LTC2947_BM_GPIOSTATCL_FANEN   0x40

Definition at line 1044 of file LTC2947.h.

◆ LTC2947_BM_GPIOSTATCL_FANPOL

#define LTC2947_BM_GPIOSTATCL_FANPOL   0x80

Definition at line 1048 of file LTC2947.h.

◆ LTC2947_BM_GPIOSTATCL_GPI

#define LTC2947_BM_GPIOSTATCL_GPI   0x10

Definition at line 1036 of file LTC2947.h.

◆ LTC2947_BM_GPIOSTATCL_GPO

#define LTC2947_BM_GPIOSTATCL_GPO   0x20

Definition at line 1040 of file LTC2947.h.

◆ LTC2947_BM_GPIOSTATCL_GPOEN

#define LTC2947_BM_GPIOSTATCL_GPOEN   0x1

Definition at line 1032 of file LTC2947.h.

◆ LTC2947_BM_OPCTL_CLR

#define LTC2947_BM_OPCTL_CLR   0x2

Definition at line 1266 of file LTC2947.h.

◆ LTC2947_BM_OPCTL_CONT

#define LTC2947_BM_OPCTL_CONT   0x8

Definition at line 1271 of file LTC2947.h.

◆ LTC2947_BM_OPCTL_RST

#define LTC2947_BM_OPCTL_RST   0x80

Definition at line 1273 of file LTC2947.h.

◆ LTC2947_BM_OPCTL_SHDN

#define LTC2947_BM_OPCTL_SHDN   0x1

Definition at line 1264 of file LTC2947.h.

◆ LTC2947_BM_OPCTL_SSHOT

#define LTC2947_BM_OPCTL_SSHOT   0x4

Definition at line 1268 of file LTC2947.h.

◆ LTC2947_BM_PGCTL_PAGE

#define LTC2947_BM_PGCTL_PAGE   0x1

Definition at line 1279 of file LTC2947.h.

◆ LTC2947_BM_STATC_C1H

#define LTC2947_BM_STATC_C1H   0x1

Definition at line 1092 of file LTC2947.h.

◆ LTC2947_BM_STATC_C1L

#define LTC2947_BM_STATC_C1L   0x2

Definition at line 1094 of file LTC2947.h.

◆ LTC2947_BM_STATC_C2H

#define LTC2947_BM_STATC_C2H   0x4

Definition at line 1096 of file LTC2947.h.

◆ LTC2947_BM_STATC_C2L

#define LTC2947_BM_STATC_C2L   0x8

Definition at line 1098 of file LTC2947.h.

◆ LTC2947_BM_STATCEOF_C1OF

#define LTC2947_BM_STATCEOF_C1OF   0x1

Definition at line 1112 of file LTC2947.h.

◆ LTC2947_BM_STATCEOF_C2OF

#define LTC2947_BM_STATCEOF_C2OF   0x2

Definition at line 1114 of file LTC2947.h.

◆ LTC2947_BM_STATCEOF_E1OF

#define LTC2947_BM_STATCEOF_E1OF   0x10

Definition at line 1116 of file LTC2947.h.

◆ LTC2947_BM_STATCEOF_E2OF

#define LTC2947_BM_STATCEOF_E2OF   0x20

Definition at line 1118 of file LTC2947.h.

◆ LTC2947_BM_STATCEOFM_C1OFM

#define LTC2947_BM_STATCEOFM_C1OFM   0x1

Definition at line 1194 of file LTC2947.h.

◆ LTC2947_BM_STATCEOFM_C2OFM

#define LTC2947_BM_STATCEOFM_C2OFM   0x2

Definition at line 1196 of file LTC2947.h.

◆ LTC2947_BM_STATCEOFM_E1OFM

#define LTC2947_BM_STATCEOFM_E1OFM   0x10

Definition at line 1198 of file LTC2947.h.

◆ LTC2947_BM_STATCEOFM_E2OFM

#define LTC2947_BM_STATCEOFM_E2OFM   0x20

Definition at line 1200 of file LTC2947.h.

◆ LTC2947_BM_STATCM_C1HM

#define LTC2947_BM_STATCM_C1HM   0x1

Definition at line 1174 of file LTC2947.h.

◆ LTC2947_BM_STATCM_C1LM

#define LTC2947_BM_STATCM_C1LM   0x2

Definition at line 1176 of file LTC2947.h.

◆ LTC2947_BM_STATCM_C2HM

#define LTC2947_BM_STATCM_C2HM   0x4

Definition at line 1178 of file LTC2947.h.

◆ LTC2947_BM_STATCM_C2LM

#define LTC2947_BM_STATCM_C2LM   0x8

Definition at line 1180 of file LTC2947.h.

◆ LTC2947_BM_STATE_E1H

#define LTC2947_BM_STATE_E1H   0x1

Definition at line 1102 of file LTC2947.h.

◆ LTC2947_BM_STATE_E1L

#define LTC2947_BM_STATE_E1L   0x2

Definition at line 1104 of file LTC2947.h.

◆ LTC2947_BM_STATE_E2H

#define LTC2947_BM_STATE_E2H   0x4

Definition at line 1106 of file LTC2947.h.

◆ LTC2947_BM_STATE_E2L

#define LTC2947_BM_STATE_E2L   0x8

Definition at line 1108 of file LTC2947.h.

◆ LTC2947_BM_STATEM_E1HM

#define LTC2947_BM_STATEM_E1HM   0x1

Definition at line 1184 of file LTC2947.h.

◆ LTC2947_BM_STATEM_E1LM

#define LTC2947_BM_STATEM_E1LM   0x2

Definition at line 1186 of file LTC2947.h.

◆ LTC2947_BM_STATEM_E2HM

#define LTC2947_BM_STATEM_E2HM   0x4

Definition at line 1188 of file LTC2947.h.

◆ LTC2947_BM_STATEM_E2LM

#define LTC2947_BM_STATEM_E2LM   0x8

Definition at line 1190 of file LTC2947.h.

◆ LTC2947_BM_STATIP_IH

#define LTC2947_BM_STATIP_IH   0x1

Definition at line 1082 of file LTC2947.h.

◆ LTC2947_BM_STATIP_IL

#define LTC2947_BM_STATIP_IL   0x2

Definition at line 1084 of file LTC2947.h.

◆ LTC2947_BM_STATIP_PH

#define LTC2947_BM_STATIP_PH   0x4

Definition at line 1086 of file LTC2947.h.

◆ LTC2947_BM_STATIP_PL

#define LTC2947_BM_STATIP_PL   0x8

Definition at line 1088 of file LTC2947.h.

◆ LTC2947_BM_STATIPM_IHM

#define LTC2947_BM_STATIPM_IHM   0x1

Definition at line 1164 of file LTC2947.h.

◆ LTC2947_BM_STATIPM_ILM

#define LTC2947_BM_STATIPM_ILM   0x2

Definition at line 1166 of file LTC2947.h.

◆ LTC2947_BM_STATIPM_PHM

#define LTC2947_BM_STATIPM_PHM   0x4

Definition at line 1168 of file LTC2947.h.

◆ LTC2947_BM_STATIPM_PLM

#define LTC2947_BM_STATIPM_PLM   0x8

Definition at line 1170 of file LTC2947.h.

◆ LTC2947_BM_STATTB_TB1OF

#define LTC2947_BM_STATTB_TB1OF   0x10

Definition at line 1126 of file LTC2947.h.

◆ LTC2947_BM_STATTB_TB1TH

#define LTC2947_BM_STATTB_TB1TH   0x1

Definition at line 1122 of file LTC2947.h.

◆ LTC2947_BM_STATTB_TB2OF

#define LTC2947_BM_STATTB_TB2OF   0x20

Definition at line 1128 of file LTC2947.h.

◆ LTC2947_BM_STATTB_TB2TH

#define LTC2947_BM_STATTB_TB2TH   0x2

Definition at line 1124 of file LTC2947.h.

◆ LTC2947_BM_STATTBM_TB1OFM

#define LTC2947_BM_STATTBM_TB1OFM   0x10

Definition at line 1208 of file LTC2947.h.

◆ LTC2947_BM_STATTBM_TB1THM

#define LTC2947_BM_STATTBM_TB1THM   0x1

Definition at line 1204 of file LTC2947.h.

◆ LTC2947_BM_STATTBM_TB2OFM

#define LTC2947_BM_STATTBM_TB2OFM   0x20

Definition at line 1210 of file LTC2947.h.

◆ LTC2947_BM_STATTBM_TB2THM

#define LTC2947_BM_STATTBM_TB2THM   0x2

Definition at line 1206 of file LTC2947.h.

◆ LTC2947_BM_STATUS_ADCERR

#define LTC2947_BM_STATUS_ADCERR   0x20

Definition at line 1062 of file LTC2947.h.

◆ LTC2947_BM_STATUS_PORA

#define LTC2947_BM_STATUS_PORA   0x2

Definition at line 1054 of file LTC2947.h.

◆ LTC2947_BM_STATUS_TBERR

#define LTC2947_BM_STATUS_TBERR   0x40

Definition at line 1064 of file LTC2947.h.

◆ LTC2947_BM_STATUS_UPDATE

#define LTC2947_BM_STATUS_UPDATE   0x10

Definition at line 1060 of file LTC2947.h.

◆ LTC2947_BM_STATUS_UVLOA

#define LTC2947_BM_STATUS_UVLOA   0x1

Definition at line 1052 of file LTC2947.h.

◆ LTC2947_BM_STATUS_UVLOD

#define LTC2947_BM_STATUS_UVLOD   0x8

Definition at line 1058 of file LTC2947.h.

◆ LTC2947_BM_STATUS_UVLOSTBY

#define LTC2947_BM_STATUS_UVLOSTBY   0x4

Definition at line 1056 of file LTC2947.h.

◆ LTC2947_BM_STATUSM_ADCERRM

#define LTC2947_BM_STATUSM_ADCERRM   0x20

Definition at line 1144 of file LTC2947.h.

◆ LTC2947_BM_STATUSM_TBERRM

#define LTC2947_BM_STATUSM_TBERRM   0x40

Definition at line 1146 of file LTC2947.h.

◆ LTC2947_BM_STATUSM_UPDATEM

#define LTC2947_BM_STATUSM_UPDATEM   0x10

Definition at line 1142 of file LTC2947.h.

◆ LTC2947_BM_STATUSM_UVLOAM

#define LTC2947_BM_STATUSM_UVLOAM   0x1

Definition at line 1138 of file LTC2947.h.

◆ LTC2947_BM_STATUSM_UVLODM

#define LTC2947_BM_STATUSM_UVLODM   0x8

Definition at line 1140 of file LTC2947.h.

◆ LTC2947_BM_STATVDVCC_VDVCCH

#define LTC2947_BM_STATVDVCC_VDVCCH   0x1

Definition at line 1132 of file LTC2947.h.

◆ LTC2947_BM_STATVDVCC_VDVCCL

#define LTC2947_BM_STATVDVCC_VDVCCL   0x2

Definition at line 1134 of file LTC2947.h.

◆ LTC2947_BM_STATVDVCCM_VDVCCHM

#define LTC2947_BM_STATVDVCCM_VDVCCHM   0x1

Definition at line 1214 of file LTC2947.h.

◆ LTC2947_BM_STATVDVCCM_VDVCCLM

#define LTC2947_BM_STATVDVCCM_VDVCCLM   0x2

Definition at line 1216 of file LTC2947.h.

◆ LTC2947_BM_STATVT_FANH

#define LTC2947_BM_STATVT_FANH   0x10

Definition at line 1076 of file LTC2947.h.

◆ LTC2947_BM_STATVT_FANL

#define LTC2947_BM_STATVT_FANL   0x20

Definition at line 1078 of file LTC2947.h.

◆ LTC2947_BM_STATVT_TEMPH

#define LTC2947_BM_STATVT_TEMPH   0x4

Definition at line 1072 of file LTC2947.h.

◆ LTC2947_BM_STATVT_TEMPL

#define LTC2947_BM_STATVT_TEMPL   0x8

Definition at line 1074 of file LTC2947.h.

◆ LTC2947_BM_STATVT_VH

#define LTC2947_BM_STATVT_VH   0x1

Definition at line 1068 of file LTC2947.h.

◆ LTC2947_BM_STATVT_VL

#define LTC2947_BM_STATVT_VL   0x2

Definition at line 1070 of file LTC2947.h.

◆ LTC2947_BM_STATVTM_FANHM

#define LTC2947_BM_STATVTM_FANHM   0x10

Definition at line 1158 of file LTC2947.h.

◆ LTC2947_BM_STATVTM_FANLM

#define LTC2947_BM_STATVTM_FANLM   0x20

Definition at line 1160 of file LTC2947.h.

◆ LTC2947_BM_STATVTM_TEMPHM

#define LTC2947_BM_STATVTM_TEMPHM   0x4

Definition at line 1154 of file LTC2947.h.

◆ LTC2947_BM_STATVTM_TEMPLM

#define LTC2947_BM_STATVTM_TEMPLM   0x8

Definition at line 1156 of file LTC2947.h.

◆ LTC2947_BM_STATVTM_VHM

#define LTC2947_BM_STATVTM_VHM   0x1

Definition at line 1150 of file LTC2947.h.

◆ LTC2947_BM_STATVTM_VLM

#define LTC2947_BM_STATVTM_VLM   0x2

Definition at line 1152 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_DIV_0

#define LTC2947_BM_TBCTL_DIV_0   0x8

Definition at line 1251 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_DIV_1

#define LTC2947_BM_TBCTL_DIV_1   0x10

Definition at line 1253 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_DIV_2

#define LTC2947_BM_TBCTL_DIV_2   0x20

Definition at line 1255 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_DIV_3

#define LTC2947_BM_TBCTL_DIV_3   0x40

Definition at line 1257 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_DIV_4

#define LTC2947_BM_TBCTL_DIV_4   0x80

Definition at line 1259 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_PRE_0

#define LTC2947_BM_TBCTL_PRE_0   0x1

Definition at line 1245 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_PRE_1

#define LTC2947_BM_TBCTL_PRE_1   0x2

Definition at line 1247 of file LTC2947.h.

◆ LTC2947_BM_TBCTL_PRE_2

#define LTC2947_BM_TBCTL_PRE_2   0x4

Definition at line 1249 of file LTC2947.h.

◆ LTC2947_CS

#define LTC2947_CS   QUIKEVAL_CS

Definition at line 117 of file LTC2947.h.

◆ LTC2947_DIV

#define LTC2947_DIV   ((uint8_t)(LTC2947_EXTCLK/32768.0/(1 << LTC2947_PRE)))

Definition at line 907 of file LTC2947.h.

◆ LTC2947_EXTCLK

#define LTC2947_EXTCLK   4e6

defines ltc 2947 extclk.

PRE, DIV, ext. oscillator setting: Before include of LTC2947.h you may

  1. define LTC2947_EXTCLK only to specify your external oscillator / crystal frequency
  2. not define anything. In this case the internal oscillator will be used (PRE = 7, DIV = 0) #undef LTC2947_EXTCLK // internal oscillator, so no external clock frequency #undef LTC2947_PRE // will be defined for internal oscillator by LTC2947.h #undef LTC2947_DIV // will be defined for internal oscillator by LTC2947.h
  3. define full set of PRE, DIV and EXTCLK #define LTC2947_PRE 2 // LTC2947.h will use those definitions to calc LSB calues #define LTC2947_DIV 30 // LTC2947.h will use those definitions to calc LSB calues #define LTC2947_EXTCLK 4e6 // LTC2947.h will use those definitions to calc LSB calues

In all cases after loading the header file you can

  1. Use LTC2947_PRE, LTC2947_DIV to write to LTC2947_REG_TBCTL see below.
  2. Use LSB definitions like LTC2947_LSB_TB1 to calculate real values out of integers

Note: All LSBs are calculated as a function of PRE, DIV and EXTCLK by pre-processor macros within LTC2947.h

Parameters
mustbe 4MHz in case of crystal operation, or 0.2 to 25 MHz in case of external oscillator

Definition at line 147 of file LTC2947.h.

◆ LTC2947_EXTCLK_UNSUPPORTED

#define LTC2947_EXTCLK_UNSUPPORTED   5

Definition at line 898 of file LTC2947.h.

◆ LTC2947_EXTPER

#define LTC2947_EXTPER   (1.0/LTC2947_EXTCLK)

Definition at line 911 of file LTC2947.h.

◆ LTC2947_I2C_ADDR_LH

#define LTC2947_I2C_ADDR_LH   0x5D

Definition at line 103 of file LTC2947.h.

◆ LTC2947_I2C_ADDR_LL

#define LTC2947_I2C_ADDR_LL   0x5C

Definition at line 102 of file LTC2947.h.

◆ LTC2947_I2C_ADDR_LR

#define LTC2947_I2C_ADDR_LR   0x5E

Definition at line 104 of file LTC2947.h.

◆ LTC2947_I2C_ADDR_RH

#define LTC2947_I2C_ADDR_RH   0x65

Definition at line 106 of file LTC2947.h.

◆ LTC2947_I2C_ADDR_RL

#define LTC2947_I2C_ADDR_RL   0x64

Definition at line 105 of file LTC2947.h.

◆ LTC2947_I2C_ADDR_RR

#define LTC2947_I2C_ADDR_RR   0x66

Definition at line 107 of file LTC2947.h.

◆ LTC2947_INTC

#define LTC2947_INTC   31e-6

Definition at line 913 of file LTC2947.h.

◆ LTC2947_LSB_C1

#define LTC2947_LSB_C1   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 916 of file LTC2947.h.

◆ LTC2947_LSB_C1TH

#define LTC2947_LSB_C1TH   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 974 of file LTC2947.h.

◆ LTC2947_LSB_C1TL

#define LTC2947_LSB_C1TL   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 976 of file LTC2947.h.

◆ LTC2947_LSB_C2

#define LTC2947_LSB_C2   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 922 of file LTC2947.h.

◆ LTC2947_LSB_C2TH

#define LTC2947_LSB_C2TH   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 984 of file LTC2947.h.

◆ LTC2947_LSB_C2TL

#define LTC2947_LSB_C2TL   (0.0384946 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 986 of file LTC2947.h.

◆ LTC2947_LSB_E1

#define LTC2947_LSB_E1   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 918 of file LTC2947.h.

◆ LTC2947_LSB_E1TH

#define LTC2947_LSB_E1TH   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 980 of file LTC2947.h.

◆ LTC2947_LSB_E1TL

#define LTC2947_LSB_E1TL   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 982 of file LTC2947.h.

◆ LTC2947_LSB_E2

#define LTC2947_LSB_E2   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 924 of file LTC2947.h.

◆ LTC2947_LSB_E2TH

#define LTC2947_LSB_E2TH   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 990 of file LTC2947.h.

◆ LTC2947_LSB_E2TL

#define LTC2947_LSB_E2TL   (0.641576 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 992 of file LTC2947.h.

◆ LTC2947_LSB_FACTOR_HOURS

#define LTC2947_LSB_FACTOR_HOURS   (1.0 / 60.0 / 60.0)

Definition at line 114 of file LTC2947.h.

◆ LTC2947_LSB_FACTOR_MILLI_HOURS

#define LTC2947_LSB_FACTOR_MILLI_HOURS   (1.0 / 60.0 / 60.0 / 1.0e-3)

Definition at line 113 of file LTC2947.h.

◆ LTC2947_LSB_I

#define LTC2947_LSB_I   3.0

Definition at line 952 of file LTC2947.h.

◆ LTC2947_LSB_IH1

#define LTC2947_LSB_IH1   3.0

Definition at line 964 of file LTC2947.h.

◆ LTC2947_LSB_IH2

#define LTC2947_LSB_IH2   3.0

Definition at line 966 of file LTC2947.h.

◆ LTC2947_LSB_IH3

#define LTC2947_LSB_IH3   3.0

Definition at line 968 of file LTC2947.h.

◆ LTC2947_LSB_IH4

#define LTC2947_LSB_IH4   3.0

Definition at line 970 of file LTC2947.h.

◆ LTC2947_LSB_IH5

#define LTC2947_LSB_IH5   3.0

Definition at line 972 of file LTC2947.h.

◆ LTC2947_LSB_IMAX

#define LTC2947_LSB_IMAX   12.0

Definition at line 928 of file LTC2947.h.

◆ LTC2947_LSB_IMIN

#define LTC2947_LSB_IMIN   12.0

Definition at line 930 of file LTC2947.h.

◆ LTC2947_LSB_ITH

#define LTC2947_LSB_ITH   12.0

Definition at line 994 of file LTC2947.h.

◆ LTC2947_LSB_ITL

#define LTC2947_LSB_ITL   12.0

Definition at line 996 of file LTC2947.h.

◆ LTC2947_LSB_P

#define LTC2947_LSB_P   50.0

Definition at line 954 of file LTC2947.h.

◆ LTC2947_LSB_PMAX

#define LTC2947_LSB_PMAX   200.0

Definition at line 932 of file LTC2947.h.

◆ LTC2947_LSB_PMIN

#define LTC2947_LSB_PMIN   200.0

Definition at line 934 of file LTC2947.h.

◆ LTC2947_LSB_PTH

#define LTC2947_LSB_PTH   200.0

Definition at line 998 of file LTC2947.h.

◆ LTC2947_LSB_PTL

#define LTC2947_LSB_PTL   200.0

Definition at line 1000 of file LTC2947.h.

◆ LTC2947_LSB_TB1

#define LTC2947_LSB_TB1   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 920 of file LTC2947.h.

◆ LTC2947_LSB_TB1TH

#define LTC2947_LSB_TB1TH   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 978 of file LTC2947.h.

◆ LTC2947_LSB_TB2

#define LTC2947_LSB_TB2   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 926 of file LTC2947.h.

◆ LTC2947_LSB_TB2TH

#define LTC2947_LSB_TB2TH   (12.8315 * (LTC2947_PRE == 7 ? LTC2947_INTC : LTC2947_EXTPER * (1 << LTC2947_PRE) * (LTC2947_DIV + 1)))

Definition at line 988 of file LTC2947.h.

◆ LTC2947_LSB_TEMP

#define LTC2947_LSB_TEMP   0.204

Definition at line 958 of file LTC2947.h.

◆ LTC2947_LSB_TEMPMAX

#define LTC2947_LSB_TEMPMAX   0.204

Definition at line 940 of file LTC2947.h.

◆ LTC2947_LSB_TEMPMIN

#define LTC2947_LSB_TEMPMIN   0.204

Definition at line 944 of file LTC2947.h.

◆ LTC2947_LSB_TEMPTFANH

#define LTC2947_LSB_TEMPTFANH   0.204

Definition at line 1018 of file LTC2947.h.

◆ LTC2947_LSB_TEMPTFANL

#define LTC2947_LSB_TEMPTFANL   0.204

Definition at line 1022 of file LTC2947.h.

◆ LTC2947_LSB_TEMPTH

#define LTC2947_LSB_TEMPTH   0.204

Definition at line 1006 of file LTC2947.h.

◆ LTC2947_LSB_TEMPTL

#define LTC2947_LSB_TEMPTL   0.204

Definition at line 1010 of file LTC2947.h.

◆ LTC2947_LSB_V

#define LTC2947_LSB_V   2.0

Definition at line 956 of file LTC2947.h.

◆ LTC2947_LSB_VDVCC

#define LTC2947_LSB_VDVCC   145.0

Definition at line 962 of file LTC2947.h.

◆ LTC2947_LSB_VDVCCMAX

#define LTC2947_LSB_VDVCCMAX   145.0

Definition at line 948 of file LTC2947.h.

◆ LTC2947_LSB_VDVCCMIN

#define LTC2947_LSB_VDVCCMIN   145.0

Definition at line 950 of file LTC2947.h.

◆ LTC2947_LSB_VDVCCTH

#define LTC2947_LSB_VDVCCTH   145.0

Definition at line 1014 of file LTC2947.h.

◆ LTC2947_LSB_VDVCCTL

#define LTC2947_LSB_VDVCCTL   145.0

Definition at line 1016 of file LTC2947.h.

◆ LTC2947_LSB_VMAX

#define LTC2947_LSB_VMAX   2.0

Definition at line 936 of file LTC2947.h.

◆ LTC2947_LSB_VMIN

#define LTC2947_LSB_VMIN   2.0

Definition at line 938 of file LTC2947.h.

◆ LTC2947_LSB_VTH

#define LTC2947_LSB_VTH   2.0

Definition at line 1002 of file LTC2947.h.

◆ LTC2947_LSB_VTL

#define LTC2947_LSB_VTL   2.0

Definition at line 1004 of file LTC2947.h.

◆ LTC2947_OFFS_TEMP

#define LTC2947_OFFS_TEMP   5.5

Definition at line 960 of file LTC2947.h.

◆ LTC2947_OFFS_TEMPMAX

#define LTC2947_OFFS_TEMPMAX   5.5

Definition at line 942 of file LTC2947.h.

◆ LTC2947_OFFS_TEMPMIN

#define LTC2947_OFFS_TEMPMIN   5.5

Definition at line 946 of file LTC2947.h.

◆ LTC2947_OFFS_TEMPTFANH

#define LTC2947_OFFS_TEMPTFANH   5.5

Definition at line 1020 of file LTC2947.h.

◆ LTC2947_OFFS_TEMPTFANL

#define LTC2947_OFFS_TEMPTFANL   5.5

Definition at line 1024 of file LTC2947.h.

◆ LTC2947_OFFS_TEMPTH

#define LTC2947_OFFS_TEMPTH   5.5

Definition at line 1008 of file LTC2947.h.

◆ LTC2947_OFFS_TEMPTL

#define LTC2947_OFFS_TEMPTL   5.5

Definition at line 1012 of file LTC2947.h.

◆ LTC2947_PRE

#define LTC2947_PRE
Value:
( \
LTC2947_EXTCLK <= 1e6 ? 0 : \
LTC2947_EXTCLK <= 2e6 ? 1 : \
LTC2947_EXTCLK <= 4e6 ? 2 : \
LTC2947_EXTCLK <= 8e6 ? 3 : \
LTC2947_EXTCLK <= 16e6 ? 4 : \
LTC2947_EXTCLK <= 25e6 ? 5 : LTC2947_EXTCLK_UNSUPPORTED)
#define LTC2947_EXTCLK_UNSUPPORTED
Definition: LTC2947.h:898

Definition at line 900 of file LTC2947.h.

◆ LTC2947_REG_ACCGPCTL

#define LTC2947_REG_ACCGPCTL   0x0E3

Definition at line 230 of file LTC2947.h.

◆ LTC2947_REG_ACCICTL

#define LTC2947_REG_ACCICTL   0x0E1

Definition at line 223 of file LTC2947.h.

◆ LTC2947_REG_ACCIDB

#define LTC2947_REG_ACCIDB   0x0E4

Definition at line 234 of file LTC2947.h.

◆ LTC2947_REG_ALERTBCTL

#define LTC2947_REG_ALERTBCTL   0x0E8

Definition at line 237 of file LTC2947.h.

◆ LTC2947_REG_C1_15_8

#define LTC2947_REG_C1_15_8   0x004

Definition at line 270 of file LTC2947.h.

◆ LTC2947_REG_C1_23_16

#define LTC2947_REG_C1_23_16   0x003

Definition at line 267 of file LTC2947.h.

◆ LTC2947_REG_C1_31_24

#define LTC2947_REG_C1_31_24   0x002

Definition at line 264 of file LTC2947.h.

◆ LTC2947_REG_C1_39_32

#define LTC2947_REG_C1_39_32   0x001

Definition at line 261 of file LTC2947.h.

◆ LTC2947_REG_C1_47_40

#define LTC2947_REG_C1_47_40   0x000

Definition at line 258 of file LTC2947.h.

◆ LTC2947_REG_C1_7_0

#define LTC2947_REG_C1_7_0   0x005

Definition at line 273 of file LTC2947.h.

◆ LTC2947_REG_C1TH_15_8

#define LTC2947_REG_C1TH_15_8   0x104

Definition at line 507 of file LTC2947.h.

◆ LTC2947_REG_C1TH_23_16

#define LTC2947_REG_C1TH_23_16   0x103

Definition at line 504 of file LTC2947.h.

◆ LTC2947_REG_C1TH_31_24

#define LTC2947_REG_C1TH_31_24   0x102

Definition at line 501 of file LTC2947.h.

◆ LTC2947_REG_C1TH_39_32

#define LTC2947_REG_C1TH_39_32   0x101

Definition at line 498 of file LTC2947.h.

◆ LTC2947_REG_C1TH_47_40

#define LTC2947_REG_C1TH_47_40   0x100

Definition at line 495 of file LTC2947.h.

◆ LTC2947_REG_C1TH_7_0

#define LTC2947_REG_C1TH_7_0   0x105

Definition at line 510 of file LTC2947.h.

◆ LTC2947_REG_C1TL_15_8

#define LTC2947_REG_C1TL_15_8   0x10A

Definition at line 525 of file LTC2947.h.

◆ LTC2947_REG_C1TL_23_16

#define LTC2947_REG_C1TL_23_16   0x109

Definition at line 522 of file LTC2947.h.

◆ LTC2947_REG_C1TL_31_24

#define LTC2947_REG_C1TL_31_24   0x108

Definition at line 519 of file LTC2947.h.

◆ LTC2947_REG_C1TL_39_32

#define LTC2947_REG_C1TL_39_32   0x107

Definition at line 516 of file LTC2947.h.

◆ LTC2947_REG_C1TL_47_40

#define LTC2947_REG_C1TL_47_40   0x106

Definition at line 513 of file LTC2947.h.

◆ LTC2947_REG_C1TL_7_0

#define LTC2947_REG_C1TL_7_0   0x10B

Definition at line 528 of file LTC2947.h.

◆ LTC2947_REG_C2_15_8

#define LTC2947_REG_C2_15_8   0x014

Definition at line 318 of file LTC2947.h.

◆ LTC2947_REG_C2_23_16

#define LTC2947_REG_C2_23_16   0x013

Definition at line 315 of file LTC2947.h.

◆ LTC2947_REG_C2_31_24

#define LTC2947_REG_C2_31_24   0x012

Definition at line 312 of file LTC2947.h.

◆ LTC2947_REG_C2_39_32

#define LTC2947_REG_C2_39_32   0x011

Definition at line 309 of file LTC2947.h.

◆ LTC2947_REG_C2_47_40

#define LTC2947_REG_C2_47_40   0x010

Definition at line 306 of file LTC2947.h.

◆ LTC2947_REG_C2_7_0

#define LTC2947_REG_C2_7_0   0x015

Definition at line 321 of file LTC2947.h.

◆ LTC2947_REG_C2TH_15_8

#define LTC2947_REG_C2TH_15_8   0x124

Definition at line 591 of file LTC2947.h.

◆ LTC2947_REG_C2TH_23_16

#define LTC2947_REG_C2TH_23_16   0x123

Definition at line 588 of file LTC2947.h.

◆ LTC2947_REG_C2TH_31_24

#define LTC2947_REG_C2TH_31_24   0x122

Definition at line 585 of file LTC2947.h.

◆ LTC2947_REG_C2TH_39_32

#define LTC2947_REG_C2TH_39_32   0x121

Definition at line 582 of file LTC2947.h.

◆ LTC2947_REG_C2TH_47_40

#define LTC2947_REG_C2TH_47_40   0x120

Definition at line 579 of file LTC2947.h.

◆ LTC2947_REG_C2TH_7_0

#define LTC2947_REG_C2TH_7_0   0x125

Definition at line 594 of file LTC2947.h.

◆ LTC2947_REG_C2TL_15_8

#define LTC2947_REG_C2TL_15_8   0x12A

Definition at line 609 of file LTC2947.h.

◆ LTC2947_REG_C2TL_23_16

#define LTC2947_REG_C2TL_23_16   0x129

Definition at line 606 of file LTC2947.h.

◆ LTC2947_REG_C2TL_31_24

#define LTC2947_REG_C2TL_31_24   0x128

Definition at line 603 of file LTC2947.h.

◆ LTC2947_REG_C2TL_39_32

#define LTC2947_REG_C2TL_39_32   0x127

Definition at line 600 of file LTC2947.h.

◆ LTC2947_REG_C2TL_47_40

#define LTC2947_REG_C2TL_47_40   0x126

Definition at line 597 of file LTC2947.h.

◆ LTC2947_REG_C2TL_7_0

#define LTC2947_REG_C2TL_7_0   0x12B

Definition at line 612 of file LTC2947.h.

◆ LTC2947_REG_E1_15_8

#define LTC2947_REG_E1_15_8   0x00A

Definition at line 288 of file LTC2947.h.

◆ LTC2947_REG_E1_23_16

#define LTC2947_REG_E1_23_16   0x009

Definition at line 285 of file LTC2947.h.

◆ LTC2947_REG_E1_31_24

#define LTC2947_REG_E1_31_24   0x008

Definition at line 282 of file LTC2947.h.

◆ LTC2947_REG_E1_39_32

#define LTC2947_REG_E1_39_32   0x007

Definition at line 279 of file LTC2947.h.

◆ LTC2947_REG_E1_47_40

#define LTC2947_REG_E1_47_40   0x006

Definition at line 276 of file LTC2947.h.

◆ LTC2947_REG_E1_7_0

#define LTC2947_REG_E1_7_0   0x00B

Definition at line 291 of file LTC2947.h.

◆ LTC2947_REG_E1TH_15_8

#define LTC2947_REG_E1TH_15_8   0x114

Definition at line 555 of file LTC2947.h.

◆ LTC2947_REG_E1TH_23_16

#define LTC2947_REG_E1TH_23_16   0x113

Definition at line 552 of file LTC2947.h.

◆ LTC2947_REG_E1TH_31_24

#define LTC2947_REG_E1TH_31_24   0x112

Definition at line 549 of file LTC2947.h.

◆ LTC2947_REG_E1TH_39_32

#define LTC2947_REG_E1TH_39_32   0x111

Definition at line 546 of file LTC2947.h.

◆ LTC2947_REG_E1TH_47_40

#define LTC2947_REG_E1TH_47_40   0x110

Definition at line 543 of file LTC2947.h.

◆ LTC2947_REG_E1TH_7_0

#define LTC2947_REG_E1TH_7_0   0x115

Definition at line 558 of file LTC2947.h.

◆ LTC2947_REG_E1TL_15_8

#define LTC2947_REG_E1TL_15_8   0x11A

Definition at line 573 of file LTC2947.h.

◆ LTC2947_REG_E1TL_23_16

#define LTC2947_REG_E1TL_23_16   0x119

Definition at line 570 of file LTC2947.h.

◆ LTC2947_REG_E1TL_31_24

#define LTC2947_REG_E1TL_31_24   0x118

Definition at line 567 of file LTC2947.h.

◆ LTC2947_REG_E1TL_39_32

#define LTC2947_REG_E1TL_39_32   0x117

Definition at line 564 of file LTC2947.h.

◆ LTC2947_REG_E1TL_47_40

#define LTC2947_REG_E1TL_47_40   0x116

Definition at line 561 of file LTC2947.h.

◆ LTC2947_REG_E1TL_7_0

#define LTC2947_REG_E1TL_7_0   0x11B

Definition at line 576 of file LTC2947.h.

◆ LTC2947_REG_E2_15_8

#define LTC2947_REG_E2_15_8   0x01A

Definition at line 336 of file LTC2947.h.

◆ LTC2947_REG_E2_23_16

#define LTC2947_REG_E2_23_16   0x019

Definition at line 333 of file LTC2947.h.

◆ LTC2947_REG_E2_31_24

#define LTC2947_REG_E2_31_24   0x018

Definition at line 330 of file LTC2947.h.

◆ LTC2947_REG_E2_39_32

#define LTC2947_REG_E2_39_32   0x017

Definition at line 327 of file LTC2947.h.

◆ LTC2947_REG_E2_47_40

#define LTC2947_REG_E2_47_40   0x016

Definition at line 324 of file LTC2947.h.

◆ LTC2947_REG_E2_7_0

#define LTC2947_REG_E2_7_0   0x01B

Definition at line 339 of file LTC2947.h.

◆ LTC2947_REG_E2TH_15_8

#define LTC2947_REG_E2TH_15_8   0x134

Definition at line 639 of file LTC2947.h.

◆ LTC2947_REG_E2TH_23_16

#define LTC2947_REG_E2TH_23_16   0x133

Definition at line 636 of file LTC2947.h.

◆ LTC2947_REG_E2TH_31_24

#define LTC2947_REG_E2TH_31_24   0x132

Definition at line 633 of file LTC2947.h.

◆ LTC2947_REG_E2TH_39_32

#define LTC2947_REG_E2TH_39_32   0x131

Definition at line 630 of file LTC2947.h.

◆ LTC2947_REG_E2TH_47_40

#define LTC2947_REG_E2TH_47_40   0x130

Definition at line 627 of file LTC2947.h.

◆ LTC2947_REG_E2TH_7_0

#define LTC2947_REG_E2TH_7_0   0x135

Definition at line 642 of file LTC2947.h.

◆ LTC2947_REG_E2TL_15_8

#define LTC2947_REG_E2TL_15_8   0x13A

Definition at line 657 of file LTC2947.h.

◆ LTC2947_REG_E2TL_23_16

#define LTC2947_REG_E2TL_23_16   0x139

Definition at line 654 of file LTC2947.h.

◆ LTC2947_REG_E2TL_31_24

#define LTC2947_REG_E2TL_31_24   0x138

Definition at line 651 of file LTC2947.h.

◆ LTC2947_REG_E2TL_39_32

#define LTC2947_REG_E2TL_39_32   0x137

Definition at line 648 of file LTC2947.h.

◆ LTC2947_REG_E2TL_47_40

#define LTC2947_REG_E2TL_47_40   0x136

Definition at line 645 of file LTC2947.h.

◆ LTC2947_REG_E2TL_7_0

#define LTC2947_REG_E2TL_7_0   0x13B

Definition at line 660 of file LTC2947.h.

◆ LTC2947_REG_GPIOSTATCL

#define LTC2947_REG_GPIOSTATCL   0x067

Definition at line 168 of file LTC2947.h.

◆ LTC2947_REG_I_15_8

#define LTC2947_REG_I_15_8   0x091

Definition at line 417 of file LTC2947.h.

◆ LTC2947_REG_I_23_16

#define LTC2947_REG_I_23_16   0x090

Definition at line 414 of file LTC2947.h.

◆ LTC2947_REG_I_7_0

#define LTC2947_REG_I_7_0   0x092

Definition at line 420 of file LTC2947.h.

◆ LTC2947_REG_IH1_15_8

#define LTC2947_REG_IH1_15_8   0x0B1

Definition at line 453 of file LTC2947.h.

◆ LTC2947_REG_IH1_23_16

#define LTC2947_REG_IH1_23_16   0x0B0

Definition at line 450 of file LTC2947.h.

◆ LTC2947_REG_IH1_7_0

#define LTC2947_REG_IH1_7_0   0x0B2

Definition at line 456 of file LTC2947.h.

◆ LTC2947_REG_IH2_15_8

#define LTC2947_REG_IH2_15_8   0x0B4

Definition at line 462 of file LTC2947.h.

◆ LTC2947_REG_IH2_23_16

#define LTC2947_REG_IH2_23_16   0x0B3

Definition at line 459 of file LTC2947.h.

◆ LTC2947_REG_IH2_7_0

#define LTC2947_REG_IH2_7_0   0x0B5

Definition at line 465 of file LTC2947.h.

◆ LTC2947_REG_IH3_15_8

#define LTC2947_REG_IH3_15_8   0x0B7

Definition at line 471 of file LTC2947.h.

◆ LTC2947_REG_IH3_23_16

#define LTC2947_REG_IH3_23_16   0x0B6

Definition at line 468 of file LTC2947.h.

◆ LTC2947_REG_IH3_7_0

#define LTC2947_REG_IH3_7_0   0x0B8

Definition at line 474 of file LTC2947.h.

◆ LTC2947_REG_IH4_15_8

#define LTC2947_REG_IH4_15_8   0x0BA

Definition at line 480 of file LTC2947.h.

◆ LTC2947_REG_IH4_23_16

#define LTC2947_REG_IH4_23_16   0x0B9

Definition at line 477 of file LTC2947.h.

◆ LTC2947_REG_IH4_7_0

#define LTC2947_REG_IH4_7_0   0x0BB

Definition at line 483 of file LTC2947.h.

◆ LTC2947_REG_IH5_15_8

#define LTC2947_REG_IH5_15_8   0x0BD

Definition at line 489 of file LTC2947.h.

◆ LTC2947_REG_IH5_23_16

#define LTC2947_REG_IH5_23_16   0x0BC

Definition at line 486 of file LTC2947.h.

◆ LTC2947_REG_IH5_7_0

#define LTC2947_REG_IH5_7_0   0x0BE

Definition at line 492 of file LTC2947.h.

◆ LTC2947_REG_IMAX_15_8

#define LTC2947_REG_IMAX_15_8   0x040

Definition at line 354 of file LTC2947.h.

◆ LTC2947_REG_IMAX_7_0

#define LTC2947_REG_IMAX_7_0   0x041

Definition at line 357 of file LTC2947.h.

◆ LTC2947_REG_IMIN_15_8

#define LTC2947_REG_IMIN_15_8   0x042

Definition at line 360 of file LTC2947.h.

◆ LTC2947_REG_IMIN_7_0

#define LTC2947_REG_IMIN_7_0   0x043

Definition at line 363 of file LTC2947.h.

◆ LTC2947_REG_ITH_15_8

#define LTC2947_REG_ITH_15_8   0x180

Definition at line 663 of file LTC2947.h.

◆ LTC2947_REG_ITH_7_0

#define LTC2947_REG_ITH_7_0   0x181

Definition at line 666 of file LTC2947.h.

◆ LTC2947_REG_ITL_15_8

#define LTC2947_REG_ITL_15_8   0x182

Definition at line 669 of file LTC2947.h.

◆ LTC2947_REG_ITL_7_0

#define LTC2947_REG_ITL_7_0   0x183

Definition at line 672 of file LTC2947.h.

◆ LTC2947_REG_OPCTL

#define LTC2947_REG_OPCTL   0x0F0

Definition at line 243 of file LTC2947.h.

◆ LTC2947_REG_P_15_8

#define LTC2947_REG_P_15_8   0x094

Definition at line 426 of file LTC2947.h.

◆ LTC2947_REG_P_23_16

#define LTC2947_REG_P_23_16   0x093

Definition at line 423 of file LTC2947.h.

◆ LTC2947_REG_P_7_0

#define LTC2947_REG_P_7_0   0x095

Definition at line 429 of file LTC2947.h.

◆ LTC2947_REG_PGCTL

#define LTC2947_REG_PGCTL   0x0FF

Definition at line 246 of file LTC2947.h.

◆ LTC2947_REG_PMAX_15_8

#define LTC2947_REG_PMAX_15_8   0x044

Definition at line 366 of file LTC2947.h.

◆ LTC2947_REG_PMAX_7_0

#define LTC2947_REG_PMAX_7_0   0x045

Definition at line 369 of file LTC2947.h.

◆ LTC2947_REG_PMIN_15_8

#define LTC2947_REG_PMIN_15_8   0x046

Definition at line 372 of file LTC2947.h.

◆ LTC2947_REG_PMIN_7_0

#define LTC2947_REG_PMIN_7_0   0x047

Definition at line 375 of file LTC2947.h.

◆ LTC2947_REG_PTH_15_8

#define LTC2947_REG_PTH_15_8   0x184

Definition at line 675 of file LTC2947.h.

◆ LTC2947_REG_PTH_7_0

#define LTC2947_REG_PTH_7_0   0x185

Definition at line 678 of file LTC2947.h.

◆ LTC2947_REG_PTL_15_8

#define LTC2947_REG_PTL_15_8   0x186

Definition at line 681 of file LTC2947.h.

◆ LTC2947_REG_PTL_7_0

#define LTC2947_REG_PTL_7_0   0x187

Definition at line 684 of file LTC2947.h.

◆ LTC2947_REG_STATC

#define LTC2947_REG_STATC   0x083

Definition at line 180 of file LTC2947.h.

◆ LTC2947_REG_STATCEOF

#define LTC2947_REG_STATCEOF   0x085

Definition at line 186 of file LTC2947.h.

◆ LTC2947_REG_STATCEOFM

#define LTC2947_REG_STATCEOFM   0x08D

Definition at line 210 of file LTC2947.h.

◆ LTC2947_REG_STATCM

#define LTC2947_REG_STATCM   0x08B

Definition at line 204 of file LTC2947.h.

◆ LTC2947_REG_STATE

#define LTC2947_REG_STATE   0x084

Definition at line 183 of file LTC2947.h.

◆ LTC2947_REG_STATEM

#define LTC2947_REG_STATEM   0x08C

Definition at line 207 of file LTC2947.h.

◆ LTC2947_REG_STATIP

#define LTC2947_REG_STATIP   0x082

Definition at line 177 of file LTC2947.h.

◆ LTC2947_REG_STATIPM

#define LTC2947_REG_STATIPM   0x08A

Definition at line 201 of file LTC2947.h.

◆ LTC2947_REG_STATTB

#define LTC2947_REG_STATTB   0x086

Definition at line 189 of file LTC2947.h.

◆ LTC2947_REG_STATTBM

#define LTC2947_REG_STATTBM   0x08E

Definition at line 213 of file LTC2947.h.

◆ LTC2947_REG_STATUS

#define LTC2947_REG_STATUS   0x080

Definition at line 171 of file LTC2947.h.

◆ LTC2947_REG_STATUSM

#define LTC2947_REG_STATUSM   0x088

Definition at line 195 of file LTC2947.h.

◆ LTC2947_REG_STATVDVCC

#define LTC2947_REG_STATVDVCC   0x087

Definition at line 192 of file LTC2947.h.

◆ LTC2947_REG_STATVDVCCM

#define LTC2947_REG_STATVDVCCM   0x08F

Definition at line 216 of file LTC2947.h.

◆ LTC2947_REG_STATVT

#define LTC2947_REG_STATVT   0x081

Definition at line 174 of file LTC2947.h.

◆ LTC2947_REG_STATVTM

#define LTC2947_REG_STATVTM   0x089

Definition at line 198 of file LTC2947.h.

◆ LTC2947_REG_TB1_15_8

#define LTC2947_REG_TB1_15_8   0x00E

Definition at line 300 of file LTC2947.h.

◆ LTC2947_REG_TB1_23_16

#define LTC2947_REG_TB1_23_16   0x00D

Definition at line 297 of file LTC2947.h.

◆ LTC2947_REG_TB1_31_24

#define LTC2947_REG_TB1_31_24   0x00C

Definition at line 294 of file LTC2947.h.

◆ LTC2947_REG_TB1_7_0

#define LTC2947_REG_TB1_7_0   0x00F

Definition at line 303 of file LTC2947.h.

◆ LTC2947_REG_TB1TH_15_8

#define LTC2947_REG_TB1TH_15_8   0x10E

Definition at line 537 of file LTC2947.h.

◆ LTC2947_REG_TB1TH_23_16

#define LTC2947_REG_TB1TH_23_16   0x10D

Definition at line 534 of file LTC2947.h.

◆ LTC2947_REG_TB1TH_31_24

#define LTC2947_REG_TB1TH_31_24   0x10C

Definition at line 531 of file LTC2947.h.

◆ LTC2947_REG_TB1TH_7_0

#define LTC2947_REG_TB1TH_7_0   0x10F

Definition at line 540 of file LTC2947.h.

◆ LTC2947_REG_TB2_15_8

#define LTC2947_REG_TB2_15_8   0x01E

Definition at line 348 of file LTC2947.h.

◆ LTC2947_REG_TB2_23_16

#define LTC2947_REG_TB2_23_16   0x01D

Definition at line 345 of file LTC2947.h.

◆ LTC2947_REG_TB2_31_24

#define LTC2947_REG_TB2_31_24   0x01C

Definition at line 342 of file LTC2947.h.

◆ LTC2947_REG_TB2_7_0

#define LTC2947_REG_TB2_7_0   0x01F

Definition at line 351 of file LTC2947.h.

◆ LTC2947_REG_TB2TH_15_8

#define LTC2947_REG_TB2TH_15_8   0x12E

Definition at line 621 of file LTC2947.h.

◆ LTC2947_REG_TB2TH_23_16

#define LTC2947_REG_TB2TH_23_16   0x12D

Definition at line 618 of file LTC2947.h.

◆ LTC2947_REG_TB2TH_31_24

#define LTC2947_REG_TB2TH_31_24   0x12C

Definition at line 615 of file LTC2947.h.

◆ LTC2947_REG_TB2TH_7_0

#define LTC2947_REG_TB2TH_7_0   0x12F

Definition at line 624 of file LTC2947.h.

◆ LTC2947_REG_TBCTL

#define LTC2947_REG_TBCTL   0x0E9

Definition at line 240 of file LTC2947.h.

◆ LTC2947_REG_TEMP_15_8

#define LTC2947_REG_TEMP_15_8   0x0A2

Definition at line 438 of file LTC2947.h.

◆ LTC2947_REG_TEMP_7_0

#define LTC2947_REG_TEMP_7_0   0x0A3

Definition at line 441 of file LTC2947.h.

◆ LTC2947_REG_TEMPMAX_15_8

#define LTC2947_REG_TEMPMAX_15_8   0x054

Definition at line 390 of file LTC2947.h.

◆ LTC2947_REG_TEMPMAX_7_0

#define LTC2947_REG_TEMPMAX_7_0   0x055

Definition at line 393 of file LTC2947.h.

◆ LTC2947_REG_TEMPMIN_15_8

#define LTC2947_REG_TEMPMIN_15_8   0x056

Definition at line 396 of file LTC2947.h.

◆ LTC2947_REG_TEMPMIN_7_0

#define LTC2947_REG_TEMPMIN_7_0   0x057

Definition at line 399 of file LTC2947.h.

◆ LTC2947_REG_TEMPTFANH_15_8

#define LTC2947_REG_TEMPTFANH_15_8   0x19C

Definition at line 723 of file LTC2947.h.

◆ LTC2947_REG_TEMPTFANH_7_0

#define LTC2947_REG_TEMPTFANH_7_0   0x19D

Definition at line 726 of file LTC2947.h.

◆ LTC2947_REG_TEMPTFANL_15_8

#define LTC2947_REG_TEMPTFANL_15_8   0x19E

Definition at line 729 of file LTC2947.h.

◆ LTC2947_REG_TEMPTFANL_7_0

#define LTC2947_REG_TEMPTFANL_7_0   0x19F

Definition at line 732 of file LTC2947.h.

◆ LTC2947_REG_TEMPTH_15_8

#define LTC2947_REG_TEMPTH_15_8   0x194

Definition at line 699 of file LTC2947.h.

◆ LTC2947_REG_TEMPTH_7_0

#define LTC2947_REG_TEMPTH_7_0   0x195

Definition at line 702 of file LTC2947.h.

◆ LTC2947_REG_TEMPTL_15_8

#define LTC2947_REG_TEMPTL_15_8   0x196

Definition at line 705 of file LTC2947.h.

◆ LTC2947_REG_TEMPTL_7_0

#define LTC2947_REG_TEMPTL_7_0   0x197

Definition at line 708 of file LTC2947.h.

◆ LTC2947_REG_V_15_8

#define LTC2947_REG_V_15_8   0x0A0

Definition at line 432 of file LTC2947.h.

◆ LTC2947_REG_V_7_0

#define LTC2947_REG_V_7_0   0x0A1

Definition at line 435 of file LTC2947.h.

◆ LTC2947_REG_VDVCC_15_8

#define LTC2947_REG_VDVCC_15_8   0x0A4

Definition at line 444 of file LTC2947.h.

◆ LTC2947_REG_VDVCC_7_0

#define LTC2947_REG_VDVCC_7_0   0x0A5

Definition at line 447 of file LTC2947.h.

◆ LTC2947_REG_VDVCCMAX_15_8

#define LTC2947_REG_VDVCCMAX_15_8   0x058

Definition at line 402 of file LTC2947.h.

◆ LTC2947_REG_VDVCCMAX_7_0

#define LTC2947_REG_VDVCCMAX_7_0   0x059

Definition at line 405 of file LTC2947.h.

◆ LTC2947_REG_VDVCCMIN_15_8

#define LTC2947_REG_VDVCCMIN_15_8   0x05A

Definition at line 408 of file LTC2947.h.

◆ LTC2947_REG_VDVCCMIN_7_0

#define LTC2947_REG_VDVCCMIN_7_0   0x05B

Definition at line 411 of file LTC2947.h.

◆ LTC2947_REG_VDVCCTH_15_8

#define LTC2947_REG_VDVCCTH_15_8   0x198

Definition at line 711 of file LTC2947.h.

◆ LTC2947_REG_VDVCCTH_7_0

#define LTC2947_REG_VDVCCTH_7_0   0x199

Definition at line 714 of file LTC2947.h.

◆ LTC2947_REG_VDVCCTL_15_8

#define LTC2947_REG_VDVCCTL_15_8   0x19A

Definition at line 717 of file LTC2947.h.

◆ LTC2947_REG_VDVCCTL_7_0

#define LTC2947_REG_VDVCCTL_7_0   0x19B

Definition at line 720 of file LTC2947.h.

◆ LTC2947_REG_VMAX_15_8

#define LTC2947_REG_VMAX_15_8   0x050

Definition at line 378 of file LTC2947.h.

◆ LTC2947_REG_VMAX_7_0

#define LTC2947_REG_VMAX_7_0   0x051

Definition at line 381 of file LTC2947.h.

◆ LTC2947_REG_VMIN_15_8

#define LTC2947_REG_VMIN_15_8   0x052

Definition at line 384 of file LTC2947.h.

◆ LTC2947_REG_VMIN_7_0

#define LTC2947_REG_VMIN_7_0   0x053

Definition at line 387 of file LTC2947.h.

◆ LTC2947_REG_VTH_15_8

#define LTC2947_REG_VTH_15_8   0x190

Definition at line 687 of file LTC2947.h.

◆ LTC2947_REG_VTH_7_0

#define LTC2947_REG_VTH_7_0   0x191

Definition at line 690 of file LTC2947.h.

◆ LTC2947_REG_VTL_15_8

#define LTC2947_REG_VTL_15_8   0x192

Definition at line 693 of file LTC2947.h.

◆ LTC2947_REG_VTL_7_0

#define LTC2947_REG_VTL_7_0   0x193

Definition at line 696 of file LTC2947.h.

◆ LTC2947_SPI_READ_CMD

#define LTC2947_SPI_READ_CMD   0x01

Definition at line 110 of file LTC2947.h.

◆ LTC2947_SPI_WRITE_CMD

#define LTC2947_SPI_WRITE_CMD   0x00

Definition at line 111 of file LTC2947.h.

◆ LTC2947_VAL_C1

#define LTC2947_VAL_C1   0x000

Definition at line 744 of file LTC2947.h.

◆ LTC2947_VAL_C1TH

#define LTC2947_VAL_C1TH   0x100

Definition at line 822 of file LTC2947.h.

◆ LTC2947_VAL_C1TL

#define LTC2947_VAL_C1TL   0x106

Definition at line 825 of file LTC2947.h.

◆ LTC2947_VAL_C2

#define LTC2947_VAL_C2   0x010

Definition at line 753 of file LTC2947.h.

◆ LTC2947_VAL_C2TH

#define LTC2947_VAL_C2TH   0x120

Definition at line 837 of file LTC2947.h.

◆ LTC2947_VAL_C2TL

#define LTC2947_VAL_C2TL   0x126

Definition at line 840 of file LTC2947.h.

◆ LTC2947_VAL_E1

#define LTC2947_VAL_E1   0x006

Definition at line 747 of file LTC2947.h.

◆ LTC2947_VAL_E1TH

#define LTC2947_VAL_E1TH   0x110

Definition at line 831 of file LTC2947.h.

◆ LTC2947_VAL_E1TL

#define LTC2947_VAL_E1TL   0x116

Definition at line 834 of file LTC2947.h.

◆ LTC2947_VAL_E2

#define LTC2947_VAL_E2   0x016

Definition at line 756 of file LTC2947.h.

◆ LTC2947_VAL_E2TH

#define LTC2947_VAL_E2TH   0x130

Definition at line 846 of file LTC2947.h.

◆ LTC2947_VAL_E2TL

#define LTC2947_VAL_E2TL   0x136

Definition at line 849 of file LTC2947.h.

◆ LTC2947_VAL_I

#define LTC2947_VAL_I   0x090

Definition at line 792 of file LTC2947.h.

◆ LTC2947_VAL_IH1

#define LTC2947_VAL_IH1   0x0B0

Definition at line 807 of file LTC2947.h.

◆ LTC2947_VAL_IH2

#define LTC2947_VAL_IH2   0x0B3

Definition at line 810 of file LTC2947.h.

◆ LTC2947_VAL_IH3

#define LTC2947_VAL_IH3   0x0B6

Definition at line 813 of file LTC2947.h.

◆ LTC2947_VAL_IH4

#define LTC2947_VAL_IH4   0x0B9

Definition at line 816 of file LTC2947.h.

◆ LTC2947_VAL_IH5

#define LTC2947_VAL_IH5   0x0BC

Definition at line 819 of file LTC2947.h.

◆ LTC2947_VAL_IMAX

#define LTC2947_VAL_IMAX   0x040

Definition at line 762 of file LTC2947.h.

◆ LTC2947_VAL_IMIN

#define LTC2947_VAL_IMIN   0x042

Definition at line 765 of file LTC2947.h.

◆ LTC2947_VAL_ITH

#define LTC2947_VAL_ITH   0x180

Definition at line 852 of file LTC2947.h.

◆ LTC2947_VAL_ITL

#define LTC2947_VAL_ITL   0x182

Definition at line 855 of file LTC2947.h.

◆ LTC2947_VAL_P

#define LTC2947_VAL_P   0x093

Definition at line 795 of file LTC2947.h.

◆ LTC2947_VAL_PMAX

#define LTC2947_VAL_PMAX   0x044

Definition at line 768 of file LTC2947.h.

◆ LTC2947_VAL_PMIN

#define LTC2947_VAL_PMIN   0x046

Definition at line 771 of file LTC2947.h.

◆ LTC2947_VAL_PTH

#define LTC2947_VAL_PTH   0x184

Definition at line 858 of file LTC2947.h.

◆ LTC2947_VAL_PTL

#define LTC2947_VAL_PTL   0x186

Definition at line 861 of file LTC2947.h.

◆ LTC2947_VAL_TB1

#define LTC2947_VAL_TB1   0x00C

Definition at line 750 of file LTC2947.h.

◆ LTC2947_VAL_TB1TH

#define LTC2947_VAL_TB1TH   0x10C

Definition at line 828 of file LTC2947.h.

◆ LTC2947_VAL_TB2

#define LTC2947_VAL_TB2   0x01C

Definition at line 759 of file LTC2947.h.

◆ LTC2947_VAL_TB2TH

#define LTC2947_VAL_TB2TH   0x12C

Definition at line 843 of file LTC2947.h.

◆ LTC2947_VAL_TEMP

#define LTC2947_VAL_TEMP   0x0A2

Definition at line 801 of file LTC2947.h.

◆ LTC2947_VAL_TEMPMAX

#define LTC2947_VAL_TEMPMAX   0x054

Definition at line 780 of file LTC2947.h.

◆ LTC2947_VAL_TEMPMIN

#define LTC2947_VAL_TEMPMIN   0x056

Definition at line 783 of file LTC2947.h.

◆ LTC2947_VAL_TEMPTFANH

#define LTC2947_VAL_TEMPTFANH   0x19C

Definition at line 882 of file LTC2947.h.

◆ LTC2947_VAL_TEMPTFANL

#define LTC2947_VAL_TEMPTFANL   0x19E

Definition at line 885 of file LTC2947.h.

◆ LTC2947_VAL_TEMPTH

#define LTC2947_VAL_TEMPTH   0x194

Definition at line 870 of file LTC2947.h.

◆ LTC2947_VAL_TEMPTL

#define LTC2947_VAL_TEMPTL   0x196

Definition at line 873 of file LTC2947.h.

◆ LTC2947_VAL_V

#define LTC2947_VAL_V   0x0A0

Definition at line 798 of file LTC2947.h.

◆ LTC2947_VAL_VDVCC

#define LTC2947_VAL_VDVCC   0x0A4

Definition at line 804 of file LTC2947.h.

◆ LTC2947_VAL_VDVCCMAX

#define LTC2947_VAL_VDVCCMAX   0x058

Definition at line 786 of file LTC2947.h.

◆ LTC2947_VAL_VDVCCMIN

#define LTC2947_VAL_VDVCCMIN   0x05A

Definition at line 789 of file LTC2947.h.

◆ LTC2947_VAL_VDVCCTH

#define LTC2947_VAL_VDVCCTH   0x198

Definition at line 876 of file LTC2947.h.

◆ LTC2947_VAL_VDVCCTL

#define LTC2947_VAL_VDVCCTL   0x19A

Definition at line 879 of file LTC2947.h.

◆ LTC2947_VAL_VMAX

#define LTC2947_VAL_VMAX   0x050

Definition at line 774 of file LTC2947.h.

◆ LTC2947_VAL_VMIN

#define LTC2947_VAL_VMIN   0x052

Definition at line 777 of file LTC2947.h.

◆ LTC2947_VAL_VTH

#define LTC2947_VAL_VTH   0x190

Definition at line 864 of file LTC2947.h.

◆ LTC2947_VAL_VTL

#define LTC2947_VAL_VTL   0x192

Definition at line 867 of file LTC2947.h.

Variable Documentation

◆ LTC2947_I2C_Slave_Addr

uint8_t LTC2947_I2C_Slave_Addr

set by LTC2947_InitI2C to set slave address for I2C operation

Definition at line 83 of file LTC2947.cpp.

◆ LTC2947_SPI_Mode_Enabled

boolean LTC2947_SPI_Mode_Enabled

controlled by LTC2947_InitI2C / LTC2947_InitSPI to switch between I2C / SPI mode

Definition at line 82 of file LTC2947.cpp.