| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

LTC4155_formats.h File Reference
Switching Regulators, Battery Chargers, and LED Drivers » LTC4155: Dual-Input Power Manager / 3.5A Li-Ion Battery Charger with I²C Control and USB OTG

LTC4155: Dual-Input Power Manager / 3.5A Li-Ion Battery Charger with I²C Control and USB OTG. More...

## Detailed Description

LTC4155: Dual-Input Power Manager / 3.5A Li-Ion Battery Charger with I²C Control and USB OTG.

    The LTC®4155 is a 15 watt I²C controlled power manager with PowerPath™ instant-
    on operation, high efficiency switching battery charging and USB compatibility.
    The LTC4155 seamlessly manages power distribution from two 5V sources, such as a
    USB port and a wall adapter, to a single-cell rechargeable Lithium-Ion/Polymer
    battery and a system load.

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

http://www.linear.com/product/LTC4155#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.

Generated on: 2016-01-19

LTC4155 library file defining data conversion macros and constants used by LTC4155.c

This file contains macros and constants which can be used to represent real-world values in the source code, with automatic compile-time conversion to LTC4155 internal register scaling.

Passing runtime variables to these macros should be avoided as it will likely result in runtime calculations accompanied by associated processor loading and memory usage.

Definition in file LTC4155_formats.h.

Go to the source code of this file.

## Macros
Constants used in real world conversion macros below
#define | LTC4155_KSPAN 0.006162
#define | LTC4155_KOFFSET 0.1127
#define | LTC4155_RNTCBIAS 10000.0
#define | LTC4155_RNTCSER 0.0
#define | LTC4155_R150 302.36
#define | LTC4155_R145 334.88
#define | LTC4155_R140 371.77
#define | LTC4155_R135 413.73
#define | LTC4155_R130 461.60
#define | LTC4155_R125 516.36
#define | LTC4155_R120 579.17
#define | LTC4155_R115 651.44
#define | LTC4155_R110 734.86
#define | LTC4155_R105 831.46
#define | LTC4155_R100 943.67
#define | LTC4155_R95 1074.48
#define | LTC4155_R90 1227.51
#define | LTC4155_R85 1407.18
#define | LTC4155_R80 1618.94
#define | LTC4155_R75 1869.50
#define | LTC4155_R70 2167.17
#define | LTC4155_R65 2522.30
#define | LTC4155_R60 2947.82
#define | LTC4155_R55 3459.99
#define | LTC4155_R50 4079.35
#define | LTC4155_R45 4831.94
#define | LTC4155_R40 5751.02
#define | LTC4155_R35 6879.27
#define | LTC4155_R30 8271.77
#define | LTC4155_R25 10000.00
#define | LTC4155_R20 12157.35
#define | LTC4155_R15 14866.53
#define | LTC4155_R10 18289.86
#define | LTC4155_R5 22643.44
#define | LTC4155_R0 28217.00
#define | LTC4155_Rm5 35401.63
#define | LTC4155_Rm10 44729.13
#define | LTC4155_Rm15 56927.91
#define | LTC4155_Rm20 73003.30
#define | LTC4155_Rm25 94353.48
#define | LTC4155_Rm30 122938.33
#define | LTC4155_Rm35 161527.01
#define | LTC4155_Rm40 214063.67
Use the macros below to convert from real world to LTC4155 referenced numbers.
#define | LTC4155_NTCS0402E3103FLT(x)
| Convert from °C to the Thermistor ADC Reading. More...
#define | LTC4155_ADC(x) __LTC4155_LINE__((LTC4155_KOFFSET), (LTC4155_KOFFSET + 1/LTC4155_KSPAN), (0), (1), x)
| NTC ADC format. More...
Private macros for use by formats above.
#define | __LTC4155_LINE__(x0, x1, y0, y1, x) (uint8_t)((y0) + ((y1) - (y0))/((x1) - (x0)) * ((x) - (x0)) + 0.5)
#define | __LTC4155_BETWEEN_INCLUSIVE__(x0, x1, x) (((x) > (x0) && (x) < (x1)) || (x) == (x0) || (x) == (x1) ? 1 : 0)

## Macro Definition Documentation

## ◆ __LTC4155_BETWEEN_INCLUSIVE__

#define __LTC4155_BETWEEN_INCLUSIVE__ | ( |  | x0,
|  |  | x1,
|  |  | x
| ) |  | (((x) > (x0) && (x) < (x1)) || (x) == (x0) || (x) == (x1) ? 1 : 0)

Definition at line 166 of file LTC4155_formats.h.

## ◆ __LTC4155_LINE__

#define __LTC4155_LINE__ | ( |  | x0,
|  |  | x1,
|  |  | y0,
|  |  | y1,
|  |  | x
| ) |  | (uint8_t)((y0) + ((y1) - (y0))/((x1) - (x0)) * ((x) - (x0)) + 0.5)

Definition at line 165 of file LTC4155_formats.h.

## ◆ LTC4155_ADC

#define LTC4155_ADC | ( |  | x | ) | __LTC4155_LINE__((LTC4155_KOFFSET), (LTC4155_KOFFSET + 1/LTC4155_KSPAN), (0), (1), x)

NTC ADC format.

Refer to datasheet to convert to voltage/temperature.

Definition at line 162 of file LTC4155_formats.h.

## ◆ LTC4155_KOFFSET

#define LTC4155_KOFFSET 0.1127

Definition at line 77 of file LTC4155_formats.h.

## ◆ LTC4155_KSPAN

#define LTC4155_KSPAN 0.006162

Definition at line 76 of file LTC4155_formats.h.

## ◆ LTC4155_NTCS0402E3103FLT

#define LTC4155_NTCS0402E3103FLT | ( |  | x | ) |

Convert from °C to the Thermistor ADC Reading.

Definition at line 122 of file LTC4155_formats.h.

## ◆ LTC4155_R0

#define LTC4155_R0 28217.00

Definition at line 110 of file LTC4155_formats.h.

## ◆ LTC4155_R10

#define LTC4155_R10 18289.86

Definition at line 108 of file LTC4155_formats.h.

## ◆ LTC4155_R100

#define LTC4155_R100 943.67

Definition at line 90 of file LTC4155_formats.h.

## ◆ LTC4155_R105

#define LTC4155_R105 831.46

Definition at line 89 of file LTC4155_formats.h.

## ◆ LTC4155_R110

#define LTC4155_R110 734.86

Definition at line 88 of file LTC4155_formats.h.

## ◆ LTC4155_R115

#define LTC4155_R115 651.44

Definition at line 87 of file LTC4155_formats.h.

## ◆ LTC4155_R120

#define LTC4155_R120 579.17

Definition at line 86 of file LTC4155_formats.h.

## ◆ LTC4155_R125

#define LTC4155_R125 516.36

Definition at line 85 of file LTC4155_formats.h.

## ◆ LTC4155_R130

#define LTC4155_R130 461.60

Definition at line 84 of file LTC4155_formats.h.

## ◆ LTC4155_R135

#define LTC4155_R135 413.73

Definition at line 83 of file LTC4155_formats.h.

## ◆ LTC4155_R140

#define LTC4155_R140 371.77

Definition at line 82 of file LTC4155_formats.h.

## ◆ LTC4155_R145

#define LTC4155_R145 334.88

Definition at line 81 of file LTC4155_formats.h.

## ◆ LTC4155_R15

#define LTC4155_R15 14866.53

Definition at line 107 of file LTC4155_formats.h.

## ◆ LTC4155_R150

#define LTC4155_R150 302.36

Definition at line 80 of file LTC4155_formats.h.

## ◆ LTC4155_R20

#define LTC4155_R20 12157.35

Definition at line 106 of file LTC4155_formats.h.

## ◆ LTC4155_R25

#define LTC4155_R25 10000.00

Definition at line 105 of file LTC4155_formats.h.

## ◆ LTC4155_R30

#define LTC4155_R30 8271.77

Definition at line 104 of file LTC4155_formats.h.

## ◆ LTC4155_R35

#define LTC4155_R35 6879.27

Definition at line 103 of file LTC4155_formats.h.

## ◆ LTC4155_R40

#define LTC4155_R40 5751.02

Definition at line 102 of file LTC4155_formats.h.

## ◆ LTC4155_R45

#define LTC4155_R45 4831.94

Definition at line 101 of file LTC4155_formats.h.

## ◆ LTC4155_R5

#define LTC4155_R5 22643.44

Definition at line 109 of file LTC4155_formats.h.

## ◆ LTC4155_R50

#define LTC4155_R50 4079.35

Definition at line 100 of file LTC4155_formats.h.

## ◆ LTC4155_R55

#define LTC4155_R55 3459.99

Definition at line 99 of file LTC4155_formats.h.

## ◆ LTC4155_R60

#define LTC4155_R60 2947.82

Definition at line 98 of file LTC4155_formats.h.

## ◆ LTC4155_R65

#define LTC4155_R65 2522.30

Definition at line 97 of file LTC4155_formats.h.

## ◆ LTC4155_R70

#define LTC4155_R70 2167.17

Definition at line 96 of file LTC4155_formats.h.

## ◆ LTC4155_R75

#define LTC4155_R75 1869.50

Definition at line 95 of file LTC4155_formats.h.

## ◆ LTC4155_R80

#define LTC4155_R80 1618.94

Definition at line 94 of file LTC4155_formats.h.

## ◆ LTC4155_R85

#define LTC4155_R85 1407.18

Definition at line 93 of file LTC4155_formats.h.

## ◆ LTC4155_R90

#define LTC4155_R90 1227.51

Definition at line 92 of file LTC4155_formats.h.

## ◆ LTC4155_R95

#define LTC4155_R95 1074.48

Definition at line 91 of file LTC4155_formats.h.

## ◆ LTC4155_Rm10

#define LTC4155_Rm10 44729.13

Definition at line 112 of file LTC4155_formats.h.

## ◆ LTC4155_Rm15

#define LTC4155_Rm15 56927.91

Definition at line 113 of file LTC4155_formats.h.

## ◆ LTC4155_Rm20

#define LTC4155_Rm20 73003.30

Definition at line 114 of file LTC4155_formats.h.

## ◆ LTC4155_Rm25

#define LTC4155_Rm25 94353.48

Definition at line 115 of file LTC4155_formats.h.

## ◆ LTC4155_Rm30

#define LTC4155_Rm30 122938.33

Definition at line 116 of file LTC4155_formats.h.

## ◆ LTC4155_Rm35

#define LTC4155_Rm35 161527.01

Definition at line 117 of file LTC4155_formats.h.

## ◆ LTC4155_Rm40

#define LTC4155_Rm40 214063.67

Definition at line 118 of file LTC4155_formats.h.

## ◆ LTC4155_Rm5

#define LTC4155_Rm5 35401.63

Definition at line 111 of file LTC4155_formats.h.

## ◆ LTC4155_RNTCBIAS

#define LTC4155_RNTCBIAS 10000.0

Definition at line 78 of file LTC4155_formats.h.

## ◆ LTC4155_RNTCSER

#define LTC4155_RNTCSER 0.0

Definition at line 79 of file LTC4155_formats.h.